/* ── Marcus Montessori — Shared Styles ── */

/* Google Fonts are loaded per-page via <link> tags */

/* ── Design Tokens ── */
:root {
  --primary:           #5f8d6e;
  --primary-light:     #eef4f1;
  --primary-foreground:#f7faf8;
  --background:        #f6f4ef;
  --foreground:        #3b3630;
  --card:              #ffffff;
  --secondary:         #d4b490;
  --muted:             #ebe8e3;
  --muted-foreground:  #6b6358;
  --border:            #dbd8d2;
  --accent:            #e0ede5;
  --amber-bg:          #fffbeb;
  --amber-border:      #fde68a;
  --amber-text:        #92400e;
  --amber-label-bg:    #fde68a;
  --amber-btn:         #f59e0b;
  --amber-btn-hover:   #d97706;

  --radius-sm: 0.5rem;
  --radius:    0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl:2rem;

  --font-sans:  'Lato', sans-serif;
  --font-serif: 'Playfair Display', serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.10), 0 4px 10px rgba(0,0,0,.06);
  --shadow-xl: 0 20px 50px rgba(0,0,0,.12), 0 8px 20px rgba(0,0,0,.06);
}

/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.25;
}

p { line-height: 1.6; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

main { flex: 1; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left:  auto;
  margin-right: auto;
  padding-left:  1rem;
  padding-right: 1rem;
}
@media (min-width: 640px)  { .container { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-left: 2rem;   padding-right: 2rem;   } }

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,244,239,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
}
.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--primary); }
.nav-links a.active { text-decoration: underline; text-underline-offset: 4px; }
.btn-enroll {
  display: inline-block;
  padding: .5rem 1.25rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  transition: background .2s;
}
.btn-enroll:hover { background: color-mix(in oklch, var(--primary) 88%, black); }
.nav-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
}
@media (min-width: 768px) { .nav-hamburger { display: none; } }
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  background: var(--card);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted-foreground);
  padding: .25rem 0;
}
.nav-mobile a.active,
.nav-mobile a:hover { color: var(--primary); }
.nav-mobile .btn-enroll { text-align: center; width: 100%; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 2rem;
  border-radius: 9999px;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: color-mix(in oklch, var(--primary) 88%, black); box-shadow: var(--shadow-lg); }
.btn-outline-white {
  background: rgba(255,255,255,.8);
  color: var(--foreground);
  border: 1px solid rgba(95,141,110,.2);
  backdrop-filter: blur(4px);
}
.btn-outline-white:hover { background: #fff; }
.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline-primary:hover { background: var(--primary); color: var(--primary-foreground); }
.btn-secondary {
  background: var(--muted);
  color: var(--foreground);
}
.btn-secondary:hover { background: var(--border); }
.btn-amber {
  background: var(--amber-btn);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-amber:hover { background: var(--amber-btn-hover); }
.btn-link {
  background: none;
  color: var(--primary);
  padding: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  border-radius: 0;
  box-shadow: none;
}
.btn-link:hover { text-decoration: underline; }

/* ── Page header pad (below sticky nav) ── */
.page-content { padding-top: 5rem; padding-bottom: 6rem; }

/* ── Section utilities ── */
.section-py   { padding-top: 6rem; padding-bottom: 6rem; }
.section-py-sm{ padding-top: 4rem; padding-bottom: 4rem; }
.text-center  { text-align: center; }
.max-w-2xl    { max-width: 42rem; }
.max-w-3xl    { max-width: 48rem; }
.max-w-4xl    { max-width: 56rem; }
.mx-auto      { margin-left: auto; margin-right: auto; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-12> * + * { margin-top: 3rem; }
.space-y-16> * + * { margin-top: 4rem; }

/* ── Card ── */
.card {
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-bordered { border: 1px solid var(--border); }
.card-muted { background: rgba(235,232,227,.3); }
.card-body { padding: 2rem; }
@media (min-width: 640px) { .card-body { padding: 2.5rem; } }

/* ── Badge ── */
.badge {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 9999px;
  font-size: .8125rem;
  font-weight: 500;
  background: var(--muted);
  color: var(--muted-foreground);
}

/* ── Grid helpers ── */
.grid { display: grid; }
.grid-2 { grid-template-columns: 1fr; gap: 2rem; }
.grid-3 { grid-template-columns: 1fr; gap: 2rem; }
.grid-4 { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

/* ── Card image ── */
.card-img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  transition: transform .5s;
}
.card:hover .card-img { transform: scale(1.04); }
.card-img-wrap { height: 12rem; overflow: hidden; }

/* ── Hero ── */
.hero {
  position: relative;
  height: 90vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--muted);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .9;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.3), transparent 50%, rgba(246,244,239,.9));
}
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 56rem;
  padding: 0 1.5rem;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
  margin-bottom: 1rem;
}
.hero-content h1 em {
  font-style: italic;
  color: rgba(255,255,255,.92);
}
.hero-content p {
  font-size: 1rem;
  color: rgba(255,255,255,.93);
  max-width: 38rem;
  margin: 0 auto 2.5rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ── Section heading group ── */
.section-head { text-align: center; max-width: 48rem; margin: 0 auto 4rem; }
.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--foreground);
  margin-bottom: .75rem;
}
.section-head p { color: var(--muted-foreground); }

