/* Wisteria Moor Assisted Living — centered minimalist; espresso, caramel, cream */
:root {
  --cream: #faf5ec;
  --cream-deep: #f2e8d8;
  --paper: #fffdf9;
  --espresso: #3b2a20;
  --espresso-soft: #5f4b3e;
  --caramel: #c08a4f;
  --caramel-light: #e9d3b5;
  --caramel-ink: #8a5823;
  --text: #2f231b;
  --text-mild: #5f5047;
  --rule: #e4d7c4;
  --alert: #a3281f;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.7 var(--sans); overflow-x: hidden; }
h1, h2 { font-family: var(--serif); font-weight: 400; color: var(--espresso); line-height: 1.12; margin: 0 0 .5em; }
h3 { font-weight: 700; font-size: 1.08rem; color: var(--espresso); margin: 0 0 .4em; line-height: 1.35; }
p { margin: 0 0 1em; }
a { color: var(--caramel-ink); }
:focus-visible { outline: 2px solid var(--espresso); outline-offset: 4px; box-shadow: 0 0 0 5px var(--caramel-light); border-radius: 3px; }
.moor-skip { position: absolute; left: 50%; transform: translateX(-50%); top: -60px; background: var(--espresso); color: #fff; padding: .6rem 1.1rem; border-radius: 0 0 8px 8px; z-index: 300; }
.moor-skip:focus { top: 0; }

/* Scroll path: a thin line that fills as you move down the page */
.moor-trail { position: fixed; left: 14px; top: 90px; bottom: 30px; width: 2px; background: var(--rule); z-index: 20; display: none; }
.moor-trail__fill { display: block; width: 100%; height: 100%; background: var(--caramel); transform-origin: top; transform: scaleY(0); }
@media (min-width: 760px) { .moor-trail { display: block; left: 28px; } }

/* ---------- Sticky bar ---------- */
.moor-top { position: sticky; top: 0; z-index: 50; background: rgba(255, 253, 249, .95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule); }
.moor-top__row { width: min(100% - 2rem, 1200px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; min-height: 66px; position: relative; }
.moor-brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--espresso); }
.moor-brand svg { width: 36px; height: 36px; flex: none; }
.moor-brand span { font-family: var(--serif); font-size: 1.3rem; line-height: 1.05; display: flex; flex-direction: column; }
.moor-brand em { font: 500 .68rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--text-mild); margin-top: .2rem; }
.moor-toggle { font: 600 .92rem var(--sans); color: var(--espresso); background: transparent; border: 1px solid var(--espresso); border-radius: 999px; padding: .5rem 1.1rem; cursor: pointer; }
.moor-toggle[aria-expanded="true"] { background: var(--espresso); color: #fff; }
.moor-nav { display: none; position: absolute; top: 100%; left: -1rem; right: -1rem; background: var(--paper); border-bottom: 1px solid var(--rule); padding: .5rem 1.25rem 1.25rem; flex-direction: column; text-align: center; }
.moor-nav.is-open { display: flex; }
.moor-nav a { padding: .7rem 0; color: var(--text); text-decoration: none; font-weight: 500; }
.moor-nav a:hover { color: var(--caramel-ink); }
.moor-nav .moor-nav__send { margin-top: .5rem; background: var(--espresso); color: #fff; border-radius: 999px; }
@media (min-width: 1040px) {
  .moor-toggle { display: none; }
  .moor-nav { display: flex; position: static; flex-direction: row; gap: 1.6rem; padding: 0; border: 0; background: none; align-items: center; }
  .moor-nav a { padding: .3rem 0; font-size: .95rem; }
  .moor-nav .moor-nav__send { margin: 0; padding: .5rem 1.15rem; }
  .moor-nav .moor-nav__send:hover { background: var(--espresso-soft); color: #fff; }
}

/* ---------- Hero: type only ---------- */
.moor-hero { text-align: center; padding: 6rem 1.25rem 5.5rem; width: min(100%, 1100px); margin-inline: auto; }
.moor-hero__over { font-size: .82rem; letter-spacing: .24em; text-transform: uppercase; color: var(--caramel-ink); font-weight: 600; margin-bottom: 1.6rem; }
.moor-hero h1 { font-size: clamp(2.6rem, 9vw, 6rem); line-height: 1.02; letter-spacing: -.01em; margin-bottom: 2rem; }
.moor-hero h1 span { font-style: italic; color: var(--caramel-ink); }
.moor-hero__under { font-size: 1.15rem; color: var(--text-mild); max-width: 58ch; margin: 0 auto 2.2rem; }
@media (min-width: 900px) { .moor-hero { padding: 9rem 2rem 8rem; } }

.moor-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .85rem 1.9rem; border-radius: 999px; background: var(--espresso); color: #fff; font: 600 1rem var(--sans); text-decoration: none; border: 0; cursor: pointer; }
.moor-cta:hover { background: var(--espresso-soft); }
.moor-cta--full { width: 100%; margin-top: .5rem; }

/* ---------- Sections joined by a path ---------- */
.moor-sec { position: relative; padding: 6rem 1.25rem 5rem; text-align: center; }
.moor-sec::before { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 3.25rem; background: repeating-linear-gradient(var(--caramel) 0 6px, transparent 6px 12px); transform: translateX(-50%); }
.moor-node { position: absolute; top: 3.25rem; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--caramel); transform: translate(-50%, -2px); }
.moor-node--bloom { width: 22px; height: 22px; background: var(--caramel); box-shadow: 0 0 0 6px var(--caramel-light); }
.moor-sec--soft { background: var(--cream); }
.moor-sec h2 { font-size: clamp(2rem, 5.4vw, 3.2rem); max-width: 20ch; margin-inline: auto; }
.moor-lead { max-width: 56ch; margin: 0 auto 3rem; color: var(--text-mild); font-size: 1.1rem; }
@media (min-width: 900px) { .moor-sec { padding: 8rem 2rem 7rem; } .moor-sec::before { height: 4.5rem; } .moor-node { top: 4.5rem; } }

/* Family guides */
.moor-guides { display: grid; gap: 1.25rem; max-width: 1080px; margin-inline: auto; text-align: left; }
.moor-guides article { border: 1px solid var(--rule); border-radius: 18px; padding: 1.75rem 1.5rem; background: var(--paper); }
.moor-guides ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.moor-guides li { padding-left: 1.3rem; position: relative; color: var(--text-mild); }
.moor-guides li::before { content: ""; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--caramel); }
@media (min-width: 900px) { .moor-guides { grid-template-columns: repeat(3, 1fr); } }

/* Funding terms */
.moor-terms { display: grid; gap: 1rem; max-width: 960px; margin-inline: auto; text-align: left; }
.moor-term { background: var(--paper); border-radius: 18px; padding: 1.6rem 1.5rem; }
.moor-term p { margin: 0; color: var(--text-mild); }
.moor-term--wide { background: var(--espresso); }
.moor-term--wide h3 { color: var(--caramel-light); }
.moor-term--wide p { color: #efe4d6; }
@media (min-width: 760px) { .moor-terms { grid-template-columns: 1fr 1fr; } .moor-term--wide { grid-column: 1 / -1; text-align: center; } }

/* Houses */
.moor-quiet { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; display: grid; gap: 0; }
.moor-quiet li { padding: 1.4rem 0; border-top: 1px solid var(--rule); display: grid; gap: .2rem; }
.moor-quiet li:last-child { border-bottom: 1px solid var(--rule); }
.moor-quiet strong { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--espresso); }
.moor-quiet span { color: var(--text-mild); }

/* Alternating rows */
.moor-rows { max-width: 940px; margin-inline: auto; display: grid; gap: 2.5rem; text-align: left; }
.moor-row { display: grid; gap: 1.25rem; align-items: center; }
.moor-row svg { width: 100%; max-width: 260px; height: auto; display: block; margin-inline: auto; }
.moor-row p { margin: 0; color: var(--text-mild); }
.moor-row h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
@media (min-width: 720px) {
  .moor-row { grid-template-columns: 260px 1fr; gap: 3rem; }
  .moor-row:nth-child(even) { grid-template-columns: 1fr 260px; }
  .moor-row:nth-child(even) svg { order: 2; }
}

/* Daily life */
.moor-day { list-style: none; margin: 0 auto; padding: 0; max-width: 720px; display: grid; gap: 2rem; }
.moor-day span { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--caramel-ink); line-height: 1.1; margin-bottom: .4rem; }
.moor-day p { margin: 0 auto; max-width: 48ch; color: var(--text-mild); }

