/* Intuitive Pediatric OT — colors pulled from the tree-of-hearts logo */
:root {
  --plum: #6b2d8c;        /* the hands */
  --plum-deep: #3d1a52;   /* body text */
  --plum-soft: #f3edf7;   /* tinted panels */
  --paper: #fdfcfe;
  --line: #e2d6ea;

  /* heart colors, used for list bullets */
  --h1: #c4382b;
  --h2: #eb4e3f;
  --h3: #f47a7e;
  --h4: #e8b800;
  --h5: #94b524;
  --h6: #2ecc71;
  --h7: #1bbfa6;
  --h8: #3a9ee0;
  --h9: #3a4a82;
  --h10: #5e3363;

  --display: "Young Serif", Georgia, serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --measure: 66ch;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--plum-deep);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--plum); text-underline-offset: 0.18em; }
a:hover { color: var(--h1); }

:focus-visible {
  outline: 3px solid var(--h8);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--plum);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip:focus { left: 1rem; }

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 0.9rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--plum-deep);
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.2;
}
.brand img { width: 52px; height: 52px; mix-blend-mode: multiply; }
.brand span { max-width: 15em; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  text-decoration: none;
  color: var(--plum-deep);
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--plum); border-color: var(--line); }
.site-nav a[aria-current="page"] { color: var(--plum); border-color: var(--plum); }

/* ---------- type ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--plum);
  line-height: 1.15;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }
.lede { font-size: 1.3rem; line-height: 1.5; }

.button {
  display: inline-block;
  background: var(--plum);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
}
.button:hover { background: var(--plum-deep); color: #fff; }

/* ---------- home hero ---------- */
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 2rem;
  padding-block: clamp(2.5rem, 7vw, 5.5rem);
}
.hero h1 { margin-bottom: 0.35em; }
.hero .tagline {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--plum-deep);
  margin-bottom: 0.4em;
}
.hero .services-line { margin-bottom: 2rem; }
.hero .person {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 1rem;
}
.hero-logo { justify-self: center; width: min(460px, 100%); mix-blend-mode: multiply; }

/* ---------- home: page links ---------- */
.explore {
  background: var(--plum-soft);
  padding-block: clamp(3rem, 7vw, 5rem);
}
.explore ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.explore a {
  display: block;
  text-decoration: none;
  color: var(--plum-deep);
}
.explore img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  border-radius: 18px 18px 18px 90px;
  margin-bottom: 1.1rem;
}
.explore li:nth-child(3) img { object-position: center 20%; }
.explore h2 { font-size: 1.6rem; margin-bottom: 0.35em; }
.explore a:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; }
.explore p { margin: 0; }

/* ---------- interior pages ---------- */
.page-head .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.page-head.solo .wrap { grid-template-columns: 1fr; padding-bottom: 2.5rem; }
.page-head .kicker {
  font-family: var(--display);
  color: var(--plum-deep);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.page-head img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px 18px 18px 120px;
}
.page-head .portrait {
  aspect-ratio: 4 / 5;
  max-width: 380px;
  justify-self: center;
  border-radius: 200px 200px 18px 18px;
}

.content { padding-block: 0 clamp(3rem, 8vw, 6rem); }
.prose > * { max-width: var(--measure); }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }

/* heart bullets, cycling through the logo colors */
.hearts {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5em;
}
.hearts li {
  position: relative;
  padding-left: 2.1rem;
  margin-bottom: 0.9em;
}
.hearts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 1.15rem;
  height: 1.05rem;
  background: var(--heart, var(--h2));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21.6 10.3 20C4.2 14.5 0 10.7 0 6.2 0 2.7 2.7 0 6.2 0c2 0 3.9.9 5.8 2.6C13.9.9 15.8 0 17.8 0 21.3 0 24 2.7 24 6.2c0 4.5-4.2 8.3-10.3 13.8z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21.6 10.3 20C4.2 14.5 0 10.7 0 6.2 0 2.7 2.7 0 6.2 0c2 0 3.9.9 5.8 2.6C13.9.9 15.8 0 17.8 0 21.3 0 24 2.7 24 6.2c0 4.5-4.2 8.3-10.3 13.8z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hearts li:nth-child(6n+1) { --heart: var(--h2); }
