/* Milestones Montessori — shared styles for the inner pages (programs, tuition, about, areas, blog).
   The home page keeps its own inline styles; colours, fonts and buttons here match it. */

:root {
  --blue: #1a3a8c; --blue-light: #2a52c9; --blue-pale: #e8f0fd;
  --green: #2dc922; --green-dark: #1e9018; --green-pale: #e7f9e6;
  --red: #e8373a; --yellow: #f9b001; --yellow-pale: #fff8e1;
  --cream: #faf8f3; --gray-light: #f4f4ef;
  --text-dark: #111; --text-mid: #4a4a4a; --text-soft: #666666; --green-text: #1a7f14;
  --r-sm: 10px; --r-md: 18px; --r-lg: 28px; --r-xl: 40px; --r-pill: 999px;
  --shadow: 0 6px 30px rgba(26,58,140,.10);
  --fh: 'Bubblegum Sans', cursive; --fs: 'Nunito', sans-serif; --fb: 'Quicksand', sans-serif;
  --transition: .28s cubic-bezier(.4,0,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--fb); background: var(--cream); color: var(--text-dark); overflow-x: hidden; font-weight: 500; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
.section-pad { padding: 80px 0; }
.bg-white-band { background: #fff; }
.bg-gray-band { background: var(--gray-light); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--fs); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--green-text); margin-bottom: .75rem; }
.eyebrow::before, .eyebrow::after { content: ''; width: 22px; height: 3px; border-radius: 3px; background: var(--green); }
.section-title { font-family: var(--fh); font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.2; margin-bottom: 1rem; font-weight: 400; }
.section-subtitle { font-size: 1rem; color: var(--text-mid); line-height: 1.75; max-width: 640px; }

