/* Skills in Bloom Pediatric Occupational Therapy — site styles.
   Palette + type tokens are shared with booking.css (the --sib-* set). */

:root {
  --sib-purple: #7B5EA7;
  --sib-purple-dark: #5E4589;
  --sib-pink: #EE4B8A;
  --sib-pink-dark: #D63A75;
  --sib-pink-soft: #FDE9EE;
  --sib-pink-pale: #FFF3F6;
  --sib-yellow: #F5C242;
  --sib-yellow-soft: #FFF3D6;
  --sib-green: #8DBB5A;
  --sib-green-soft: #EAF3DD;
  --sib-blue: #5B8DD6;
  --sib-blue-soft: #E3ECFA;
  --sib-cream: #FFF8EE;
  --sib-lavender: #EDE6F7;
  --sib-ink: #3B3350;
  --sib-muted: #6F6885;
  --sib-line: #EFE6E0;
  --sib-radius: 18px;
  --sib-font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sib-font-display: 'Quicksand', 'Nunito', system-ui, sans-serif;
  --shadow-card: 0 10px 30px rgba(123, 94, 167, 0.10);
  --wrap: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sib-font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--sib-ink);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sib-pink-dark); }
h1, h2, h3, h4 {
  font-family: var(--sib-font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--sib-purple);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.15rem; color: var(--sib-ink); }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.6em;
  border-radius: 12px;
  font-family: var(--sib-font-display);
  font-weight: 700; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(238, 75, 138, .22); }
