/* Mission Care homepage: hero (house window slideshow with louvre transitions), care cards, why, a day at
   Mission Care (pinned), care guide teaser, offer marquee. Plan: _work/design-plan.md */

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; padding-top: var(--head-h); background: #fff; overflow: clip; }
.hero__petals { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 4vw, 72px); min-height: calc(100svh - var(--head-h)); align-items: center; }
.hero__copy { position: relative; z-index: 2; padding: 4vh 0 8vh; }
.hero__title { font-size: clamp(3rem, 5.5vw, 6.1rem); line-height: 1; letter-spacing: -.02em; margin: 0 0 .42em; }
.hero__mask { display: block; overflow-x: visible; overflow-y: clip; padding: .12em 0 .3em; margin: -.12em 0 -.3em; }
.hero__ln { display: block; }
.hero__title em { color: var(--pink-ink); }
.hero__lede { font-size: clamp(1.125rem, 1.35vw, 1.3rem); line-height: 1.55; color: var(--text); margin: 0 0 30px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero__enquire { font-size: 1.02rem; }

.hero__stage { position: relative; align-self: stretch; z-index: 0; margin-right: calc(-1 * max(var(--gut), (100vw - var(--wrap)) / 2)); }
.hero__window { position: absolute; inset: clamp(26px, 4.5vh, 50px) 0 0 0; clip-path: var(--gable); overflow: hidden; background: var(--mist); }
.hero__slides, .hero__slide { position: absolute; inset: 0; margin: 0; }
.hero__slide { opacity: 0; visibility: hidden; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 60%; will-change: transform; }
.hero__louvres { position: absolute; inset: 0; perspective: 1600px; pointer-events: none; z-index: 2; }
.lv { position: absolute; left: 0; right: 0; background-repeat: no-repeat; transform-origin: 50% 0; backface-visibility: hidden; will-change: transform; }
.lv::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(12, 24, 51, .35)); opacity: var(--shade, 0); }
.hero__shade { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(180deg, rgba(12, 24, 51, 0) 62%, rgba(12, 24, 51, .22)); }
.hero__house { position: absolute; left: -18px; top: calc(clamp(26px, 4.5vh, 50px) - 18px); width: calc(100% + 36px); height: calc(100% - clamp(26px, 4.5vh, 50px) + 36px); color: var(--pink); z-index: 4; pointer-events: none; }