/* ── Primary color text ── */
.text-primary { color: var(--primary); }
.text-muted    { color: var(--muted-foreground); }
.text-white    { color: #fff; }

/* ── Philosophy feature card ── */
.feature-card {
  background: var(--muted);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.feature-card img { width: 100%; height: 12rem; object-fit: cover; }
.feature-card-body { padding: 2rem; }
.feature-card-body h3 { font-size: 1.35rem; margin-bottom: .75rem; color: var(--foreground); }
.feature-card-body p  { color: var(--muted-foreground); }

/* ── Home: Philosophy section ── */
.philosophy-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 768px) {
  .philosophy-split { grid-template-columns: 1fr 1fr; }
}
.philosophy-img-wrap {
  position: relative;
}
.philosophy-img-wrap::before {
  content: '';
  position: absolute;
  inset: -1rem;
  background: rgba(212,180,144,.2);
  border-radius: var(--radius-2xl);
  transform: rotate(3deg);
}
.philosophy-img-wrap img {
  position: relative;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ── CTA Section ── */
.cta-section {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-section > .container { position: relative; z-index: 1; }
.cta-section h2 { color: var(--primary-foreground); font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 1rem; }
.cta-section p { color: rgba(247,250,248,.88); max-width: 42rem; margin: 0 auto 2.5rem; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.btn-on-primary {
  background: rgba(255,255,255,.15);
  color: var(--primary-foreground);
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 9999px;
  padding: .75rem 2rem;
  font-size: 1.0625rem;
  font-weight: 600;
  transition: all .2s;
}
.btn-on-primary:hover { background: rgba(255,255,255,.25); }

/* ── Summer Banner ── */
.summer-banner {
  background: var(--amber-bg);
  border-top: 1px solid var(--amber-border);
  border-bottom: 1px solid var(--amber-border);
  padding: 4rem 0;
}
.summer-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
  max-width: 64rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .summer-banner-inner {
    flex-direction: row;
    text-align: left;
    gap: 3rem;
  }
}
.summer-banner .emoji { font-size: 3.5rem; flex-shrink: 0; }
.summer-banner .flex-1 { flex: 1; }
.summer-banner-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--amber-label-bg);
  color: var(--amber-text);
  padding: .25rem .875rem;
  border-radius: 9999px;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: .75rem;
}
.summer-banner h2 { font-size: 1.625rem; color: var(--foreground); margin-bottom: .5rem; }
.summer-banner p  { color: var(--muted-foreground); }

/* ── Mission block ── */
.mission-block {
  background: rgba(95,141,110,.07);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 3rem;
}
.mission-block h2 { color: var(--primary); font-size: 1.75rem; margin-bottom: 1rem; }

/* ── Icon circle ── */
.icon-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-circle-primary { background: rgba(95,141,110,.12); color: var(--primary); }
.icon-circle-secondary { background: rgba(212,180,144,.25); color: var(--foreground); }
.icon-circle-accent { background: rgba(224,237,229,.5); color: var(--foreground); }
.icon-circle svg { width: 1.5rem; height: 1.5rem; }

/* ── Activity card (Program page) ── */
.activity-card {
  background: rgba(235,232,227,.2);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s;
}
.activity-card:hover { box-shadow: var(--shadow-md); }
.activity-card-body { padding: 2rem; flex: 1; }
.activity-card-body h3 { font-size: 1.25rem; color: var(--primary); margin-bottom: .75rem; }
.activity-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.activity-card-body p { color: var(--muted-foreground); margin-bottom: .5rem; }

/* ── Summer program grid ── */
.summer-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .summer-grid { grid-template-columns: 1fr 1fr; } }
.summer-card {
  background: rgba(255,255,255,.7);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
}
.summer-card .emoji-lg { font-size: 2rem; margin-bottom: .75rem; }
.summer-card h3 { font-size: 1.125rem; font-weight: 600; color: var(--amber-text); margin-bottom: .5rem; }
.summer-card p  { color: color-mix(in srgb, var(--amber-text) 80%, white); font-size: .9375rem; }