.btn-pink { background: var(--sib-pink); color: #fff; }
.btn-pink:hover { background: var(--sib-pink-dark); }
.btn-outline { background: #fff; color: var(--sib-pink); border-color: var(--sib-pink); }
.btn-purple { background: var(--sib-purple); color: #fff; }
.btn-purple:hover { background: var(--sib-purple-dark); box-shadow: 0 8px 20px rgba(123, 94, 167, .25); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--sib-cream);
  border-bottom: 1px solid var(--sib-line);
  font-size: .82rem;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar .tagline { color: var(--sib-purple-dark); font-style: italic; display: flex; align-items: center; gap: 8px; }
.topbar .tagline svg { width: 16px; height: 16px; }
.topbar nav { display: flex; align-items: center; gap: 18px; }
.topbar nav a { color: var(--sib-ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar nav a:hover { color: var(--sib-pink); }
.topbar nav svg { width: 15px; height: 15px; }
.topbar .social a { width: 26px; height: 26px; border-radius: 50%; background: var(--sib-pink); color: #fff; justify-content: center; }
.topbar .social a.fb { background: var(--sib-blue); }
.topbar .social svg { width: 14px; height: 14px; }

/* ---------- Header / nav ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--sib-line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 96px; }
.brand { display: block; text-decoration: none; }
.brand svg { width: 210px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  font-family: var(--sib-font-display); font-weight: 600; font-size: 1rem;
  color: var(--sib-purple-dark); text-decoration: none; padding: 6px 0; position: relative;
}
.main-nav a:hover { color: var(--sib-pink); }
.main-nav a[aria-current="page"] { color: var(--sib-pink); }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--sib-pink); border-radius: 2px;
}
.nav-toggle {
  display: none; background: none; border: 2px solid var(--sib-lavender); border-radius: 10px;
  width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--sib-purple);
}
.nav-toggle svg { width: 22px; height: 22px; }
.header-cta { white-space: nowrap; }

/* ---------- Hero ---------- */
.hero {
  background: var(--sib-cream);
  position: relative; overflow: hidden;
}
.hero::after {
  /* the soft curve that lifts the next section out of the cream */
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -70px; height: 120px;
  background: #fff; border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
  padding: 56px 0 100px; position: relative; z-index: 1;
}
.hero h1 { margin-bottom: .5em; }
.hero .lead { font-size: 1.12rem; max-width: 30ch; color: var(--sib-ink); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.bloom-word { white-space: nowrap; }
.bloom-word span { display: inline-block; }
.bloom-word .c1 { color: var(--sib-blue); }
.bloom-word .c2 { color: var(--sib-yellow); }
.bloom-word .c3 { color: var(--sib-pink); }
.bloom-word .c4 { color: var(--sib-green); }
.bloom-word .c5 { color: var(--sib-purple); }
.hero-art { position: relative; }
.hero-photo {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover;
  border-radius: 58% 42% 50% 50% / 55% 45% 55% 45%;
  box-shadow: 0 20px 50px rgba(123, 94, 167, .18);
  background: #fff;
}
.hero-art .deco { position: absolute; pointer-events: none; }
.hero-art .deco-leaf { left: -40px; bottom: 20px; width: 110px; }
.hero-art .deco-flower { right: -10px; bottom: -10px; width: 90px; }
.hero-art .deco-sprig { left: -10px; top: -20px; width: 60px; }
.hero .deco-petal { position: absolute; left: 48%; top: 60px; width: 42px; }

/* ---------- Section basics ---------- */
.section { padding: 72px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { display: inline-flex; align-items: center; gap: 12px; }
.section-title h2 svg { width: 34px; height: 34px; }
.section-title p { color: var(--sib-muted); margin: 0; }
.eyebrow { color: var(--sib-pink); font-family: var(--sib-font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }

/* ---------- Service cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.service-card {
  background: #fff; border: 1px solid var(--sib-line); border-radius: var(--sib-radius);
  padding: 26px 16px 22px; text-align: center; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: transform .15s ease;
}
.service-card:hover { transform: translateY(-4px); }
.service-card h3 { margin: 4px 0 0; font-size: 1.05rem; }
.service-card p { font-size: .9rem; color: var(--sib-muted); margin: 0; flex: 1; }
.service-card .more {
  font-family: var(--sib-font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.icon-circle {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
}
.icon-circle svg { width: 30px; height: 30px; }
.tint-pink { background: var(--sib-pink-soft); color: var(--sib-pink); }
.tint-purple { background: var(--sib-lavender); color: var(--sib-purple); }
.tint-yellow { background: var(--sib-yellow-soft); color: #D9A21B; }
.tint-green { background: var(--sib-green-soft); color: var(--sib-green); }
.tint-blue { background: var(--sib-blue-soft); color: var(--sib-blue); }
.tint-pink .more, .c-pink { color: var(--sib-pink); }
.c-purple { color: var(--sib-purple); }
.c-yellow { color: #D9A21B; }
.c-green { color: var(--sib-green); }
.c-blue { color: var(--sib-blue); }

/* ---------- About ---------- */
.about { background: var(--sib-pink-pale); position: relative; overflow: hidden; }
.about .wrap { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 34px; align-items: center; }
.about h2 { display: flex; align-items: center; gap: 10px; }
.about h2 svg { width: 26px; height: 26px; }
.about p { font-size: .98rem; }
.about-photo {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 46% 54% 50% 50% / 50% 44% 56% 50%;
  box-shadow: 0 20px 50px rgba(238, 75, 138, .15);
}
.values { display: grid; gap: 14px; }
.value {
  background: #fff; border-radius: 16px; padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start;
  box-shadow: var(--shadow-card);
}
.value .icon-circle { width: 48px; height: 48px; flex: 0 0 48px; }
.value .icon-circle svg { width: 24px; height: 24px; }
.value h3 { margin: 0 0 2px; font-size: 1rem; }
.value p { margin: 0; font-size: .88rem; color: var(--sib-muted); }

/* ---------- Getting started ---------- */
.steps-section .wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; position: relative; text-align: center; }
.step { position: relative; }
.step .icon-circle { width: 74px; height: 74px; margin: 0 auto 14px; }
.step .icon-circle svg { width: 36px; height: 36px; }
.step h3 { font-size: 1rem; margin-bottom: 4px; }
.step p { font-size: .86rem; color: var(--sib-muted); margin: 0; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 37px; left: calc(50% + 44px); width: calc(100% - 88px);
  border-top: 3px dotted #C9BFE3;
}
.ready {
  background: var(--sib-lavender); border-radius: 22px; padding: 30px; position: relative; overflow: hidden;
}
.ready h2 { font-size: 1.6rem; margin-bottom: .4em; }
.ready p { max-width: 28ch; }
.ready .deco { position: absolute; right: -6px; bottom: -8px; width: 130px; pointer-events: none; }

/* ---------- Email list ---------- */
.email-strip { background: var(--sib-yellow-soft); padding: 34px 0; }
.email-strip .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.email-strip .icon-circle { width: 56px; height: 56px; background: #fff; color: #D9A21B; }
.email-strip h2 { font-size: 1.3rem; margin: 0 0 4px; }
.email-strip p { margin: 0; font-size: .9rem; color: var(--sib-muted); }
.email-form { display: flex; gap: 10px; min-width: 380px; }
.email-form input {
  flex: 1; padding: 12px 16px; border: 1px solid var(--sib-line); border-radius: 12px; font: inherit; font-size: .95rem; background: #fff;
}
.email-form input:focus { outline: 2px solid var(--sib-pink); outline-offset: 1px; }
.form-note { grid-column: 1 / -1; margin: 0; font-size: .9rem; }
.form-note.ok { color: var(--sib-green); }
.form-note.err { color: var(--sib-pink-dark); }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--sib-line); padding: 44px 0 0; font-size: .88rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1.2fr .9fr; gap: 24px; }
.site-footer h4 { font-size: .95rem; margin-bottom: 10px; color: var(--sib-ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 5px; }
.site-footer a { color: var(--sib-ink); text-decoration: none; }
.site-footer a:hover { color: var(--sib-pink); }
.site-footer .contact li { display: flex; gap: 8px; align-items: flex-start; }
.site-footer .contact svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 3px; color: var(--sib-pink); }
.site-footer .brand svg { width: 190px; }
.site-footer .social { display: flex; gap: 10px; margin-top: 4px; }
.site-footer .social a { width: 34px; height: 34px; border-radius: 50%; background: var(--sib-pink); color: #fff; display: grid; place-items: center; }
.site-footer .social a.fb { background: var(--sib-blue); }
.site-footer .social svg { width: 17px; height: 17px; }
.site-footer .bottom {
  margin-top: 30px; border-top: 1px solid var(--sib-line); padding: 14px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .8rem; color: var(--sib-muted);
}
.site-footer .bottom a { color: var(--sib-muted); margin-left: 18px; }

/* ---------- Inner pages ---------- */
.page-hero { background: var(--sib-cream); padding: 52px 0 44px; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-hero p { color: var(--sib-muted); max-width: 60ch; margin: 0 auto; }
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.card {
  background: #fff; border: 1px solid var(--sib-line); border-radius: var(--sib-radius); padding: 26px; box-shadow: var(--shadow-card);
}
.service-detail {
  display: grid; grid-template-columns: 84px 1fr; gap: 22px; align-items: start; padding: 30px 0; border-bottom: 1px solid var(--sib-line);
}
.service-detail:last-child { border-bottom: 0; }
.service-detail .icon-circle { width: 84px; height: 84px; }
.service-detail .icon-circle svg { width: 40px; height: 40px; }
.service-detail h2 { font-size: 1.45rem; margin-bottom: .3em; }
.service-detail ul { columns: 2; column-gap: 30px; padding-left: 1.1em; margin: .6em 0 0; font-size: .95rem; }
.service-detail li { break-inside: avoid; margin-bottom: .3em; }
.faq details { border-bottom: 1px solid var(--sib-line); padding: 14px 0; }
.faq summary { cursor: pointer; font-family: var(--sib-font-display); font-weight: 700; color: var(--sib-purple-dark); font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sib-pink); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--sib-muted); }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.resource-grid .card h3 { color: var(--sib-purple); }
.resource-grid .card p { font-size: .93rem; color: var(--sib-muted); }
.contact-list { list-style: none; padding: 0; margin: 0 0 20px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.contact-list .icon-circle { width: 44px; height: 44px; flex: 0 0 44px; }
.contact-list .icon-circle svg { width: 22px; height: 22px; }
.contact-list a { text-decoration: none; color: var(--sib-ink); font-weight: 700; }
.contact-list small { display: block; color: var(--sib-muted); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-family: var(--sib-font-display); font-weight: 700; font-size: .92rem; color: var(--sib-purple-dark); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; padding: 11px 14px; border: 1px solid #DDD3E8; border-radius: 12px; background: #fff; width: 100%;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--sib-pink); outline-offset: 1px; border-color: transparent; }
.field textarea { min-height: 130px; resize: vertical; }
.cta-band { background: var(--sib-lavender); border-radius: 22px; padding: 34px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 4px; font-size: 1.5rem; }
.cta-band p { margin: 0; color: var(--sib-muted); }
.book-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
/* Grid items default to min-width:auto, so the widget's horizontally scrolling
   day-chip row made the whole column (and the page) wider than a phone screen. */
.book-layout > * { min-width: 0; }
.book-aside .card { background: var(--sib-cream); border-color: transparent; }
.book-aside ol { padding-left: 1.2em; margin: 0; }
.book-aside li { margin-bottom: .5em; font-size: .95rem; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 0; }
.badge { background: #fff; border: 1px solid var(--sib-line); border-radius: 999px; padding: 6px 12px; font-size: .82rem; font-family: var(--sib-font-display); font-weight: 700; color: var(--sib-purple-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr 1fr; }
  .about .wrap { grid-template-columns: 1fr 1fr; }
  .about .about-photo-wrap { order: -1; grid-column: 1 / -1; max-width: 360px; margin: 0 auto; }
  .steps-section .wrap { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .topbar .tagline { display: none; }
  .topbar .wrap { justify-content: flex-end; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    box-shadow: 0 16px 30px rgba(59, 51, 80, .12); padding: 8px 20px 16px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--sib-line); }
  .main-nav a[aria-current="page"]::after { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .site-header .wrap { min-height: 76px; }
  .brand svg { width: 170px; }
  .hero .wrap { grid-template-columns: 1fr; padding: 40px 0 80px; }
  .hero .lead { max-width: none; }
  .hero-art { max-width: 460px; margin: 10px auto 0; }
  .hero .deco-petal { display: none; }
  .hero-art .deco-leaf { left: -20px; }
  .two-col, .book-layout { grid-template-columns: 1fr; }
  .email-strip .wrap { grid-template-columns: 1fr; text-align: center; }
  .email-strip .icon-circle { margin: 0 auto; }
  .email-form { min-width: 0; }
  .steps { grid-template-columns: 1fr 1fr; gap: 24px; }
  .step:not(:last-child)::after { display: none; }
  .section { padding: 56px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .service-card { padding: 20px 12px 18px; }
  .about .wrap { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .site-footer .brand-col { grid-column: 1 / -1; }
  .email-form { flex-direction: column; }
  .resource-grid { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail ul { columns: 1; }
  .hero-art .deco-leaf { display: none; }
  .btn { width: 100%; }
  .hero .actions .btn { width: auto; flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .service-card { transition: none; }
}
