/* Mattawan Counseling Center: shared styles. Colors come from the logo. */
:root {
  --blue: #004AAD;
  --purple: #6B1FAD;
  --sky: #38B6FF;
  --green: #99E17A;
  --orange: #FF914D;
  --red: #FF3131;
  --yellow: #FFD21F;
  --ink: #1A2036;
  --muted: #4A5068;
  --line: #E1E5F0;
  --tint-sky: #EAF6FF;
  --tint-purple: #F4EEFA;
  --tint-green: #F0FAEA;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--purple); }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 8px; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* Color strip echoing the logo's grid */
.strip { display: flex; height: 18px; }
.strip span { flex: 1; }
.strip span:nth-child(1) { background: var(--sky); }
.strip span:nth-child(2) { background: var(--purple); }
.strip span:nth-child(3) { background: var(--green); }
.strip span:nth-child(4) { background: var(--orange); }
.strip span:nth-child(5) { background: var(--red); }
.strip span:nth-child(6) { background: var(--yellow); }
.strip span:nth-child(7) { background: var(--blue); }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 72px; height: 72px; border-radius: 8px; }.brand-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; line-height: 1.15; }
.brand-name small { display: block; font-family: var(--sans); font-size: .8rem; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.nav { display: flex; gap: 6px; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem;
  padding: 10px 14px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center;
}
.nav a:hover { background: var(--tint-purple); color: var(--purple); }
.nav a[aria-current="page"] { background: var(--tint-sky); color: var(--blue); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  background: var(--blue); color: #fff; border: 2px solid var(--blue);
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--purple); border-color: var(--purple); color: #fff; }
.btn.ghost { background: transparent; color: var(--blue); }
.btn.ghost:hover { background: var(--tint-purple); color: var(--purple); border-color: var(--purple); }
.btn.small { min-height: 44px; padding: 8px 18px; font-size: .95rem; }

/* Hero */
.hero { padding-block: clamp(36px, 7vw, 80px); background: linear-gradient(180deg, var(--tint-sky) 0%, #fff 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.chip {
  display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--purple); background: var(--tint-purple); border-radius: 999px; padding: 6px 14px; margin: 0 0 18px;
}
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin-bottom: 14px; }
h3 { font-size: 1.25rem; margin-bottom: 8px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin: 20px 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.portrait { position: relative; max-width: 270px; margin-inline: auto; padding: 0 14px 14px 0; }
.portrait::before {
  content: ""; position: absolute; inset: 14px 0 0 14px;
  border-radius: 999px 999px 28px 28px;
  background: linear-gradient(160deg, var(--sky), var(--purple));
}
.portrait img {
  position: relative; width: 100%;height:auto: aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%;
  border-radius: 999px 999px 28px 28px; border: 6px solid #fff; background: #fff;
}

/* Sections */
section { padding-block: clamp(40px, 6vw, 72px); }
.section-tint { background: var(--tint-purple); }
.section-green { background: var(--tint-green); }
.intro { max-width: 40em; color: var(--muted); margin: 0 0 28px; }

.about { display: grid; grid-template-columns: 1fr; max-width: 46em; }
.about p { margin: 0 0 14px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; position: relative;
  border-top: 6px solid var(--sky);
}
.steps li:nth-child(2) { border-top-color: var(--purple); }
.steps li:nth-child(3) { border-top-color: var(--green); }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 700; margin-bottom: 12px;
}
.steps p { margin: 0; color: var(--muted); }