/* Buttons (same as the home page) */
.btn-mm { display: inline-flex; align-items: center; gap: 10px; font-family: var(--fs); font-weight: 700; font-size: .95rem; padding: .8rem 1.8rem; border-radius: var(--r-pill); text-decoration: none; border: none; cursor: pointer; transition: all var(--transition); line-height: 1; }
.btn-green { background: var(--green-text); color: #fff; box-shadow: 0 6px 20px rgba(45,201,34,.3); }
.btn-green:hover { background: #146a0f; color: #fff; transform: translateY(-2px); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 6px 20px rgba(26,58,140,.28); }
.btn-blue:hover { background: var(--blue-light); color: #fff; transform: translateY(-2px); }
.btn-outline-blue { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline-blue:hover { background: var(--blue); color: #fff; }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { color: var(--blue); transform: translateY(-2px); }
.btn-wa { background: #157a3a; color: #fff; box-shadow: 0 6px 18px rgba(37,211,102,.3); }
.btn-wa:hover { background: #10612e; color: #fff; transform: translateY(-2px); }

/* Navigation (always the white, scrolled style on inner pages) */
#main-nav { position: sticky; top: 0; z-index: 9000; padding: .7rem 0; background: rgba(255,255,255,.97); box-shadow: 0 2px 20px rgba(26,58,140,.10); }
.nav-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; flex-shrink: 0; }
.nav-logo { height: 48px; width: auto; border-radius: 12px; background: #fff; padding: 5px; box-shadow: 0 2px 12px rgba(0,0,0,.14); }
.nav-brand-text { font-family: var(--fh); font-size: 1.05rem; color: var(--blue); line-height: 1.2; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: .15rem; }
.nav-link-item { font-family: var(--fs); font-weight: 600; font-size: .86rem; color: var(--text-dark); text-decoration: none; padding: .45rem .7rem; border-radius: var(--r-pill); white-space: nowrap; transition: all var(--transition); }
.nav-link-item:hover, .nav-link-item[aria-current="page"] { background: var(--blue-pale); color: var(--blue); }
.nav-ctas { display: flex; gap: .5rem; flex-shrink: 0; }
.nav-ctas .btn-mm { padding: .6rem 1.2rem; font-size: .86rem; }
.mobile-nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hb-line { display: block; width: 26px; height: 2.5px; background: var(--text-dark); border-radius: 3px; margin: 5px 0; }
#mobile-menu { position: fixed; top: 0; right: -320px; bottom: 0; width: 300px; background: #fff; z-index: 9002; box-shadow: -8px 0 40px rgba(0,0,0,.15); padding: 76px 1.5rem 2rem; display: flex; flex-direction: column; gap: .35rem; transition: right .35s cubic-bezier(.4,0,.2,1); overflow-y: auto; }
#mobile-menu.open { right: 0; }
#mobile-menu .nav-link-item { font-size: 1.02rem; padding: .65rem 1rem; }
.mob-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 9001; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.mob-overlay.active { opacity: 1; visibility: visible; }
.mob-close { position: absolute; top: 18px; right: 20px; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--text-mid); }
@media (max-width: 1199px) { .nav-links, .nav-ctas { display: none; } .mobile-nav-toggle { display: block; } }

/* Breadcrumb + page hero */
.crumbs { font-family: var(--fs); font-size: .85rem; font-weight: 600; color: var(--text-soft); margin-bottom: 1rem; }
.crumbs a { color: var(--text-soft); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.crumbs span[aria-hidden] { margin: 0 .4rem; }
.page-hero { padding: 48px 0 64px; }
.page-hero h1 { font-family: var(--fh); font-weight: 400; font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.12; color: var(--blue); margin-bottom: 1rem; }
.page-hero .lead-text { font-size: 1.08rem; color: var(--text-mid); line-height: 1.75; max-width: 560px; margin-bottom: 1.75rem; }
.hero-img { border-radius: var(--r-xl); box-shadow: var(--shadow); width: 100%; height: auto; object-fit: cover; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.fact-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; padding: 0; list-style: none; }
.fact-chips li { background: #fff; border: 1px solid #e4e8f0; border-radius: var(--r-pill); padding: .35rem .9rem; font-family: var(--fs); font-weight: 700; font-size: .82rem; color: var(--blue); }

/* Prose */
.prose p, .prose li { font-size: 1rem; line-height: 1.8; color: var(--text-mid); }
.prose h2 { font-family: var(--fh); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--text-dark); margin: 2.2rem 0 .8rem; }
.prose h3 { font-family: var(--fs); font-weight: 800; font-size: 1.15rem; color: var(--text-dark); margin: 1.6rem 0 .5rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.prose strong { color: var(--text-dark); }
.prose figure { margin: 2rem 0; }
.prose figure img { border-radius: var(--r-lg); box-shadow: var(--shadow); display: block; margin: 0 auto; max-height: 560px; width: auto; }
.prose figcaption { font-size: .85rem; color: var(--text-soft); margin-top: .6rem; text-align: center; }
.prose blockquote { border-left: 4px solid var(--green); background: #fff; border-radius: 0 var(--r-md) var(--r-md) 0; padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: 1.02rem; color: var(--text-dark); }

/* Cards */
.info-card { background: #fff; border-radius: var(--r-lg); padding: 1.6rem; box-shadow: var(--shadow); height: 100%; }
.info-card .ic-emoji { font-size: 1.8rem; line-height: 1; margin-bottom: .75rem; display: block; }
.info-card h3 { font-family: var(--fs); font-weight: 800; font-size: 1.08rem; margin-bottom: .45rem; color: var(--text-dark); }
.info-card p { font-size: .93rem; color: var(--text-mid); line-height: 1.7; margin-bottom: .5rem; }
.info-card .builds { font-size: .8rem; font-weight: 700; color: var(--green-text); margin: 0; }
.photo-card { background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); height: 100%; display: flex; flex-direction: column; }
.photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-card .pc-body { padding: 1.3rem 1.4rem 1.5rem; }
.photo-card h3 { font-family: var(--fs); font-weight: 800; font-size: 1.05rem; margin-bottom: .4rem; }
.photo-card p { font-size: .92rem; color: var(--text-mid); line-height: 1.7; margin: 0; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 1.7rem; margin-bottom: .6rem; line-height: 1.6; color: var(--text-mid); }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--green-text); font-weight: 900; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.steps li { counter-increment: step; background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow); padding: 1.2rem 1.3rem 1.2rem 4.2rem; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 1.2rem; top: 1.15rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--fs); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps h3 { font-family: var(--fs); font-weight: 800; font-size: 1.05rem; margin: .1rem 0 .3rem; }
.steps p { margin: 0; color: var(--text-mid); line-height: 1.7; font-size: .95rem; }

/* FAQ */
.faq-accordion .accordion-item { border: none; border-radius: var(--r-md) !important; margin-bottom: .75rem; box-shadow: var(--shadow); overflow: hidden; background: #fff; }
.faq-accordion .accordion-button { font-family: var(--fs); font-weight: 700; font-size: .98rem; color: var(--text-dark); padding: 1.1rem 1.4rem; background: #fff; box-shadow: none; }
.faq-accordion .accordion-button:not(.collapsed) { color: var(--blue); background: var(--blue-pale); }
.faq-accordion .accordion-body { font-size: .95rem; color: var(--text-mid); line-height: 1.75; padding: 1rem 1.4rem 1.4rem; }
.faq-accordion h3 { margin: 0; }

/* Call-to-action band */
.cta-band { background: linear-gradient(135deg, var(--blue) 0%, #0d2970 100%); color: #fff; border-radius: var(--r-xl); padding: 2.6rem 2rem; text-align: center; }
.cta-band h2 { font-family: var(--fh); font-weight: 400; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: .6rem; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 560px; margin: 0 auto 1.5rem; line-height: 1.7; }
.cta-band .hero-actions { justify-content: center; }

/* Town list (areas we serve) */
.town-card { background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow); padding: 1.2rem 1.3rem; height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: .6rem; }
.town-card h3 { font-family: var(--fs); font-weight: 800; font-size: 1.02rem; margin: 0; }
.town-card a { font-family: var(--fs); font-weight: 700; font-size: .88rem; text-decoration: none; }
.map-wrap { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); min-height: 340px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* Blog */
.post-card { background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; transition: transform var(--transition); }
.post-card:hover { transform: translateY(-4px); color: inherit; }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card .pc-body { padding: 1.3rem 1.4rem 1.6rem; }
.post-card h2, .post-card h3 { font-family: var(--fs); font-weight: 800; font-size: 1.15rem; color: var(--text-dark); margin-bottom: .5rem; }
.post-meta { font-family: var(--fs); font-size: .82rem; font-weight: 700; color: var(--text-soft); margin-bottom: .6rem; }
.article { max-width: 760px; margin: 0 auto; }
.article h1 { font-family: var(--fh); font-weight: 400; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.15; color: var(--blue); margin-bottom: .75rem; }
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); margin: 1.5rem 0; font-size: .93rem; }
.compare-table th, .compare-table td { padding: .85rem 1rem; vertical-align: top; border-bottom: 1px solid #eef0f5; text-align: left; line-height: 1.6; }
.compare-table th { background: var(--blue-pale); color: var(--blue); font-family: var(--fs); font-weight: 800; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table th[scope=row] { background: #fff; color: var(--text-dark); font-family: var(--fb); font-weight: 700; width: 26%; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Footer */
.footer { background: var(--text-dark); color: rgba(255,255,255,.72); padding: 64px 0 0; margin-top: 80px; }
.footer-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 1.25rem; }
.footer-logo img { height: 60px; width: auto; border-radius: 14px; background: #fff; padding: 7px; }
.footer-logo-text { font-family: var(--fh); font-size: 1.2rem; color: #fff; line-height: 1.3; }
.footer p { font-size: .9rem; line-height: 1.7; max-width: 300px; }
.footer h2 { font-family: var(--fs); font-weight: 800; font-size: .88rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .55rem; font-size: .9rem; }
.footer-links a { color: rgba(255,255,255,.7); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.25rem 0; margin-top: 3rem; text-align: center; font-size: .82rem; color: rgba(255,255,255,.5); }

/* WhatsApp button */
#wa-float { position: fixed; right: 18px; bottom: 90px; z-index: 9997; text-decoration: none; }
#wa-float .wa-btn { width: 56px; height: 56px; border-radius: 50%; background: #1f9e4f; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: transform .2s ease; }
#wa-float:hover .wa-btn { transform: scale(1.07); }

@media (max-width: 767px) {
  .section-pad { padding: 56px 0; }
  .page-hero { padding: 28px 0 40px; }
  .footer { margin-top: 56px; }
  .cta-band { padding: 2rem 1.25rem; border-radius: var(--r-lg); }
  .steps li { padding-left: 3.8rem; }
  .compare-table th[scope=row] { width: auto; }
}
@media print { #wa-float, #main-nav, .footer, .cta-band { display: none; } }