/* ── Weekly rhythm block ── */
.rhythm-block {
  background: rgba(235,232,227,.3);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.rhythm-block h2 { font-size: 1.75rem; color: var(--foreground); margin-bottom: 1rem; }
.rhythm-block p  { color: var(--muted-foreground); }
.rhythm-block p + p { margin-top: 1rem; }

/* ── Gallery grid ── */
.gallery-section { margin-bottom: 4rem; }
.gallery-section h2 { font-size: 1.75rem; color: var(--primary); margin-bottom: 2rem; }
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px)  { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: 1fr 1fr 1fr; } }
.gallery-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.gallery-item:hover { box-shadow: var(--shadow-md); }
.gallery-item img { width: 100%; height: 16rem; object-fit: cover; }
.gallery-item-cap { padding: 1rem; font-size: .875rem; color: var(--muted-foreground); line-height: 1.4; }

/* ── FAQ ── */
.faq-hero {
  background: rgba(95,141,110,.06);
  padding: 4rem 0;
  text-align: center;
}
.faq-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.faq-hero p  { color: var(--muted-foreground); max-width: 44rem; margin: 0 auto; }
.faq-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}
.faq-section h2 { font-size: 1.5rem; color: var(--foreground); margin-bottom: 1.25rem; }
details { border-top: 1px solid var(--border); }
details:last-child { border-bottom: 1px solid var(--border); }
summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 0;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--foreground);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform .2s;
}
details[open] summary::after {
  content: '−';
}
.faq-answer {
  padding: 0 0 1.25rem;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.65;
  white-space: pre-line;
}
.faq-cta {
  background: rgba(95,141,110,.06);
  border: 1px solid rgba(95,141,110,.2);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  text-align: center;
  margin-top: 3rem;
}
.faq-cta h3 { font-size: 1.4rem; margin-bottom: .75rem; }
.faq-cta p  { color: var(--muted-foreground); margin-bottom: 1.5rem; }
.faq-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
}
.faq-contact-links a:hover { text-decoration: underline; }
.faq-contact-links .sep { color: var(--muted-foreground); }

/* ── Contact ── */
.contact-info-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .contact-info-grid { grid-template-columns: 1fr 1fr; } }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon { flex-shrink: 0; color: var(--primary); margin-top: .125rem; }
.contact-icon svg { width: 1.4rem; height: 1.4rem; }
.contact-info-item .label { font-size: 1rem; font-weight: 600; margin-bottom: .25rem; }
.contact-info-item .value { color: var(--muted-foreground); }
.enrollment-card {
  border: 2px solid rgba(95,141,110,.3);
  border-radius: var(--radius-xl);
  background: rgba(95,141,110,.05);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.enrollment-card h2 { color: var(--primary); font-size: 1.75rem; margin-bottom: 1rem; }
.map-embed { width: 100%; height: 450px; border: 0; border-radius: var(--radius-xl); }

/* ── Sticky mobile call button ── */
.mobile-call-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform .2s;
}
.mobile-call-btn:hover { transform: scale(1.08); }
@media (min-width: 768px) { .mobile-call-btn { display: none; } }

/* ── Footer ── */
footer {
  background: rgba(235,232,227,.3);
  border-top: 1px solid var(--border);
}
.footer-inner {
  padding: 3rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
.footer-brand h3 { color: var(--primary); font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; }
.footer-brand p  { color: var(--muted-foreground); max-width: 18rem; line-height: 1.55; }
footer h4 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
footer ul li { margin-bottom: .5rem; }
footer ul li a { color: var(--muted-foreground); transition: color .2s; }
footer ul li a:hover { color: var(--primary); }
footer ul li, footer ul li:not(a) { color: var(--muted-foreground); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted-foreground);
}