.hearts li:nth-child(6n+2) { --heart: var(--h4); }
.hearts li:nth-child(6n+3) { --heart: var(--h5); }
.hearts li:nth-child(6n+4) { --heart: var(--h7); }
.hearts li:nth-child(6n+5) { --heart: var(--h8); }
.hearts li:nth-child(6n+6) { --heart: var(--h3); }
.hearts strong { color: var(--plum); }

/* the "simple" answer on Why OT */
.answer {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.3;
  color: var(--plum-deep);
  margin: 0.2em 0 1.2em;
}
.question {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--plum);
  margin-bottom: 0.4em;
}

/* program options on Why Intuitive */
.programs {
  background: var(--plum-soft);
  padding-block: clamp(3rem, 7vw, 5rem);
  margin-bottom: clamp(3rem, 7vw, 5rem);
}
.programs .intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}
.programs .intro img {
  border-radius: 18px 18px 120px 18px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
}
.program-list {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.program {
  background: var(--paper);
  border-top: 6px solid var(--plum);
  border-radius: 4px 4px 24px 24px;
  padding: 2rem clamp(1.25rem, 3vw, 2.25rem);
}
.program:nth-child(2) { border-top-color: var(--h7); align-self: start; }
.program-num {
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--plum);
  display: block;
  margin-bottom: 0.5rem;
}
.program:nth-child(2) .program-num { color: var(--h7); }
.program h3 { margin-top: 0; }
.program p:last-child, .program ul:last-child { margin-bottom: 0; }

/* ---------- contact ---------- */
.contact-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--plum-soft);
  border-radius: 24px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 760px;
}
.contact-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 50%;
}
.contact-card .name { font-family: var(--display); font-size: 1.5rem; color: var(--plum); margin-bottom: 0.2em; }
.contact-card .email { font-size: 1.2rem; margin-bottom: 1.2em; word-break: break-word; }
.contact-card p:last-child { margin-bottom: 0; }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}
.contact-layout .contact-card { grid-template-columns: 1fr; gap: 1.25rem; }
.contact-layout .contact-card img { width: 120px; height: 120px; }
.contact-layout .contact-card p:last-child { margin: 0; }

.consult-form { max-width: 640px; }
.consult-form h2 { margin-bottom: 1.2rem; }
.field { margin: 0 0 1.25rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
fieldset.field { border: 0; padding: 0; }
.field label, .field legend {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
  padding: 0;
}
.optional { font-weight: 400; color: #6d5a7a; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--plum-deep);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
}
.field input:focus, .field textarea:focus { border-color: var(--plum); outline: none; box-shadow: 0 0 0 3px var(--plum-soft); }
.field textarea { resize: vertical; }
.choice {
  display: flex !important;
  gap: 0.6rem;
  align-items: center;
  font-weight: 400 !important;
  margin-bottom: 0.4rem;
}
.choice input { accent-color: var(--plum); width: 1.1rem; height: 1.1rem; }
.consult-form .button { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.honey { position: absolute; left: -9999px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--plum-deep);
  color: #efe6f5;
  padding-block: 3rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
}
.site-footer .foot-brand { display: flex; gap: 1rem; align-items: center; }
.site-footer .foot-brand img {
  width: 64px;
  height: 64px;
  background: #fff;
  border-radius: 50%;
  padding: 6px;
}
.site-footer .foot-name { font-family: var(--display); font-size: 1.15rem; margin: 0; color: #fff; }
.site-footer .foot-tag { margin: 0; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; font-size: 0.98rem; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap,
  .page-head .wrap,
  .programs .intro,
  .program-list { grid-template-columns: 1fr; }
  .hero-logo { order: -1; width: min(260px, 70%); }
  .explore ul { grid-template-columns: 1fr; gap: 2.5rem; }
  .page-head img { order: -1; }
  .page-head .portrait { max-width: 280px; }
  .hero-logo { width: min(190px, 50%); }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 1.06rem; }
  .brand span { font-size: 0.95rem; }
  .contact-card { grid-template-columns: 1fr; text-align: left; }
  .contact-card img { width: 120px; height: 120px; }
  .field-row { grid-template-columns: 1fr; }
}
