/* ===========================================================
   Bollie Nursery School — stylesheet
   A bright, storybook-whimsy theme for a Benoni-based nursery
   =========================================================== */

:root {
  --yellow: #ffce30;
  --yellow-deep: #f5a800;
  --sky: #38b6f1;
  --sky-deep: #1c93cf;
  --coral: #ff5f96;
  --coral-deep: #e8262e;
  --grass: #54c15e;
  --grass-deep: #2f9e3d;
  --purple: #9b5de5;
  --purple-deep: #7c3fc4;
  --orange: #ff8a3d;
  --cream: #f4fbff;
  --cream-deep: #fff4d6;
  --ink: #22263a;
  --ink-soft: #52566b;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(34, 38, 58, 0.12);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --outline: 2px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Baloo 2", "Nunito", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

/* Bubble-letter wordmark style used for the "Bollie" logotype and big
   display headings — bold, chunky, storybook-poster energy without
   copying anyone's specific branded typeface. */
.logo-text, .bubble-text {
  font-family: "Chewy", "Baloo 2", cursive;
  font-weight: 400;
  color: var(--coral-deep);
  -webkit-text-stroke: 1.4px var(--ink);
  text-stroke: 1.4px var(--ink);
  paint-order: stroke fill;
  letter-spacing: 0.5px;
}

p {
  line-height: 1.7;
  color: var(--ink-soft);
}

a {
  text-decoration: none;
  color: inherit;
}

img, svg {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 84px 0;
  position: relative;
}

/* -------------------- Buttons -------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: "Baloo 2", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(255, 125, 148, 0.4);
}

.btn-primary:hover {
  background: var(--coral-deep);
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--sky-deep);
}

/* -------------------- Header / Nav -------------------- */

.site-header {
  position: relative;
  z-index: 100;
  background: rgba(244, 251, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 3px dashed var(--yellow);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand .logo-text {
  font-size: 1.7rem;
  color: var(--coral-deep);
  margin: 0;
}

.brand .logo-text span {
  color: var(--sky-deep);
}

.brand-mascot {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-logo-img {
  display: block;
  height: 140px;
  width: auto;
  max-width: none;
  object-fit: contain;
  margin: -4px 0 -66px;
  position: relative;
  z-index: 2;
}

.brand-logo-img-page {
  display: block;
  height: 68px;
  width: auto;
  object-fit: contain;
}

.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;
}

.mascot-figure {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  filter: drop-shadow(0 18px 24px rgba(34, 38, 58, 0.18));
}

.mascot-figure img {
  width: 100%;
  height: auto;
}

.mascot-small {
  width: 120px;
  filter: drop-shadow(0 10px 16px rgba(34, 38, 58, 0.16));
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  font-family: "Baloo 2", sans-serif;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--yellow);
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-phone {
  font-family: "Baloo 2", sans-serif;
  font-weight: 600;
  color: var(--sky-deep);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 2px;
}

/* -------------------- Hero -------------------- */

.hero-banner {
  background: linear-gradient(180deg, #fff4d6, #f4fbff);
  position: relative;
  overflow: hidden;
}

.hero {
  padding-top: 60px;
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-family: "Baloo 2", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 3rem;
  color: var(--ink);
}

.hero h1 em {
  font-style: normal;
  color: var(--coral-deep);
}

.hero p.lead {
  font-size: 1.15rem;
  max-width: 480px;
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-art {
  position: relative;
}

.hero-facts {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.hero-fact {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-fact strong {
  display: block;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.3rem;
  color: var(--sky-deep);
}

.hero-fact span {
  display: block;
  max-width: 190px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* -------------------- Wave divider -------------------- */

.wave-divider {
  display: block;
  width: 100%;
  line-height: 0;
  margin-top: -2px;
}

/* -------------------- Section headers -------------------- */

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.section-eyebrow {
  font-family: "Baloo 2", sans-serif;
  font-weight: 600;
  color: var(--grass-deep);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
}

.section-head h2 {
  font-size: 2.2rem;
  margin-top: 8px;
}

/* -------------------- Cards -------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
}

.card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.95rem;
  margin: 0;
}

.bg-yellow { background: var(--cream-deep); }
.bg-sky { background: #e4f6fd; }
.bg-coral { background: #ffe8ec; }
.bg-grass { background: #eaf7ea; }
.bg-purple { background: #f1e9fc; }
.bg-orange { background: #ffead9; }
.bg-teal { background: #e0f5f2; }
.bg-indigo { background: #e8eafc; }

/* -------------------- Programs section (home preview) -------------------- */

.programs-section {
  background: var(--white);
}

.program-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.program-card {
  border-radius: var(--radius-md);
  padding: 34px 28px 58px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.click-hint {
  position: absolute;
  bottom: 16px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  color: var(--ink);
  font-family: "Baloo 2", sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 6px 14px 6px 9px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transform: rotate(-6deg);
  animation: click-hint-bounce 2.4s ease-in-out infinite;
  pointer-events: none;
  white-space: nowrap;
}

.click-hint svg {
  flex-shrink: 0;
}

@keyframes click-hint-bounce {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(-6deg) translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .click-hint { animation: none; }
}

a.program-card:hover {
  transform: translateY(-6px);
}

.program-card h3 {
  font-size: 1.4rem;
}

.program-card p {
  color: rgba(255,255,255,0.92);
}

.program-card .age-badge {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  padding: 4px 14px;
  border-radius: 999px;
  font-family: "Baloo 2", sans-serif;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.program-card.p-sky { background: linear-gradient(135deg, var(--sky), var(--sky-deep)); }
.program-card.p-coral { background: linear-gradient(135deg, var(--coral), var(--coral-deep)); }
.program-card.p-grass { background: linear-gradient(135deg, var(--grass), var(--grass-deep)); }
.program-card.p-purple { background: linear-gradient(135deg, var(--purple), var(--purple-deep)); }

/* -------------------- CTA / banner -------------------- */

.cta-banner {
  background: linear-gradient(135deg, var(--sky) 0%, var(--sky-deep) 100%);
  border-radius: var(--radius-lg);
  padding: 56px;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  color: var(--white);
  font-size: 2rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.9);
  max-width: 520px;
  margin: 0 auto 28px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* -------------------- Info strip (address/hours/phone) -------------------- */

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: -60px;
  position: relative;
  z-index: 5;
}

.info-strip .card {
  text-align: left;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* -------------------- Footer -------------------- */

.site-footer {
  background: var(--ink);
  color: #d9d7ea;
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-grid h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 18px;
}

.footer-grid p, .footer-grid a {
  color: #c1bfd6;
  font-size: 0.92rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-grid a:hover {
  color: var(--yellow);
}

.footer-brand .logo-text {
  color: var(--white);
  font-size: 1.5rem;
}

.footer-brand .logo-text span {
  color: var(--yellow);
}

.footer-bottom {
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #928fa8;
}

/* -------------------- Page header banner (inner pages) -------------------- */

.page-banner {
  padding: 70px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner h1 {
  font-size: 2.6rem;
}

.page-banner p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.breadcrumb {
  font-family: "Baloo 2", sans-serif;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--sky-deep);
}

/* -------------------- About page -------------------- */

.story-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.story-block .badge-row {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.pill {
  background: var(--cream-deep);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: "Baloo 2", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.timeline {
  border-left: 3px dashed var(--yellow-deep);
  margin-left: 12px;
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.timeline-item strong {
  display: block;
  font-family: "Baloo 2", sans-serif;
  color: var(--coral-deep);
  font-size: 1.1rem;
}

/* -------------------- Day schedule -------------------- */

.day-schedule {
  border-left: 3px dashed var(--sky-deep);
  margin-left: 12px;
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.schedule-item {
  position: relative;
}

.schedule-item::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sky-deep);
  box-shadow: 0 0 0 3px var(--white);
}

.schedule-time {
  display: inline-block;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  color: var(--sky-deep);
  background: #e4f6fd;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.schedule-item h4 {
  font-family: "Baloo 2", sans-serif;
  margin: 0 0 2px;
  font-size: 1.05rem;
}

.schedule-item p {
  margin: 0;
}

/* -------------------- Programs page -------------------- */

.program-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 90px;
}

.program-detail:nth-child(even) .program-detail-text {
  order: 2;
}

.program-detail-art {
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

ul.checklist {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

ul.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-soft);
}

.extramural-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.extramural-grid .card {
  padding: 20px 10px;
}

.extramural-grid .card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
}

.extramural-grid .card p {
  color: var(--ink-soft);
  line-height: 1.25;
}

.flip-card {
  height: 172px;
  perspective: 1200px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card:focus-visible .flip-card-inner,
.flip-card:focus-within .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-card .card.flip-card-front:hover {
  transform: none;
}

.flip-card-back {
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 20px;
}

.flip-card-back img {
  max-width: 75%;
  max-height: 75%;
  object-fit: contain;
}

.flip-card-back-dual {
  gap: 8px;
}

.flip-card-back-dual img {
  max-width: 44%;
  max-height: 82%;
}

@media (max-width: 980px) {
  .flip-card { height: 165px; }
}

@media (max-width: 720px) {
  .flip-card { height: 175px; }
}

/* -------------------- Gallery page -------------------- */

.gallery-note {
  background: var(--cream-deep);
  border: 2px dashed var(--yellow-deep);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  max-width: 700px;
  margin: 0 auto 50px;
  text-align: center;
  font-family: "Baloo 2", sans-serif;
  color: var(--ink);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.social-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(34, 38, 58, 0.16);
}

.social-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 20px;
}

.social-card h3 {
  margin-bottom: 4px;
}

.social-card p {
  color: var(--ink-soft);
  margin: 0;
}

/* -------------------- Contact page -------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
  align-items: flex-start;
}

.contact-detail h4 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.contact-detail p {
  margin: 0;
}

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.hours-table td {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}

.hours-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--sky-deep);
  font-family: "Baloo 2", sans-serif;
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 320px;
  margin-bottom: 24px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-card {
  position: relative;
}

.map-card svg,
.map-card-iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-card-overlay {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 12px 16px;
}

.map-card-pin {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.map-card-overlay > div {
  flex: 1;
  min-width: 0;
}

.map-card-overlay strong {
  display: block;
  font-family: 'Baloo 2', sans-serif;
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-card-overlay span:not(.map-card-pin) {
  display: block;
  font-size: 12.5px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-card-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 13px;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .map-card-overlay {
    flex-wrap: wrap;
  }
  .map-card-overlay strong,
  .map-card-overlay span:not(.map-card-pin) {
    white-space: normal;
  }
  .map-card-btn {
    width: 100%;
    text-align: center;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form label {
  font-family: "Baloo 2", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid #ece8f5;
  font-family: "Nunito", sans-serif;
  font-size: 0.95rem;
  background: var(--cream);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--sky);
}

.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.form-status {
  color: var(--grass-deep);
  font-weight: 600;
  margin: 0;
}

.whatsapp-send-options {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.whatsapp-send-prompt {
  margin: 0 0 12px;
  font-weight: 600;
  color: var(--ink);
}

.whatsapp-send-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.whatsapp-btn {
  background: #25d366;
  color: var(--white);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.whatsapp-btn:hover {
  background: #1fb858;
}

/* -------------------- Decorative floats -------------------- */

.floaty {
  position: absolute;
  animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-16px); }
}

/* -------------------- Responsive -------------------- */

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 380px; margin: 0 auto; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .program-strip { grid-template-columns: repeat(2, 1fr); }
  .info-strip { grid-template-columns: 1fr; margin-top: 24px; }
  .story-block { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .program-detail { grid-template-columns: 1fr; }
  .program-detail:nth-child(even) .program-detail-text { order: 0; }
  .extramural-grid { grid-template-columns: repeat(3, 1fr); }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-phone span.txt { display: none; }
  .brand-logo-img { height: 78px; margin: -2px 0 -36px; }
  .brand-logo-img-page { height: 50px; }
  .hero h1 { font-size: 2.2rem; }
  .card-grid { grid-template-columns: 1fr; }
  .program-strip { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .extramural-grid { grid-template-columns: repeat(2, 1fr); }
  .social-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 24px; }
  section { padding: 56px 0; }

  .main-nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 3px dashed var(--yellow);
    padding: 12px 24px 20px;
  }
  .main-nav.open ul {
    flex-direction: column;
  }
}

/* -------------------- Values ribbon (candy-stripe banner) -------------------- */

.values-ribbon {
  background: repeating-linear-gradient(
    -45deg,
    var(--coral-deep),
    var(--coral-deep) 22px,
    #ffffff 22px,
    #ffffff 44px
  );
  border-radius: 999px;
  padding: 3px;
  box-shadow: var(--shadow);
}

.values-ribbon-inner {
  background: var(--coral-deep);
  border-radius: 999px;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  color: #ffffff;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
}

.values-ribbon-inner span {
  white-space: nowrap;
}

/* -------------------- Signpost -------------------- */

.signpost {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  padding-left: 26px;
}

.signpost::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: -30px;
  width: 10px;
  background: repeating-linear-gradient(
    to bottom,
    #d7d2c4,
    #d7d2c4 14px,
    #b9b3a1 14px,
    #b9b3a1 28px
  );
  border-radius: 6px;
}

.signpost-arrow {
  position: relative;
  color: #ffffff;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 24px 10px 20px;
  border-radius: 4px 999px 999px 4px;
  box-shadow: var(--shadow);
}

.signpost-arrow::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-left: 16px solid currentColor;
}

.sp-1 { background: var(--coral-deep); color: var(--coral-deep); }
.sp-1 span { color: #fff; }
.sp-2 { background: var(--orange); color: var(--orange); }
.sp-2 span { color: #fff; }
.sp-3 { background: var(--purple); color: var(--purple); }
.sp-3 span { color: #fff; }
.sp-4 { background: var(--yellow-deep); color: var(--yellow-deep); }
.sp-4 span { color: #fff; }
.sp-5 { background: var(--sky-deep); color: var(--sky-deep); }
.sp-5 span { color: #fff; }

.signpost-arrow span { position: relative; z-index: 1; }

/* -------------------- Poof trees (original decorative motif) -------------------- */

.poof-tree {
  position: absolute;
}