/* ── Utility: section bg variants ── */
.bg-muted  { background: rgba(235,232,227,.3); }
.bg-primary{ background: var(--primary-light); }
.bg-amber  { background: var(--amber-bg); border-top: 1px solid var(--amber-border); border-bottom: 1px solid var(--amber-border); }
.bg-holiday {
  background: rgba(95,141,110,.05);
  border-radius: var(--radius-2xl);
  padding: 3rem;
  text-align: center;
}
.bg-holiday h2 { font-size: 1.75rem; margin-bottom: 1rem; }
.bg-holiday p  { color: var(--muted-foreground); max-width: 48rem; margin: 0 auto; }

/* ── Page heading ── */
.page-heading { text-align: center; max-width: 48rem; margin: 0 auto 4rem; }
.page-heading h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.page-heading p  { color: var(--muted-foreground); }

/* ── Page hero (no image, sage tint bg) ── */
.page-hero {
  background: rgba(95,141,110,.07);
  border-bottom: 1px solid rgba(95,141,110,.12);
  padding: 5rem 0 4.5rem;
  text-align: center;
}
.page-hero .badge { margin-bottom: 1.25rem; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; color: var(--foreground); }
.page-hero p { color: var(--muted-foreground); max-width: 44rem; margin: 0 auto; font-size: 1.0625rem; }
.page-hero-sub { margin-top: .5rem; font-size: .9375rem; color: var(--muted-foreground); }

/* ── Subject grid & cards (Curriculum page) ── */
.subject-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px)  { .subject-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .subject-grid { grid-template-columns: 1fr 1fr 1fr; } }
.subject-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.subject-card-icon {
  width: 3rem; height: 3rem;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); flex-shrink: 0;
}
.subject-card-icon svg { width: 1.5rem; height: 1.5rem; }
.subject-card h3 { font-size: 1.125rem; color: var(--foreground); margin: 0; }
.subject-card > p { color: var(--muted-foreground); font-size: .9375rem; margin: 0; }
.subject-card ul { padding: 0; margin: 0; }
.subject-card ul li {
  color: var(--muted-foreground);
  font-size: .875rem;
  padding: .3rem 0 .3rem 1.25rem;
  position: relative;
  border-top: 1px solid var(--border);
}
.subject-card ul li::before { content: '→'; position: absolute; left: 0; color: var(--primary); font-size: .75rem; top: .4rem; }

/* ── Enrollment stats ── */
.enrollment-stats { display: flex; gap: 3rem; flex-wrap: wrap; justify-content: center; margin: 2rem 0; }
.stat-block { text-align: center; }
.stat-block .stat-number { font-family: var(--font-serif); font-size: 2.5rem; line-height: 1; color: var(--primary); font-weight: 700; }
.stat-block .stat-label { font-size: .875rem; color: var(--muted-foreground); margin-top: .375rem; }

/* ── Summer calendar table ── */
.summer-cal-wrap { overflow-x: auto; border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.summer-cal-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.summer-cal-table thead th {
  background: var(--primary); color: var(--primary-foreground);
  padding: .875rem 1rem; text-align: center; font-size: .875rem; font-weight: 600;
}
.summer-cal-table tbody td {
  padding: 1rem; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border);
  vertical-align: top; font-size: .875rem; background: var(--card);
}
.summer-cal-table tbody tr:nth-child(even) td { background: rgba(235,232,227,.3); }
.summer-cal-table tbody td:last-child { border-right: none; }
.cal-date { display: block; font-weight: 700; color: var(--primary); font-size: .75rem; margin-bottom: .2rem; }

/* ── Program landing cards ── */
.program-landing-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .program-landing-grid { grid-template-columns: 1fr 1fr; } }
.program-landing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 1.25rem;
  transition: box-shadow .2s;
}
.program-landing-card:hover { box-shadow: var(--shadow-md); }
.program-landing-card h3 { font-size: 1.25rem; color: var(--foreground); }
.program-landing-card p { color: var(--muted-foreground); font-size: .9375rem; }

/* ── Enrollment steps ── */
.steps { display: flex; flex-direction: column; gap: 1.5rem; counter-reset: step; }
.step { display: flex; gap: 1.5rem; align-items: flex-start; counter-increment: step; }
.step-num {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--primary); color: var(--primary-foreground);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.step-num::before { content: counter(step); }
.step-body h3 { font-size: 1.0625rem; color: var(--foreground); margin-bottom: .375rem; }
.step-body p { color: var(--muted-foreground); font-size: .9375rem; }

/* ── Pillar cards (3-up grid) ── */
.pillar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 1rem;
}
.pillar-card h3 { font-size: 1.125rem; color: var(--foreground); }
.pillar-card p { color: var(--muted-foreground); font-size: .9375rem; }
