/* Laura Giardina — Senior Placement Services of Mid-Michigan
 *
 * PALETTE is taken from her existing logo, sampled directly: blue #2F5D4F and
 * orange #2F5D4F. Everything else is built around them. Light and warm on
 * purpose - this is not a construction site. The people reading it are often
 * worried adult children deciding about a parent, and a dark aggressive theme
 * reads as the wrong kind of business entirely.
 *
 * ACCESSIBILITY IS A FEATURE HERE, NOT A CHECKBOX. A meaningful share of
 * visitors are 55+ and some are the seniors themselves. So: 18px base (not 16),
 * generous line-height, 1.15rem body copy, large tap targets, real focus rings,
 * and nothing that depends on hover alone.
 */

:root {
  --blue:      #2F5D4F;
  --blue-dk:   #234639;
  --blue-soft: #E8EEEA;
  --orange:    #2F5D4F;
  --orange-dk: #234639;
  --orange-soft:#EFEBE3;

  --ink:       #1B2A36;
  --ink-soft:  #2E4253;
  --muted:     #5B6B7A;
  --dim:       #82919E;

  --bg:        #FBFAF8;
  --surface:   #FFFFFF;
  --line:      #E2E6EA;
  --line-soft: #EFF2F4;

  --wrap: 1180px;
  --gut: 24px;
  --r: 14px;
  --r-sm: 9px;

  --shadow-sm: 0 2px 10px rgba(27,42,54,.06);
  --shadow:    0 14px 38px -18px rgba(27,42,54,.30);
  --shadow-lg: 0 28px 60px -24px rgba(27,42,54,.34);
  --ease: cubic-bezier(.4,.1,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  /* 18px base: this audience should not have to zoom. */
  font: 400 18px/1.72 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 600; line-height: 1.16; margin: 0 0 16px; color: var(--ink);
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.32rem; }
p  { margin: 0 0 17px; }
a  { color: var(--blue); }
ul, ol { margin: 0 0 17px; padding-left: 24px; }
li { margin-bottom: 9px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.lead { font-size: 1.21rem; color: var(--ink-soft); max-width: 64ch; line-height: 1.68; }
.muted { color: var(--muted); }
.small { font-size: .95rem; }
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font: 600 .84rem/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .16em; text-transform: uppercase; color: var(--orange);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--orange); }
.center .eyebrow::before { display: none; }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: 100px; border: 2px solid transparent;
  font: 600 1.06rem/1 ui-sans-serif, system-ui, sans-serif;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease),
              background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn svg { width: 19px; height: 19px; flex: 0 0 auto; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px -10px rgba(47,93,79,.7); }