.hero__ctrl { position: absolute; left: 0; bottom: 0; z-index: 5; background: #fff; padding: 18px 28px 20px 0; min-width: min(430px, 70%); }
.hero__cap { margin: 0 0 10px; font-family: var(--serif); font-size: clamp(1.2rem, 1.5vw, 1.5rem); line-height: 1.2; color: var(--navy); overflow: clip; padding-bottom: .15em; }
.hero__cap-txt { display: block; }
.hero__nav { display: flex; align-items: center; gap: 14px; }
.hero__count { font-weight: 700; color: var(--navy); font-size: 1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero__now { color: var(--pink-ink); }
.hero__bar { position: relative; flex: 1; height: 2px; background: var(--line); overflow: hidden; min-width: 80px; }
.hero__fill { position: absolute; inset: 0; background: var(--pink); transform: scaleX(0); transform-origin: left; }
.hero__btn { width: 48px; height: 48px; display: inline-grid; place-items: center; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); border-radius: var(--btn-r); cursor: pointer; transition: background-color .3s, color .3s; }
.hero__btn svg { width: 20px; height: 12px; }
.hero__btn:hover { background: var(--navy); color: #fff; }
html.js:not(.rm):not(.no-motion) .hero__ln { transform: translateY(140%); }
html.js:not(.rm):not(.no-motion) .hero__lede,
html.js:not(.rm):not(.no-motion) .hero__ctas,
html.js:not(.rm):not(.no-motion) .hero__enquire,
html.js:not(.rm):not(.no-motion) .hero__ctrl { opacity: 0; }
html.js:not(.rm):not(.no-motion) .hero__window { clip-path: polygon(48% 100%, 50% 98%, 52% 100%, 52% 100%, 48% 100%); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 0; align-items: start; min-height: 0; }
  .hero__stage { order: -1; height: 46svh; margin: 0 calc(-1 * var(--gut)); }
  .hero__window { inset: 18px 0 0 0; clip-path: polygon(0 12%, 50% 0, 100% 12%, 100% 100%, 0 100%); }
  .hero__house { display: none; }
  .hero__ctrl { min-width: 0; left: var(--gut); right: auto; padding: 10px 14px 0 12px; max-width: calc(100% - 2 * var(--gut)); }
  .hero__cap { font-size: 1.05rem; margin-bottom: 6px; }
  .hero__btn { width: 44px; height: 44px; }
  .hero__copy { padding: 22px 0 28px; }
  .hero__title { font-size: clamp(2.5rem, 11vw, 3.4rem); margin-bottom: .3em; }
  .hero__lede { margin-bottom: 20px; }
  .hero__ctas .btn { flex: 1 1 auto; padding: 0 18px; }
  .hero__call .num { display: none; }
}
@media (max-width: 900px) and (max-height: 760px) {
  .hero__stage { height: 40svh; }
}

/* ---------- Care cards ---------- */
.care__head { margin-bottom: clamp(36px, 4vw, 56px); }
.care__head h2 { margin-bottom: .4em; }
.care__head .lede { margin: 0; }
.care__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 28px); }
.ccard { position: relative; display: block; color: var(--navy); text-decoration: none; transform-style: preserve-3d; }
.ccard__img { position: relative; display: block; aspect-ratio: 4 / 4.6; clip-path: var(--gable); overflow: hidden; background: var(--mist); }
.ccard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.ccard:hover .ccard__img img, .ccard:focus-visible .ccard__img img { transform: scale(1.07); }
.ccard__frame { position: relative; display: block; }
.ccard__outline { position: absolute; left: -9px; top: -9px; width: calc(100% + 18px); height: calc(100% + 18px); color: var(--pink); pointer-events: none; overflow: visible; }
.ccard__outline path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease); }
.ccard:hover .ccard__outline path, .ccard:focus-visible .ccard__outline path { stroke-dashoffset: 0; }
.ccard__body { display: block; padding: 20px 4px 0; }
.ccard__name { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 1.9vw, 1.95rem); line-height: 1.1; margin-bottom: 8px; }
.ccard__line { display: block; color: var(--muted); font-size: 1.02rem; line-height: 1.5; margin-bottom: 12px; }
.ccard__go { display: inline-flex; align-items: center; gap: 8px; color: var(--pink-ink); font-weight: 650; font-size: 1rem; }
.ccard__go .i-arrow { width: 20px; height: 12px; transition: transform .4s var(--ease); }
.ccard:hover .ccard__go .i-arrow { transform: translateX(5px); }
.care__more { margin: clamp(30px, 3.5vw, 48px) 0 0; font-size: 1.15rem; color: var(--muted); }
.care__more a { color: var(--pink-ink); font-weight: 650; }
@media (max-width: 1100px) { .care__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 560px) {
  .care__grid { grid-template-columns: 1fr; }
  .ccard__img { aspect-ratio: 4 / 3.4; }
}

/* ---------- Why families choose us ---------- */
.why { overflow: clip; }
.why .petal-canvas { opacity: .6; }
.why__grid { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 100px); align-items: center; }
.why__media { position: relative; height: min(70vh, 640px); margin-right: 8%; }
.why__photo { position: absolute; inset: 0; overflow: hidden; }
.why__photo img { width: 100%; height: 100%; object-fit: cover; }
.why__house { position: absolute; left: -16px; top: -16px; width: calc(100% + 32px); height: calc(100% + 32px); color: var(--leaf); z-index: 2; pointer-events: none; }
.why__inset { position: absolute; right: -14%; bottom: -6%; width: 42%; aspect-ratio: 4 / 5; border: 8px solid var(--mist); overflow: hidden; z-index: 3; box-shadow: 0 30px 60px -30px rgba(20, 36, 74, .5); }
.why__inset img { width: 100%; height: 100%; object-fit: cover; }
.why__copy h2 { margin-bottom: .5em; }
.why__fill { font-family: var(--serif); font-size: clamp(1.45rem, 2vw, 2.05rem); line-height: 1.32; color: var(--navy); margin: 0 0 clamp(28px, 3vw, 44px); }
.why__fill .w { color: var(--navy); }
html.js:not(.rm):not(.no-motion) .why__fill .w { color: #A9B6A6; }
.why__vals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 32px); }
.why__vals li { border-top: 2px solid var(--leaf); padding-top: 18px; }
.why__ico { width: 44px; height: 44px; color: var(--pink-ink); margin-bottom: 12px; }
.why__vals h3 { font-size: 1.35rem; margin-bottom: 6px; }
.why__vals p { font-size: 1rem; color: var(--muted); margin: 0; }
@media (max-width: 900px) {
  .why__grid { grid-template-columns: 1fr; }
  .why__media { height: 52vh; margin: 0 18% 40px 0; }
  .why__vals { grid-template-columns: 1fr; }
}

