/*
Theme Name: Little Hearts Community School
Description: Custom hand-coded theme for Little Hearts Community School, Pietermaritzburg. Built from a hand-coded HTML prototype, no page builder dependency.
Author: George
Version: 1.0
Text Domain: little-hearts
*/


:root {
  --navy: #0a2342;
  --navy-2: #123a68;
  --pink: #ff5c8a;
  --pink-dark: #df3f73;
  --lime: #a6ce39;
  --cream: #fdf7f2;
  --blush: #fff3f7;
  --mist: #f5f8fb;
  --white: #ffffff;
  --ink: #17243a;
  --text: #4f5b6b;
  --muted: #738092;
  --line: #e5eaf0;
  --shadow-sm: 0 8px 24px rgba(10,35,66,.08);
  --shadow-lg: 0 22px 60px rgba(10,35,66,.15);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 104px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 9999; padding: 12px 18px; border-radius: 8px; background: var(--navy); color: white; text-decoration: none; }
.skip-link:focus { top: 16px; }

.announcement { background: var(--navy); color: white; font-size: 13px; }
.announcement-inner { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.announcement p { margin: 0; opacity: .88; }
.announcement a { color: white; font-weight: 700; text-underline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(10,35,66,.08); backdrop-filter: blur(12px); }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 250px; }
.brand img { width: 68px; height: 68px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: Georgia, "Times New Roman", serif; font-size: 22px; color: var(--navy); }
.brand-text small { margin-top: 5px; color: var(--pink-dark); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: 26px; }
.primary-nav a { position: relative; color: var(--navy); text-decoration: none; font-size: 14px; font-weight: 650; }
.primary-nav > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 0; height: 2px; background: var(--pink); transition: width .2s ease; }
.primary-nav > a:hover::after, .primary-nav > a:focus-visible::after { width: 100%; }
.primary-nav .nav-cta { padding: 12px 20px; border-radius: 999px; background: var(--pink); color: white; box-shadow: 0 8px 20px rgba(255,92,138,.25); }
.primary-nav .nav-cta:hover { background: var(--pink-dark); }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 10px; border: 0; border-radius: 12px; background: var(--mist); cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--navy); transition: .2s ease; }