.btn-primary:hover { background: var(--orange-dk); transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(47,93,79,.75); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -10px rgba(47,93,79,.7); }
.btn-blue:hover { background: var(--blue-dk); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.btn-light:hover { background: #fff; color: var(--blue-dk); transform: translateY(-2px); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.center .btn-row { justify-content: center; }

/* -------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 22px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; margin-right: auto; }
.brand img { height: 48px; width: auto; display: block; }
.brand-txt { display: block; line-height: 1.15; }
.brand-txt b { display: block; font: 600 1.12rem/1.2 ui-serif, Georgia, serif; color: var(--ink); }
.brand-txt span { display: block; font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
@media (max-width: 560px) { .brand-txt { display: none; } }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 11px 15px; border-radius: 100px; text-decoration: none;
  color: var(--ink-soft); font-weight: 600; font-size: 1.01rem;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav a:hover { background: var(--blue-soft); color: var(--blue-dk); }
.nav a.active { color: var(--blue); }
.nav .btn { margin-left: 10px; padding: 13px 24px; font-size: 1rem; }

.nav-toggle {
  display: none; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 13px; cursor: pointer; line-height: 0;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .22s var(--ease), opacity .18s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px var(--gut) 20px; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 15px; border-radius: var(--r-sm); }
  .nav .btn { margin: 10px 0 0; }
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; background: #17221E; isolation: isolate; }
.hero video, .hero .hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(10,32,46,.93) 0%, rgba(10,32,46,.82) 42%, rgba(10,32,46,.50) 72%, rgba(10,32,46,.38) 100%),
    linear-gradient(180deg, rgba(10,32,46,.30), rgba(10,32,46,.72));
}
.hero-inner { position: relative; padding: 104px 0 96px; max-width: 760px; color: #fff; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: #D9CBB0; }
.hero .lead { color: rgba(255,255,255,.93); font-size: 1.28rem; max-width: 56ch; }
.hero .eyebrow { color: #D9CBB0; }
.hero .eyebrow::before { background: #D9CBB0; }

.hero-free {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.3);
  border-radius: 100px; padding: 9px 20px 9px 12px; backdrop-filter: blur(6px);
  font-weight: 600; font-size: 1rem; color: #fff;
}
.hero-free b { background: var(--orange); color: #fff; border-radius: 100px; padding: 5px 13px; font-size: .88rem; letter-spacing: .04em; }

@media (max-width: 760px) { .hero-inner { padding: 64px 0 58px; } }

/* ------------------------------------------------------- quick actions */
/* Four things a visitor actually wants to do, pinned under the hero so nobody
   has to hunt. Lifted straight off the "quick actions bar" pattern. */
.quick { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.quick a {
  display: flex; align-items: center; gap: 15px; padding: 24px 22px;
  text-decoration: none; color: var(--ink); border-right: 1px solid var(--line-soft);
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.quick a:last-child { border-right: 0; }
.quick a:hover { background: var(--blue-soft); }
.quick-ico {
  width: 46px; height: 46px; flex: 0 0 auto; border-radius: 12px;
  background: var(--blue-soft); color: var(--blue); display: grid; place-items: center;
  transition: transform .22s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.quick a:hover .quick-ico { transform: translateY(-3px) scale(1.06); background: var(--blue); color: #fff; }
.quick-ico svg { width: 23px; height: 23px; }
.quick b { display: block; font-size: 1.04rem; line-height: 1.3; }
.quick span { display: block; font-size: .9rem; color: var(--muted); }
@media (max-width: 900px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick a:nth-child(2) { border-right: 0; }
  .quick a:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
}
@media (max-width: 520px) {
  .quick-grid { grid-template-columns: 1fr; }
  .quick a { border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 18px 16px; }
}

/* ------------------------------------------------------------ sections */
section { padding: 92px 0; }
section.tint { background: var(--blue-soft); }
section.warm { background: var(--orange-soft); }
section.white { background: var(--surface); }
.sec-head { max-width: 70ch; margin-bottom: 48px; }
.sec-head.center { margin-left: auto; margin-right: auto; }
@media (max-width: 760px) { section { padding: 58px 0; } .sec-head { margin-bottom: 32px; } }

/* --------------------------------------------------------------- grids */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.wide-left { grid-template-columns: 1.15fr .85fr; }
@media (max-width: 900px) { .split, .split.wide-left { grid-template-columns: 1fr; gap: 34px; } }

/* --------------------------------------------------------------- cards */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 32px 28px; position: relative; overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #CFDCD5; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin-bottom: 0; font-size: 1.04rem; }
.card-ico {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); margin-bottom: 20px;
  transition: transform .25s var(--ease), background .22s var(--ease), color .22s var(--ease);
}
.card:hover .card-ico { transform: translateY(-3px) rotate(-5deg); background: var(--blue); color: #fff; }
.card-ico svg { width: 28px; height: 28px; }
.card.warm .card-ico { background: var(--orange-soft); color: var(--orange); }
.card.warm:hover .card-ico { background: var(--orange); color: #fff; }

a.card { text-decoration: none; color: inherit; display: block; }
a.card .more { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; color: var(--blue); font-weight: 600; }
a.card .more span { transition: transform .22s var(--ease); }
a.card:hover .more span { transform: translateX(5px); }

/* --------------------------------------------------------------- steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 22px; } }
.step { position: relative; padding-left: 74px; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 0; width: 54px; height: 54px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--blue); color: var(--blue);
  display: grid; place-items: center; font: 600 1.4rem/1 ui-serif, Georgia, serif;
  transition: background .22s var(--ease), color .22s var(--ease), transform .22s var(--ease);
}
.step:hover::before { background: var(--blue); color: #fff; transform: scale(1.07); }
.step h3 { margin-bottom: 7px; }
.step p { color: var(--muted); margin: 0; }

/* --------------------------------------------------------------- photo */
.photo { border-radius: var(--r); overflow: hidden; position: relative; background: var(--blue-soft); box-shadow: var(--shadow); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.photo:hover img { transform: scale(1.04); }
.photo.portrait { aspect-ratio: 4/5; }
.photo.wide { aspect-ratio: 16/9; }
.photo.square { aspect-ratio: 1/1; }

/* ---------------------------------------------------------- highlights */
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 19px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 100px;
  font-weight: 600; font-size: 1rem; color: var(--ink-soft);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.pill:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.pill svg { width: 17px; height: 17px; color: var(--orange); }

/* ----------------------------------------------------------- the FREE band */
/* The single most important message on the site: families pay nothing. */
.free-band {
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-dk) 60%, #1B3830 100%);
  color: #fff; position: relative; overflow: hidden;
}
.free-band::before {
  content: ""; position: absolute; inset: 0; opacity: .1;
  background: radial-gradient(circle at 18% 28%, #fff 0 2px, transparent 2px) 0 0/34px 34px;
}
.free-band .wrap { position: relative; }
.free-band h2 { color: #fff; }
.free-band p { color: rgba(255,255,255,.93); font-size: 1.16rem; }
.free-band .big { font: 600 clamp(3rem,8vw,5.4rem)/1 ui-serif, Georgia, serif; color: #D9CBB0; display: block; margin-bottom: 8px; }

/* --------------------------------------------------------- testimonials */
.quote {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 34px 30px; position: relative;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.quote:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.quote::before {
  content: "\201C"; position: absolute; top: 6px; left: 22px;
  font: 600 5rem/1 ui-serif, Georgia, serif; color: var(--blue-soft);
}
.quote p { position: relative; font-size: 1.07rem; color: var(--ink-soft); }
.quote footer { display: flex; align-items: center; gap: 12px; margin-top: 18px; color: var(--muted); font-weight: 600; }
.quote footer .av {
  width: 42px; height: 42px; border-radius: 50%; background: var(--orange-soft);
  color: var(--orange); display: grid; place-items: center; font-weight: 700;
}
.stars { color: var(--orange); letter-spacing: 2px; margin-bottom: 12px; display: block; }

/* ----------------------------------------------------------------- FAQ */
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  margin-bottom: 12px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq details[open] { border-color: #CFDCD5; box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 21px 24px; font-weight: 600; font-size: 1.1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  font-family: ui-serif, Georgia, serif;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue); }
.faq summary::after {
  content: ""; width: 12px; height: 12px; flex: 0 0 auto;
  border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue);
  transform: rotate(45deg) translate(-3px,-3px); transition: transform .24s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px,-3px); }
.faq details p { padding: 0 24px 22px; margin: 0; color: var(--muted); }

/* ---------------------------------------------------------------- form */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 36px 34px; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 26px 22px; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 1rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  padding: 15px 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font: inherit; font-size: 1.05rem; background: var(--bg); color: var(--ink);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #C8D3DC; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(47,93,79,.14);
}
.field .hint { font-size: .92rem; color: var(--dim); }
.req { color: var(--orange); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { border-radius: var(--r-sm); padding: 16px 18px; margin-bottom: 20px; border: 1px solid; font-size: 1.02rem; }
.notice.ok { border-color: #9ED5AE; background: #EDF8F0; color: #1D5B32; }
.notice.err { border-color: #F0B3A0; background: #FDF0EC; color: #8A3113; }
.notice.info { border-color: #BFDFF2; background: var(--blue-soft); color: var(--blue-dk); }

/* ------------------------------------------------------------ CTA band */
.cta {
  background: linear-gradient(120deg, #1F2D28 0%, #17221E 100%);
  color: #fff; text-align: center; position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0; opacity: .14;
  background: radial-gradient(circle at 80% 20%, var(--orange) 0%, transparent 46%),
              radial-gradient(circle at 10% 80%, var(--blue) 0%, transparent 44%);
}
.cta .wrap { position: relative; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.9); max-width: 58ch; margin: 0 auto 28px; font-size: 1.15rem; }

/* ------------------------------------------------------------- footer */
.site-footer { background: #17221E; color: rgba(255,255,255,.76); padding: 62px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.1fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1.04rem; margin: 0 0 15px; font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 11px; }
.site-footer a { color: rgba(255,255,255,.76); text-decoration: none; transition: color .18s var(--ease), padding-left .18s var(--ease); }
.site-footer a:hover { color: #fff; padding-left: 4px; }
.site-footer .brand img { height: 52px; filter: brightness(0) invert(1); opacity: .95; }
.legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .92rem; color: rgba(255,255,255,.55); }

/* -------------------------------------------------------------- utility */
.skip { position: absolute; left: -9999px; background: var(--orange); color: #fff; padding: 12px 20px; border-radius: var(--r-sm); z-index: 100; font-weight: 600; }
.skip:focus { left: 16px; top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.areas-list { columns: 3; column-gap: 32px; padding-left: 20px; }
@media (max-width: 760px) { .areas-list { columns: 2; } }
.areas-list li { margin-bottom: 8px; break-inside: avoid; color: var(--ink-soft); }

table.cmp { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
table.cmp th, table.cmp td { padding: 17px 20px; text-align: left; border-bottom: 1px solid var(--line-soft); }
table.cmp thead th { background: var(--blue); color: #fff; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 1rem; }
table.cmp tbody tr:hover { background: var(--blue-soft); }
table.cmp tbody tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

/* Visual twin of `.card h3` for labels that are not section headings - the
   phone and email cards on /contact. Keeping them out of the heading outline
   matters for both accessibility (they are link labels, not sections) and for
   the extractability audit, which expects a real heading to be followed by a
   substantive paragraph. */
.card-title {
  font-family: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 600; line-height: 1.16; letter-spacing: -.01em;
  color: var(--ink); font-size: 1.32rem; margin: 0 0 10px;
}