.fee-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.price { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--blue); line-height: 1; }
.price small { font-family: var(--sans); font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-note { margin: 10px 0 0; color: var(--muted); }
.price-note strong { color: var(--ink); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: .42em; width: 12px; height: 7px;
  border-left: 3px solid var(--purple); border-bottom: 3px solid var(--purple); transform: rotate(-45deg);
}

.paperwork { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.paperwork li {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px;
}
.paperwork strong { display: block; font-size: 1.05rem; }
.paperwork span { color: var(--muted); font-size: .98rem; }

.notice {
  background: #fff; border: 2px solid var(--orange); border-radius: 16px; padding: 20px 24px; max-width: 46em;
}
.notice strong { color: var(--ink); }
.notice p { margin: 0; }
.notice p + p { margin-top: 8px; color: var(--muted); }

/* Blog */
.page-head { padding-block: clamp(36px, 6vw, 64px); background: linear-gradient(180deg, var(--tint-green) 0%, #fff 100%); }
.posts { display: grid; gap: 24px; max-width: 46em; }
.post { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--purple); border-radius: 16px; padding: 28px; }
.post time { font-size: .9rem; font-weight: 600; color: var(--purple); letter-spacing: .04em; text-transform: uppercase; }
.post h2 { font-size: 1.6rem; margin: 6px 0 12px; }
.post p { margin: 0 0 12px; }

/* Footer */
.site-footer { background: var(--ink); color: #E8EBF5; margin-top: 0; }
.site-footer .wrap { padding-block: 36px; display: grid; gap: 10px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--yellow); }
.site-footer .fine { font-size: .92rem; color: #C3C9DC; }
.site-footer .name { font-family: var(--serif); font-size: 1.15rem; color: #fff; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .portrait { order: -1; max-width: 150px; }
  .steps, .fee-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .brand-name { font-size: 1.1rem; }
  .btn { width: 100%; }
  .btn.small { width: auto; }
  .nav a { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
 /* Headshot: plain conventional portrait */
.portrait { padding: 0; max-width: 260px; }
.portrait::before { display: none; }
.portrait img { height: auto !important; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 10%; border-radius: 6px; border: 0; box-shadow: 0 2px 10px rgba(26, 32, 54, 0.15); }
@media (max-width: 860px) { .portrait { max-width: 170px; } }
/* Library */
.shelf { margin-bottom: 44px; }
.shelf h2 { margin-bottom: 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.lib-card { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--sky); border-radius: 16px; padding: 20px; }
.shelf.s2 .lib-card { border-top-color: var(--purple); }
.shelf.s3 .lib-card { border-top-color: var(--green); }
.shelf.s4 .lib-card { border-top-color: var(--orange); }
.lib-card h3 { margin: 12px 0 6px; font-size: 1.15rem; }
.lib-card p { margin: 0; color: var(--muted); font-size: .98rem; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--tint-sky); color: var(--blue); }
.badge.soon { background: #F2F3F8; color: var(--muted); }
/* Library page spacing */
.page-head .lede { max-width: none; margin-bottom: 0; }
.page-head { padding-bottom: 20px; }
.page-head + section { padding-top: 24px; }
/* Library articles */
.readtime { margin: 10px 0 0; color: var(--muted); font-size: .95rem; }
.article { max-width: 44em; }
.article .back { display: inline-block; margin-bottom: 22px; font-weight: 600; text-decoration: none; }
.article .back:hover { text-decoration: underline; }
.article h2 { font-size: 1.45rem; margin: 34px 0 10px; }
.article p { margin: 0 0 14px; }
.article ul { margin: 0 0 14px; padding-left: 22px; }
.article ul li { margin-bottom: 10px; }
.nutshell, .try, .support, .related { border-radius: 16px; padding: 22px 26px; margin: 0 0 8px; border-left: 6px solid var(--sky); background: var(--tint-sky); }
.nutshell h2, .try h2, .support h2, .related h2 { margin: 0 0 10px; font-size: 1.2rem; }
.nutshell ul, .related ul { margin: 0; }
.nutshell li:last-child, .related li:last-child { margin-bottom: 0; }
.try { margin-top: 34px; border-left-color: var(--green); background: var(--tint-green); }
.try p, .support p { margin: 0; }
.support { margin-top: 16px; border-left-color: var(--purple); background: var(--tint-purple); }
.related { margin-top: 16px; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--orange); }
.standing { margin: 34px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.lib-card h3 a { color: inherit; text-decoration: none; }
.lib-card h3 a:hover { color: var(--purple); text-decoration: underline; }