.hero { position: relative; overflow: hidden; padding: 88px 0 104px; background: linear-gradient(140deg, #fff 0%, #fff7fa 54%, #f7fbef 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 130px; background: linear-gradient(to bottom, transparent, rgba(255,255,255,.72)); pointer-events: none; }
.hero-shape { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.hero-shape-one { width: 420px; height: 420px; right: -170px; top: -180px; background: rgba(255,92,138,.12); }
.hero-shape-two { width: 260px; height: 260px; left: -130px; bottom: -100px; background: rgba(166,206,57,.12); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; color: var(--pink-dark); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 999px; background: var(--lime); }
.hero h1 { max-width: 690px; margin: 0; font-family: Georgia, "Times New Roman", serif; color: var(--navy); font-size: clamp(44px, 5.2vw, 74px); line-height: 1.03; letter-spacing: -.035em; }
.hero-lead { max-width: 630px; margin: 28px 0 0; color: var(--text); font-size: 19px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 13px 25px; border: 2px solid transparent; border-radius: 999px; font-weight: 750; font-size: 14px; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--pink); color: white; box-shadow: 0 12px 26px rgba(255,92,138,.3); }
.button-primary:hover { background: var(--pink-dark); box-shadow: 0 16px 32px rgba(255,92,138,.35); }
.button-secondary { border-color: rgba(10,35,66,.18); background: white; color: var(--navy); }
.button-secondary:hover { border-color: var(--navy); }
.hero-points { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; }
.hero-points span { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-size: 13px; font-weight: 700; }
.hero-points span::before { content: "✓"; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: rgba(166,206,57,.18); color: #668b12; font-size: 12px; }
.hero-media { position: relative; min-height: 600px; }
.hero-photo { position: absolute; margin: 0; overflow: hidden; border: 7px solid white; border-radius: 28px; box-shadow: var(--shadow-lg); background: white; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-main { right: 13%; top: 0; width: 53%; height: 600px; transform: rotate(1.5deg); }
.hero-photo-top { left: 0; top: 35px; width: 40%; height: 245px; transform: rotate(-3.2deg); }
.hero-photo-bottom { left: 2%; bottom: 17px; width: 43%; height: 250px; transform: rotate(2.3deg); }
.hero-badge { position: absolute; right: 2%; bottom: 38px; display: flex; flex-direction: column; justify-content: center; width: 138px; height: 138px; padding: 18px; border: 8px solid white; border-radius: 50%; background: var(--navy); color: white; text-align: center; box-shadow: var(--shadow-lg); transform: rotate(-4deg); }
.hero-badge strong { font-family: Georgia, serif; font-size: 24px; line-height: 1; }
.hero-badge span { margin-top: 7px; font-size: 12px; font-weight: 700; }

.trust-strip { position: relative; z-index: 2; margin-top: -34px; }
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); }
.trust-item { display: flex; align-items: center; gap: 13px; padding: 24px 22px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-icon { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--blush); color: var(--pink-dark); font-weight: 900; }
.trust-item div { display: flex; flex-direction: column; }
.trust-item strong { color: var(--navy); font-size: 14px; }
.trust-item small { margin-top: 3px; color: var(--muted); font-size: 12px; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 82px; }
.about-media { position: relative; }
.about-media > img { width: 100%; aspect-ratio: 1.16; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-media::before { content: ""; position: absolute; z-index: -1; width: 80%; height: 84%; left: -28px; bottom: -28px; border-radius: var(--radius-lg); background: var(--blush); }
.about-stamp { position: absolute; right: -28px; bottom: 30px; width: 180px; padding: 18px 20px; border-radius: 16px; background: white; box-shadow: var(--shadow-sm); }
.about-stamp strong, .about-stamp span { display: block; }
.about-stamp strong { color: var(--navy); font-family: Georgia, serif; font-size: 22px; }
.about-stamp span { margin-top: 5px; color: var(--muted); font-size: 12px; }
.section-copy h2, .section-heading h2, .contact-copy h2 { margin: 0; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px, 4vw, 54px); line-height: 1.12; letter-spacing: -.025em; }
.section-copy > p { color: var(--text); font-size: 16px; line-height: 1.8; }
.section-copy > p:first-of-type { margin-top: 26px; }
.feature-list { display: grid; gap: 15px; margin: 29px 0; }
.feature-list > div { display: grid; grid-template-columns: 42px 1fr; gap: 13px; align-items: start; }
.feature-list span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: white; font-size: 11px; font-weight: 800; }
.feature-list p { margin: 0; color: var(--text); font-size: 14px; }
.feature-list strong { color: var(--navy); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--pink-dark); font-weight: 800; text-decoration: none; }
.section-cta-row { text-align: center; margin-top: 32px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.programs-section { background: var(--mist); }
.section-heading { margin-bottom: 46px; }
.section-heading.centered { max-width: 730px; margin-inline: auto; text-align: center; }
.section-heading.centered .eyebrow { justify-content: center; }
.section-heading.centered p, .split-heading > p { color: var(--text); font-size: 16px; line-height: 1.75; }
.section-heading.centered p { max-width: 650px; margin: 20px auto 0; }
.program-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.program-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 10px 30px rgba(10,35,66,.06); transition: transform .22s ease, box-shadow .22s ease; }
.program-card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(10,35,66,.12); }
.program-card img { width: 100%; aspect-ratio: 1.37; object-fit: cover; }
.program-card-content { padding: 25px 25px 28px; }
.program-age { display: inline-flex; margin-bottom: 12px; color: var(--pink-dark); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.program-card h3 { margin: 0; color: var(--navy); font-family: Georgia, serif; font-size: 24px; line-height: 1.2; }
.program-card p { margin: 12px 0 0; color: var(--text); font-size: 14px; line-height: 1.75; }

.split-heading { display: grid; grid-template-columns: 1.1fr .75fr; align-items: end; gap: 70px; }
.split-heading > p { margin: 0 0 4px; }
.branch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.branch-card { overflow: hidden; border-radius: var(--radius); background: white; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.branch-image { position: relative; overflow: hidden; }
.branch-image img { width: 100%; aspect-ratio: 1.5; object-fit: cover; transition: transform .45s ease; }
.branch-card:hover .branch-image img { transform: scale(1.025); }
.branch-image span { position: absolute; left: 18px; bottom: 18px; padding: 8px 13px; border-radius: 999px; background: rgba(10,35,66,.88); color: white; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; backdrop-filter: blur(6px); }
.branch-content { padding: 29px; }
.branch-map { width: 100%; height: 220px; border: 0; border-radius: 12px; margin-top: 16px; display: block; }
.branch-content h3 { margin: 0; color: var(--navy); font-family: Georgia, serif; font-size: 29px; }
.branch-address { margin: 7px 0 15px; color: var(--pink-dark); font-weight: 700; font-size: 13px; }
.branch-content > p:not(.branch-address) { color: var(--text); }

.why-section { background: linear-gradient(130deg, var(--navy), #123a68); color: white; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 78px; align-items: center; }
.why-copy h2 { color: white; }
.why-copy > p { color: rgba(255,255,255,.78); }
.why-copy .eyebrow { color: #ffd3e1; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 24px; padding: 0; margin: 30px 0 0; list-style: none; }
.check-list li { position: relative; padding-left: 28px; color: rgba(255,255,255,.9); font-size: 14px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #dff09d; font-weight: 900; }
.why-panel { padding: 34px; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-lg); background: rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.why-panel-top { display: flex; align-items: center; gap: 22px; padding-bottom: 27px; border-bottom: 1px solid rgba(255,255,255,.15); }
.why-number { font-family: Georgia, serif; font-size: 82px; line-height: .9; color: #ffe4ed; }
.why-panel-top p { max-width: 220px; margin: 0; font-size: 18px; line-height: 1.4; }
.why-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.why-mini-grid div { padding: 18px; border-radius: 14px; background: rgba(255,255,255,.08); }
.why-mini-grid strong, .why-mini-grid span { display: block; }
.why-mini-grid strong { font-size: 16px; }
.why-mini-grid span { margin-top: 5px; color: rgba(255,255,255,.68); font-size: 12px; }

.gallery-section { background: var(--blush); }
.gallery-grid { display: grid; grid-template-columns: repeat(12,1fr); grid-auto-rows: 230px; gap: 18px; }
.gallery-item { position: relative; grid-column: span 4; margin: 0; overflow: hidden; border-radius: 18px; box-shadow: var(--shadow-sm); }
.gallery-item-wide { grid-column: span 8; }
.gallery-item-tall { grid-column: span 4; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(10,35,66,.76)); }
.gallery-item figcaption { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; color: white; font-weight: 800; font-size: 14px; }

.admissions-section { padding-top: 0; background: var(--blush); }
.admissions-card { display: grid; grid-template-columns: 1.35fr .65fr; align-items: center; gap: 58px; padding: 64px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--pink-dark), #a92c62); color: white; box-shadow: 0 24px 60px rgba(169,44,98,.28); }
.eyebrow-light { color: #fff1f6; }
.eyebrow-light::before { background: #d9ef7b; }
.admissions-copy h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(34px,4vw,52px); line-height: 1.1; }
.admissions-copy > p { color: rgba(255,255,255,.84); font-size: 16px; line-height: 1.75; }
.admissions-copy ol { display: flex; flex-wrap: wrap; gap: 18px; padding: 0; margin: 29px 0 0; list-style: none; }
.admissions-copy li { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; }
.admissions-copy li span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.18); }
.admissions-actions { display: grid; gap: 11px; }
.button-light { background: white; color: var(--pink-dark); }
.button-outline-light { border-color: rgba(255,255,255,.66); color: white; }
.button-outline-light:hover { background: white; color: var(--pink-dark); }
.admissions-actions small { margin-top: 8px; color: rgba(255,255,255,.72); text-align: center; }

.contact-grid { display: grid; grid-template-columns: 1fr .72fr; gap: 76px; align-items: center; }
.contact-copy > p { max-width: 580px; color: var(--text); font-size: 16px; }
.contact-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.contact-options a { display: flex; flex-direction: column; padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: white; text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.contact-options a:hover { transform: translateY(-2px); border-color: rgba(255,92,138,.5); }
.contact-options a:last-child { grid-column: 1 / -1; }
.contact-options span { color: var(--pink-dark); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contact-options strong { margin-top: 4px; color: var(--navy); font-size: 15px; word-break: break-word; }
.contact-card { padding: 38px; border-radius: var(--radius-lg); background: var(--cream); text-align: center; }
.contact-card img { width: 150px; height: 150px; margin: 0 auto 14px; object-fit: contain; }
.contact-card h3 { margin: 0; color: var(--navy); font-family: Georgia, serif; font-size: 25px; }
.contact-card p { margin: 8px 0 0; color: var(--text); }
.contact-card .npo { margin-bottom: 24px; color: var(--pink-dark); font-weight: 800; }

.site-footer { padding: 68px 0 20px; background: #071a31; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.6fr .7fr 1.15fr .9fr; gap: 48px; }
.footer-brand { display: flex; gap: 16px; }
.footer-brand img { width: 78px; height: 78px; object-fit: contain; }
.footer-brand strong { font-family: Georgia, serif; font-size: 20px; }
.footer-brand p { max-width: 300px; color: rgba(255,255,255,.62); font-size: 13px; line-height: 1.7; }
.site-footer h2 { margin: 0 0 15px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #f9c3d3; }
.site-footer a, .site-footer > .container p { display: block; margin: 8px 0; color: rgba(255,255,255,.7); font-size: 13px; text-decoration: none; }
.site-footer a:hover { color: white; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom p { margin: 0; }
.footer-bottom a { margin: 0; }

:focus-visible { outline: 3px solid rgba(255,92,138,.45); outline-offset: 3px; }

@media (max-width: 1050px) {
  .primary-nav { gap: 17px; }
  .primary-nav a { font-size: 13px; }
  .brand { min-width: auto; }
  .brand-text { display: none; }
  .hero-grid { gap: 38px; }
  .hero-photo-main { right: 4%; width: 56%; }
  .program-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2 / -1; }
}

@media (max-width: 820px) {
  .section { padding: 76px 0; }
  .menu-toggle { display: block; }
  .brand-text { display: flex; }
  .primary-nav { position: fixed; inset: 125px 16px auto; display: grid; gap: 0; max-height: 0; overflow: hidden; padding: 0 24px; border: 1px solid transparent; border-radius: 18px; background: white; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(-12px); pointer-events: none; transition: .24s ease; }
  .primary-nav.open { max-height: 520px; padding: 16px 24px 24px; border-color: var(--line); opacity: 1; transform: translateY(0); pointer-events: auto; }
  .primary-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .primary-nav .nav-cta { margin-top: 12px; text-align: center; border-bottom: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding-top: 64px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero h1, .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-points { justify-content: center; }
  .hero-media { min-height: 520px; max-width: 650px; width: 100%; margin: 10px auto 0; }
  .hero-photo-main { right: 8%; height: 510px; }
  .hero-photo-top { left: 2%; height: 210px; }
  .hero-photo-bottom { height: 220px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .trust-item:nth-child(4) { border-top: 1px solid var(--line); }
  .about-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 58px; }
  .about-media { max-width: 650px; margin-inline: auto; }
  .split-heading { grid-template-columns: 1fr; gap: 16px; }
  .branch-grid { gap: 20px; }
  .gallery-grid { grid-auto-rows: 190px; }
  .admissions-card { grid-template-columns: 1fr; padding: 48px; }
  .admissions-actions { grid-template-columns: repeat(3,1fr); }
  .admissions-actions small { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: auto; }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .announcement-inner { min-height: 44px; text-align: center; }
  .announcement p { font-size: 11px; line-height: 1.35; }
  .announcement a { white-space: nowrap; font-size: 11px; }
  .header-inner { min-height: 76px; }
  .brand img { width: 57px; height: 57px; }
  .brand-text strong { font-size: 18px; }
  .brand-text small { font-size: 11px; }

  .hero { padding: 54px 0 88px; }
  .hero h1 { font-size: 43px; }
  .hero-lead { font-size: 16px; }
  .hero-actions .button { width: 100%; }
  .hero-points { gap: 10px 14px; }
  .hero-media { min-height: 425px; }
  .hero-photo { border-width: 5px; border-radius: 20px; }
  .hero-photo-main { right: 3%; width: 60%; height: 420px; }
  .hero-photo-top { width: 44%; height: 165px; }
  .hero-photo-bottom { width: 46%; height: 170px; bottom: 22px; }
  .hero-badge { right: -1%; bottom: 12px; width: 100px; height: 100px; border-width: 5px; }
  .hero-badge strong { font-size: 18px; }
  .hero-badge span { font-size: 11px; }
  .trust-strip { margin-top: -24px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
  .about-stamp { right: 10px; bottom: -24px; width: 155px; }
  .program-grid, .branch-grid { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .why-panel { padding: 24px; }
  .why-number { font-size: 68px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .gallery-item, .gallery-item-wide, .gallery-item-tall { grid-column: span 1; }
  .gallery-item-wide { grid-column: 1 / -1; }
  .admissions-card { width: min(calc(100% - 28px), var(--container)); padding: 34px 24px; border-radius: 22px; }
  .admissions-copy ol { display: grid; }
  .admissions-actions { grid-template-columns: 1fr; }
  .admissions-actions small { grid-column: auto; }
  .contact-options { grid-template-columns: 1fr; }
  .contact-options a:last-child { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* Inner pages */
.primary-nav a.active::after { width: 100% !important; }
.inner-hero { position: relative; overflow: hidden; padding: 82px 0 88px; background: linear-gradient(140deg,#fff 0%,#fff5f9 58%,#f7fbe9 100%); }
.inner-hero::before { content:""; position:absolute; width:360px; height:360px; border-radius:50%; right:-130px; top:-170px; background:rgba(255,92,138,.11); }
.inner-hero-grid { position:relative; display:grid; grid-template-columns:1fr .72fr; align-items:center; gap:78px; }
.inner-hero-copy h1 { max-width:760px; margin:0; color:var(--navy); font-family:Georgia,"Times New Roman",serif; font-size:clamp(42px,5vw,68px); line-height:1.05; letter-spacing:-.035em; }
.inner-hero-copy > p { max-width:700px; color:var(--text); font-size:18px; line-height:1.75; }
.inner-hero-image { position:relative; margin:0; }
.inner-hero-image::before { content:""; position:absolute; inset:20px -22px -22px 22px; z-index:-1; border-radius:30px; background:var(--navy); opacity:.08; }
.inner-hero-image img { width:100%; max-height:480px; aspect-ratio:.92; object-fit:cover; border:7px solid white; border-radius:30px; box-shadow:var(--shadow-lg); }
.small-print { color:var(--muted) !important; font-size:12px !important; line-height:1.65 !important; }
.quick-info-section { padding:0 0 38px; margin-top:-27px; position:relative; z-index:2; }
.quick-info-grid { display:grid; grid-template-columns:repeat(4,1fr); background:white; border:1px solid var(--line); border-radius:20px; box-shadow:var(--shadow-sm); }
.quick-info-grid article { display:flex; gap:13px; padding:24px 21px; }
.quick-info-grid article + article { border-left:1px solid var(--line); }
.quick-info-grid article > span { display:grid; place-items:center; flex:0 0 36px; height:36px; border-radius:50%; background:var(--blush); color:var(--pink-dark); font-weight:900; font-size:11px; }
.quick-info-grid strong { color:var(--navy); font-size:14px; }
.quick-info-grid p { margin:4px 0 0; color:var(--muted); font-size:12px; line-height:1.55; }
.grade-section { background:var(--mist); }
.grade-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.grade-card { min-height:205px; padding:28px; border:1px solid var(--line); border-radius:18px; background:white; box-shadow:0 8px 25px rgba(10,35,66,.05); }
.grade-card > span { display:inline-flex; padding:6px 10px; border-radius:999px; background:var(--blush); color:var(--pink-dark); font-size:11px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.grade-card h3 { margin:19px 0 8px; color:var(--navy); font-family:Georgia,serif; font-size:24px; }
.grade-card p { margin:0; color:var(--text); font-size:14px; line-height:1.65; }
.process-layout { display:grid; grid-template-columns:.8fr 1.2fr; gap:80px; align-items:start; }
.process-actions { display:flex; flex-direction:column; align-items:flex-start; gap:19px; margin-top:30px; }
.process-list { display:grid; gap:14px; padding:0; margin:0; list-style:none; }
.process-list li { display:grid; grid-template-columns:48px 1fr; gap:17px; padding:22px; border:1px solid var(--line); border-radius:16px; background:white; box-shadow:0 6px 20px rgba(10,35,66,.045); }
.process-list li > span { display:grid; place-items:center; width:44px; height:44px; border-radius:50%; background:var(--navy); color:white; font-weight:900; }
.process-list strong { color:var(--navy); font-size:16px; }
.process-list p { margin:5px 0 0; color:var(--text); font-size:13px; line-height:1.6; }
.documents-section { background:var(--blush); }
.document-columns { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.document-panel { padding:36px; border:1px solid var(--line); border-radius:22px; background:white; box-shadow:var(--shadow-sm); }
.document-panel-soft { background:#f9fbf2; }
.panel-label { color:var(--pink-dark); font-size:11px; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }
.document-panel h3 { margin:12px 0 20px; color:var(--navy); font-family:Georgia,serif; font-size:27px; }
.document-list, .income-card ul, .privacy-cards ul { padding:0; margin:0; list-style:none; }
.document-list li, .income-card li, .privacy-cards li { position:relative; padding:8px 0 8px 27px; color:var(--text); font-size:14px; }
.document-list li::before, .income-card li::before, .privacy-cards li::before { content:"✓"; position:absolute; left:0; color:var(--pink-dark); font-weight:900; }
.affordability-heading { max-width:760px; margin-top:62px; }
.income-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.income-card { padding:26px 23px; border:1px solid var(--line); border-top:4px solid var(--pink); border-radius:16px; background:white; }
.income-card h3 { margin:0 0 12px; color:var(--navy); font-family:Georgia,serif; font-size:21px; }
.fee-section { padding-top:70px; }
.fee-card { display:grid; grid-template-columns:1fr .52fr; align-items:center; gap:64px; padding:54px 60px; border-radius:28px; background:var(--cream); border:1px solid rgba(166,206,57,.2); }
.fee-card h2 { margin:0; color:var(--navy); font-family:Georgia,serif; font-size:clamp(34px,4vw,48px); }
.fee-card p { color:var(--text); }
.fee-actions { display:grid; gap:12px; }
.branch-choice-section { background:var(--mist); }
.branch-choice-grid { display:grid; grid-template-columns:1fr 1fr; gap:28px; }
.branch-choice-grid article { display:grid; grid-template-columns:42% 58%; overflow:hidden; border:1px solid var(--line); border-radius:20px; background:white; box-shadow:var(--shadow-sm); }
.branch-choice-grid img { width:100%; height:100%; min-height:280px; object-fit:cover; }
.branch-choice-grid article > div { padding:29px; }
.branch-choice-grid span { color:var(--pink-dark); font-size:12px; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }
.branch-choice-grid h3 { margin:12px 0 6px; color:var(--navy); font-family:Georgia,serif; font-size:25px; }
.branch-choice-grid p { color:var(--text); font-size:13px; }
.faq-layout { display:grid; grid-template-columns:.65fr 1.35fr; gap:75px; align-items:start; }
.faq-list { display:grid; gap:12px; }
.faq-list details { border:1px solid var(--line); border-radius:15px; background:white; overflow:hidden; }
.faq-list summary { cursor:pointer; padding:20px 52px 20px 22px; color:var(--navy); font-weight:800; list-style:none; position:relative; }
.faq-list summary::-webkit-details-marker { display:none; }
.faq-list summary::after { content:"+"; position:absolute; right:22px; top:17px; color:var(--pink-dark); font-size:22px; }
.faq-list details[open] summary::after { content:"−"; }
.faq-list details p { margin:0; padding:0 22px 22px; color:var(--text); font-size:14px; line-height:1.7; }
.page-cta-section { padding-top:0; }
.page-cta { display:grid; grid-template-columns:1fr .42fr; gap:58px; align-items:center; padding:58px 62px; border-radius:28px; background:linear-gradient(135deg,var(--navy),var(--navy-2)); color:white; box-shadow:var(--shadow-lg); }
.page-cta h2 { margin:0; max-width:720px; font-family:Georgia,serif; font-size:clamp(34px,4vw,50px); line-height:1.1; }
.page-cta p { color:rgba(255,255,255,.76); }
.page-cta-actions { display:grid; gap:12px; }

/* Calendar */
.calendar-intro-section { padding:40px 0 0; }
.calendar-notice { display:flex; align-items:flex-start; gap:20px; padding:22px 26px; border:1px solid #dfe8b5; border-radius:16px; background:#f9fce9; }
.calendar-notice strong { flex:0 0 auto; color:var(--navy); }
.calendar-notice p { margin:0; color:var(--text); font-size:13px; }
.events-section { padding-top:70px; background:var(--mist); }
.event-months { display:grid; gap:24px; }
.event-month { display:grid; grid-template-columns:210px 1fr; gap:24px; padding:28px; border:1px solid var(--line); border-radius:22px; background:white; box-shadow:0 8px 25px rgba(10,35,66,.05); }
.month-heading { display:flex; align-items:center; gap:17px; padding-right:24px; border-right:1px solid var(--line); }
.month-heading > span { color:var(--pink-dark); font-family:Georgia,serif; font-size:54px; line-height:1; }
.month-heading small { color:var(--muted); font-weight:800; }
.month-heading h2 { margin:2px 0 0; color:var(--navy); font-family:Georgia,serif; font-size:26px; }
.event-stack { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.event-card { padding:18px 20px; border-radius:14px; background:var(--blush); }
.event-card time, .date-tbc { color:var(--pink-dark); font-size:11px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.event-card h3 { margin:8px 0 5px; color:var(--navy); font-family:Georgia,serif; font-size:21px; }
.event-card p { margin:0; color:var(--text); font-size:13px; line-height:1.6; }
.event-fee { display:inline-flex; margin-top:12px; padding:5px 9px; border-radius:999px; background:white; color:var(--navy); font-size:11px; font-weight:800; }

/* Privacy */
.compact-inner-hero { padding-block:70px; }
.logo-hero-image img { max-height:360px; object-fit:contain; background:white; }
.last-updated { color:var(--pink-dark) !important; font-weight:800; font-size:13px !important; }
.privacy-content-section { background:var(--mist); }
.privacy-layout { display:grid; grid-template-columns:300px 1fr; gap:48px; align-items:start; }
.privacy-aside { position:sticky; top:120px; padding:28px; border-radius:18px; background:var(--navy); color:white; }
.privacy-aside strong { display:block; font-family:Georgia,serif; font-size:24px; }
.privacy-aside p { color:rgba(255,255,255,.72); font-size:13px; }
.privacy-aside .button { margin-top:12px; width:100%; }
.privacy-cards { display:grid; gap:16px; }
.privacy-cards article { padding:30px 32px; border:1px solid var(--line); border-radius:18px; background:white; }
.privacy-cards h2 { margin:0 0 13px; color:var(--navy); font-family:Georgia,serif; font-size:22px; }
.privacy-cards p { color:var(--text); font-size:14px; line-height:1.75; }
.privacy-cards a { color:var(--pink-dark); font-weight:800; }

@media (max-width: 1120px) {
  .primary-nav { gap:14px; }
  .primary-nav a { font-size:12.5px; }
  .income-grid { grid-template-columns:1fr 1fr; }
  .quick-info-grid { grid-template-columns:1fr 1fr; }
  .quick-info-grid article:nth-child(3) { border-left:0; border-top:1px solid var(--line); }
  .quick-info-grid article:nth-child(4) { border-top:1px solid var(--line); }
}
@media (max-width: 820px) {
  .inner-hero-grid, .process-layout, .fee-card, .faq-layout, .page-cta, .privacy-layout { grid-template-columns:1fr; }
  .inner-hero { padding-top:58px; }
  .inner-hero-copy { text-align:center; }
  .inner-hero-copy .hero-actions { justify-content:center; }
  .inner-hero-image { max-width:520px; margin-inline:auto; }
  .inner-hero-image img { max-height:440px; }
  .grade-grid { grid-template-columns:1fr 1fr; }
  .document-columns, .branch-choice-grid { grid-template-columns:1fr; }
  .fee-card, .page-cta { padding:42px 34px; }
  .branch-choice-grid article { grid-template-columns:38% 62%; }
  .privacy-aside { position:static; }
  .event-month { grid-template-columns:1fr; }
  .month-heading { padding-right:0; padding-bottom:18px; border-right:0; border-bottom:1px solid var(--line); }
}
@media (max-width: 560px) {
  .quick-info-grid, .grade-grid, .income-grid, .event-stack { grid-template-columns:1fr; }
  .quick-info-grid article + article { border-left:0; border-top:1px solid var(--line); }
  .branch-choice-grid article { grid-template-columns:1fr; }
  .branch-choice-grid img { min-height:210px; max-height:250px; }
  .document-panel, .privacy-cards article { padding:25px 22px; }
  .fee-card, .page-cta { padding:34px 24px; }
  .calendar-notice { flex-direction:column; gap:8px; }
}


/* =========================================================
   LITTLE HEARTS MOBILE-FIRST REVISION v3.2
   Mobile navigation, touch controls and parent application UX
   ========================================================= */

:root {
  --mobile-action-height: 68px;
  --mobile-nav-top: 86px;
}

html { -webkit-text-size-adjust: 100%; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
.button, .menu-toggle, .primary-nav a, .mobile-action-bar a { touch-action: manipulation; }

.mobile-action-bar { display: none; }

@media (max-width: 820px) {
  body { padding-bottom: var(--mobile-action-height); }
  .section { padding: 66px 0; }
  .container { width: min(calc(100% - 28px), var(--container)); }

  .announcement { min-height: 40px; }
  .announcement-inner { min-height: 40px; padding-block: 6px; gap: 8px; }
  .announcement p, .announcement a { font-size: 11.5px; }

  .site-header { backdrop-filter: none; }
  .header-inner { min-height: 76px; gap: 12px; }
  .brand { min-width: 0; gap: 9px; }
  .brand img { width: 56px; height: 56px; }
  .brand-text strong { font-size: 18px; }
  .brand-text small { margin-top: 3px; font-size: 11px; letter-spacing: .09em; }
  .menu-toggle { display: block; flex: 0 0 48px; width: 48px; height: 48px; }

  .primary-nav {
    position: fixed;
    top: var(--mobile-nav-top);
    left: 12px;
    right: 12px;
    bottom: calc(var(--mobile-action-height) + 10px);
    inset: var(--mobile-nav-top) 12px calc(var(--mobile-action-height) + 10px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: none;
    overflow-y: auto;
    padding: 10px 18px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(10,35,66,.24);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(.985);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }
  .primary-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
  .primary-nav a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 12px 6px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  .primary-nav > a:not(.nav-cta)::after { display: none; }
  .primary-nav a.active { color: var(--pink-dark); }
  .primary-nav .nav-cta {
    min-height: 52px;
    margin-top: 12px;
    padding-inline: 20px;
    justify-content: center;
    border-bottom: 0;
    border-radius: 12px;
    font-size: 16px;
  }

  .mobile-action-bar {
    position: fixed;
    z-index: 1200;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: .82fr 1fr 1.3fr;
    min-height: var(--mobile-action-height);
    padding: 7px max(8px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    border-top: 1px solid rgba(10,35,66,.12);
    background: rgba(255,255,255,.98);
    box-shadow: 0 -8px 28px rgba(10,35,66,.12);
  }
  .mobile-action-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 8px 7px;
    border-radius: 11px;
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
  }
  .mobile-action-bar a + a { margin-left: 5px; }
  .mobile-action-bar .mobile-whatsapp { background: #eef8ef; color: #176b38; }
  .mobile-action-bar .mobile-apply { background: var(--pink); color: #fff; }

  .hero { padding: 52px 0 78px; }
  .hero-grid { gap: 34px; }
  .hero h1 { font-size: clamp(36px, 10.5vw, 48px); line-height: 1.04; }
  .hero-lead { margin-top: 20px; font-size: 16px; line-height: 1.65; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 26px; }
  .hero-actions .button { width: 100%; min-height: 54px; }
  .hero-points { margin-top: 22px; }

  .section-heading { margin-bottom: 32px; }
  .section-copy h2, .section-heading h2, .contact-copy h2 { font-size: clamp(31px, 8.6vw, 42px); }
  .section-copy > p, .contact-copy > p { font-size: 16px; line-height: 1.72; }
  .button { min-height: 52px; padding-inline: 21px; font-size: 15px; }
  .text-link { min-height: 44px; }

  .program-card-content, .branch-content { padding: 24px 22px; }
  .program-card-content p, .branch-content > p:not(.branch-address) { font-size: 15px; }
  .branch-map { height: 240px; }
  .admissions-card { padding: 38px 24px; }
  .admissions-actions .button, .page-cta-actions .button, .fee-actions .button { width: 100%; }
  .contact-options a { min-height: 72px; justify-content: center; }

  .inner-hero { padding: 48px 0 62px; }
  .inner-hero-grid { gap: 32px; }
  .inner-hero-copy h1 { font-size: clamp(35px, 10vw, 46px); }
  .inner-hero-copy > p { font-size: 16px; line-height: 1.65; }
  .inner-hero-copy .hero-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .inner-hero-copy .hero-actions .button { width: 100%; }
  .inner-hero-image img { max-height: 360px; border-width: 5px; border-radius: 22px; }

  .quick-info-grid article { min-height: 92px; }
  .grade-card { min-height: auto; padding: 24px 21px; }
  .process-list li { grid-template-columns: 42px 1fr; padding: 19px 17px; }
  .process-actions { align-items: stretch; }
  .process-actions .button { width: 100%; }
  .document-panel, .privacy-cards article { padding: 27px 22px; }
  .fee-card, .page-cta { padding: 36px 24px; }
  .faq-list summary { min-height: 58px; padding-block: 18px; }

  .site-footer { padding-bottom: 30px; }
  .site-footer a { min-height: 38px; display: flex; align-items: center; }
}

@media (max-width: 480px) {
  .section { padding: 56px 0; }
  .announcement-inner { flex-direction: column; gap: 1px; padding-block: 5px; }
  .announcement p { line-height: 1.3; }
  .brand-text small { display: none; }
  .hero-media { min-height: 370px; }
  .hero-photo-main { right: 0; width: 62%; height: 365px; }
  .hero-photo-top { left: 0; width: 43%; height: 145px; }
  .hero-photo-bottom { left: 1%; width: 45%; height: 150px; bottom: 18px; }
  .hero-badge { width: 92px; height: 92px; padding: 12px; }
  .hero-points { display: grid; grid-template-columns: 1fr; justify-items: start; width: fit-content; margin-inline: auto; }
  .about-stamp { position: static; width: 100%; margin-top: 12px; }
  .why-mini-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 235px; }
  .gallery-item, .gallery-item-wide, .gallery-item-tall { grid-column: 1 / -1; }
  .contact-card { padding: 28px 20px; }
  .mobile-action-bar { grid-template-columns: .72fr .95fr 1.25fr; }
  .mobile-action-bar a { font-size: 11.5px; }
}

@media (max-width: 340px) {
  .container { width: min(calc(100% - 20px), var(--container)); }
  .brand img { width: 50px; height: 50px; }
  .brand-text strong { font-size: 16px; }
  .menu-toggle { width: 46px; height: 46px; }
  .hero h1 { font-size: 34px; }
  .mobile-action-bar a { padding-inline: 4px; font-size: 10.5px; }
}