/* Fit reference */
.moor-ref { display: grid; gap: 1rem; max-width: 1000px; margin-inline: auto; }
.moor-ref > div { background: var(--paper); border-radius: 18px; padding: 1.75rem 1.5rem; border-top: 3px solid var(--caramel); }
.moor-ref p { margin: 0; color: var(--text-mild); }
@media (min-width: 860px) { .moor-ref { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Referral ---------- */
.moor-refer { display: grid; gap: 1.5rem; max-width: 1060px; margin-inline: auto; text-align: left; }
.moor-list { background: var(--cream); border-radius: 22px; padding: 1.75rem 1.5rem; }
.moor-list ol { list-style: none; counter-reset: k; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .6rem; }
.moor-list li { counter-increment: k; position: relative; padding-left: 2.4rem; min-height: 1.7rem; }
.moor-list li::before { content: ""; position: absolute; left: 0; top: .1rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 2px solid var(--caramel); }
.moor-list li::after { content: ""; position: absolute; left: .5rem; top: .45rem; width: .38rem; height: .65rem; border-right: 2px solid var(--caramel-ink); border-bottom: 2px solid var(--caramel-ink); transform: rotate(45deg); }
.moor-list p { margin: 0; font-size: .96rem; color: var(--text-mild); }
.moor-formbox { border: 1px solid var(--rule); border-radius: 22px; padding: 1.75rem 1.25rem; background: var(--paper); }
.moor-oops { color: var(--alert); font-weight: 600; margin-bottom: 1rem; }
.moor-oops:empty { display: none; }
.moor-duo { display: grid; gap: 0 1rem; }
@media (min-width: 600px) { .moor-duo { grid-template-columns: 1fr 1fr; } .moor-formbox { padding: 2.25rem; } }
.moor-fld { margin-bottom: 1rem; }
.moor-fld label { display: flex; justify-content: space-between; gap: .5rem; font-weight: 600; font-size: .93rem; margin-bottom: .3rem; }
.moor-star { font-weight: 400; font-size: .8rem; color: var(--text-mild); }
.moor-fld input, .moor-fld select, .moor-fld textarea { width: 100%; font: inherit; font-size: 1rem; padding: .7rem .85rem; border: 1px solid #a28f7e; border-radius: 12px; background: #fff; color: var(--text); }
.moor-fld input:focus, .moor-fld select:focus, .moor-fld textarea:focus { outline: 3px solid var(--caramel-light); border-color: var(--espresso); }
.moor-formbox [aria-invalid="true"] { border: 2px solid var(--alert); }
.moor-msg { margin: .3rem 0 0; color: var(--alert); font-size: .88rem; font-weight: 600; }
.moor-msg:empty { display: none; }
.moor-consent { display: grid; grid-template-columns: auto 1fr; gap: .3rem .75rem; margin: .5rem 0 1rem; font-size: .95rem; }
.moor-consent input { width: 20px; height: 20px; margin-top: .25rem; accent-color: var(--espresso); }
.moor-consent .moor-msg { grid-column: 2; }
.moor-thanks { text-align: center; padding: 1.5rem .5rem; }
.moor-thanks svg { width: 130px; margin: 0 auto 1rem; display: block; }
.moor-thanks h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; }
.moor-thanks p { color: var(--text-mild); margin: 0; }
@media (min-width: 900px) { .moor-refer { grid-template-columns: .75fr 1.25fr; gap: 2.5rem; align-items: start; } .moor-list { position: sticky; top: 96px; } }

/* ---------- Footer ---------- */
.moor-foot { text-align: center; padding: 3.5rem 1.25rem 2.5rem; background: var(--espresso); color: #e8dccc; }
.moor-foot__name { font-family: var(--serif); font-size: 1.6rem; color: #fff; margin: 0; }
.moor-foot__tag { color: var(--caramel-light); margin: .2rem 0 1.5rem; }
.moor-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.4rem; margin-bottom: 1.5rem; }
.moor-foot nav a { color: #fff; text-decoration: none; font-size: .93rem; }
.moor-foot nav a:hover { text-decoration: underline; }
.moor-foot :focus-visible { outline-color: var(--caramel-light); box-shadow: none; }
.moor-foot__copy { font-size: .85rem; margin: 0; color: #cdbfae; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