/* ---------- A day at Mission Care (pinned, horizontal) ---------- */
.day { position: relative; background: var(--navy-deep); color: #fff; }
.day__pin { position: relative; height: 100svh; min-height: 640px; display: flex; flex-direction: column; padding-top: 84px; overflow: clip; }
.day__sky { position: absolute; left: 0; right: 0; top: 0; height: 45%; pointer-events: none; color: #fff; overflow: clip; }
.day__cloud { position: absolute; left: 0; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .55); filter: blur(10px); }
.day__cloud--a { top: 26%; width: 220px; }
.day__cloud--b { top: 44%; width: 320px; height: 44px; background: rgba(255, 255, 255, .4); }
.day__cloud--c { top: 16%; width: 160px; height: 26px; }
.day__sky-fill { position: absolute; inset: 0; background: linear-gradient(180deg, #F6A9C9 0%, #FCD9B8 55%, var(--navy-deep) 100%); }
.day__arc { z-index: 1; position: absolute; left: 4%; right: 4%; top: 22%; width: 92%; height: 70%; color: rgba(255, 255, 255, .55); }
.day__sun, .day__moon { position: absolute; z-index: 3; left: 0; top: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; }
.day__sun { background: radial-gradient(circle, #FFF6D8 0 38%, #FFC861 40% 62%, rgba(255, 200, 97, 0) 64%); box-shadow: 0 0 80px 30px rgba(255, 200, 97, .35); }
.day__moon { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: radial-gradient(circle at 36% 36%, #FFFDF2 0 50%, #E9E2C8 70%); box-shadow: 0 0 40px 10px rgba(255, 253, 242, .25); opacity: 0; }
.day__house { z-index: 2; position: absolute; right: 8%; bottom: -1px; width: clamp(180px, 18vw, 280px); height: auto; color: var(--navy-deep); }
.day__win rect { fill: var(--navy-soft); transition: fill .4s; }
.day__head { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-top: clamp(14px, 3vh, 34px); }
.day__head h2 { color: var(--navy); }
.day__now { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 2.6vw, 2.6rem); color: var(--navy); overflow: clip; padding-bottom: .12em; white-space: nowrap; }
.day__now-txt { display: block; }
.day__track { position: relative; z-index: 2; display: flex; gap: clamp(18px, 2vw, 30px); width: max-content; padding: 0 var(--gut); margin: auto 0 clamp(26px, 6vh, 64px); will-change: transform; }
.dpanel { width: clamp(290px, 27vw, 500px); flex: none; }
.dpanel__img { aspect-ratio: 4 / 3; overflow: hidden; clip-path: var(--gable); margin-bottom: 16px; background: var(--navy-soft); max-height: 36vh; }
.dpanel__img img { width: 100%; height: 100%; object-fit: cover; }
.dpanel__when { margin: 0 0 4px; color: var(--gold); font-weight: 700; font-size: 1rem; }
.dpanel__h { color: #fff; font-size: clamp(1.45rem, 1.8vw, 1.9rem); margin-bottom: 8px; }
.dpanel__line { margin: 0; color: rgba(255, 255, 255, .84); font-size: 1.02rem; line-height: 1.5; }
.dpanel--end { align-self: flex-end; border: 1.5px solid rgba(201, 162, 79, .6); padding: clamp(22px, 2.4vw, 36px); background: rgba(255, 255, 255, .04); }
.dpanel--end .dpanel__line { margin-bottom: 22px; }
.day__progress { position: absolute; left: 0; right: 0; bottom: clamp(12px, 2.6vh, 28px); z-index: 2; height: 2px; }
.day__progress::before { content: ""; position: absolute; left: var(--gut); right: var(--gut); top: 0; height: 2px; background: rgba(255, 255, 255, .16); }
.day__progress-fill { position: absolute; left: var(--gut); right: var(--gut); top: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; }

/* Reduced motion and no JS: the panels stack in a grid, the sky stays at morning */
html.no-js .day__pin, html.rm .day__pin, html.no-motion .day__pin { height: auto; min-height: 0; padding-bottom: 60px; }
html.no-js .day__track, html.rm .day__track, html.no-motion .day__track { width: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); margin-top: 40px; }
html.no-js .dpanel, html.rm .dpanel, html.no-motion .dpanel { width: auto; }
html.no-js .day__sky, html.rm .day__sky, html.no-motion .day__sky { height: 360px; }
html.no-js .day__progress, html.rm .day__progress, html.no-motion .day__progress { display: none; }
@media (max-width: 700px) {
  .dpanel { width: 80vw; }
  .dpanel__img { max-height: 27vh; margin-bottom: 12px; }
  .dpanel__h { font-size: 1.35rem; }
  .dpanel__line { font-size: 1rem; line-height: 1.45; }
  .day__track { margin-bottom: 44px; }
  .day__head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .day__sky { height: 40%; }
  .day__house { right: 4%; width: 150px; }
}

/* ---------- Care guide teaser ---------- */
.guide { overflow: clip; }
.guide .petal-canvas { opacity: .5; }
.guide__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 100px); align-items: center; }
.guide__copy h2 { margin-bottom: .45em; }
.guide__copy .lede { margin-bottom: 26px; }
.guide__card { position: relative; padding-bottom: 40px; }
.guide__photo { height: min(46vh, 430px); overflow: hidden; }
.guide__photo img { width: 100%; height: 100%; object-fit: cover; }
.guide__q { position: relative; margin: -110px 0 0 clamp(24px, 8%, 70px); background: #fff; padding: clamp(22px, 2.4vw, 34px); box-shadow: 0 30px 70px -30px rgba(20, 36, 74, .45); border-top: 3px solid var(--pink); }
.guide__step { margin: 0 0 6px; color: var(--pink-ink); font-weight: 700; font-size: .98rem; }
.guide__ask { font-family: var(--serif); font-size: clamp(1.35rem, 1.8vw, 1.75rem); line-height: 1.25; color: var(--navy); margin: 0 0 18px; }
.guide__opts { display: flex; flex-wrap: wrap; gap: 10px; }
.guide__opt { display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; border: 1.5px solid var(--navy); border-radius: var(--btn-r); color: var(--navy); font-weight: 650; text-decoration: none; transition: background-color .3s, color .3s, transform .3s var(--ease); }
.guide__opt:hover, .guide__opt:focus-visible { background: var(--navy); color: #fff; transform: translateY(-3px); }
@media (max-width: 900px) {
  .guide__grid { grid-template-columns: 1fr; }
  .guide__q { margin: -70px 0 0 18px; }
}

/* ---------- Offer marquee ---------- */
.offer { position: relative; background: var(--navy); padding: clamp(36px, 4vw, 56px) 0; overflow: clip; }
.offer__bg { position: absolute; left: 0; top: -20%; width: 100%; height: 140%; max-width: none; object-fit: cover; opacity: .2; pointer-events: none; }
.offer__row { position: relative; }
html.no-js .offer__row, html.rm .offer__row, html.no-motion .offer__row { white-space: normal; text-align: center; }
html.no-js .offer__track, html.rm .offer__track, html.no-motion .offer__track { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 6px; padding: 0 var(--gut); }
html.no-js .offer__item--dup, html.rm .offer__item--dup, html.no-motion .offer__item--dup { display: none; }
html.no-js .offer__row--b, html.rm .offer__row--b, html.no-motion .offer__row--b { display: none; }
.offer__row { overflow: clip; white-space: nowrap; }
.offer__row + .offer__row { margin-top: 10px; }
.offer__track { display: inline-flex; will-change: transform; }
.offer__item { display: inline-flex; align-items: center; font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.9rem); line-height: 1.3; color: #fff; padding-right: .9em; }
.offer__item::after { content: ""; width: .32em; height: .32em; margin-left: .9em; background: var(--leaf); transform: rotate(45deg); }
.offer__row--b .offer__item { font-style: italic; color: var(--gold); }
.offer__row--b .offer__item::after { background: var(--pink); }
