/* Flowers Home Care Agency: Senior & Adult Home Care. This page's own sections.
   Loads after styles.css and site.css. The page has no single flower: it gathers the service
   flowers (rose and iris in the hero, peony in the welcome and where bands).

   1. Hero              rose and iris stems beside the arch
   2. Welcome           heading and words side by side, the vision as a pull line, a peony bud
   3. Care that fits    the signature: six situations, one arch that changes with them
   4. Seven services    a florist's index: flower head, linked name, line, animated icon
   5. Why Flowers       six reasons as icon rows on aubergine
   6. Steps and paying  the shared four steps, then the payment cards in the same band
   7. Where we care     counties, towns, the two offices, a home in an arch

   Motion in this file moves transform, opacity and clip-path only. */

/* ==========================================================================
   1. Hero
   ========================================================================== */
.sa-hero .phero__art .stem { left: -25%; height: 82%; }
.sa-hero .phero__art .stem--iris { left: auto; right: -19%; bottom: -6%; height: 66%; transform: rotate(9deg); z-index: 2; }
.sa-hero .arch > img { object-position: 46% 40%; }
.sa-hero .chips { max-width: 46rem; }
@media (min-width: 900px) and (max-height: 760px) {
  .sa-hero h1 { font-size: clamp(2.25rem, 3.6vw, 3.25rem); }
  .sa-hero .lead { margin-top: 1rem; font-size: 1.125rem; }
  .sa-hero .actions { margin-top: 1.35rem; }
}
@media (max-width: 899px) {
  .sa-hero .phero__art .stem { left: -16%; }
  .sa-hero .phero__art .stem--iris { right: -13%; }
}

/* ==========================================================================
   2. Welcome
   ========================================================================== */
.sa-wel { z-index: 2; }
.sa-wel__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6.5rem); align-items: end; }
.sa-wel__head h2 { max-width: 13em; }
.sa-wel__text p { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink); }
.sa-wel__text p + p { margin-top: 1.25rem; }
.sa-wel__pull { max-width: 50rem; margin-top: clamp(3.5rem, 7vw, 6.5rem); }
.sa-wel__bud { position: absolute; right: clamp(.5rem, 3vw, 3.5rem); bottom: clamp(2rem, 4vw, 4rem); width: clamp(7rem, 11vw, 11rem); height: auto; rotate: 16deg; filter: drop-shadow(0 18px 22px rgba(78, 26, 88, .22)); pointer-events: none; }
@media (max-width: 899px) {
  .sa-wel__grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .sa-wel__bud { top: 1.25rem; bottom: auto; right: -1.75rem; width: 6.5rem; }
  .sa-wel__head { padding-right: 3.5rem; }
}

/* ==========================================================================
   3. Care that fits (signature)
   Base (phones, and any width without JavaScript): each situation is a block with its own arch
   photograph, the flower heads of its services on the arch's foot, then the words and links.
   .is-staged (set by pages/senior.js from 900px): the photographs leave the blocks and one arch
   (.sa-stage) stays in view beside them; the situation in the middle of the window is the
   current one, its photograph wipes up in the arch and its service stems grow at the arch's foot.
   ========================================================================== */
.sa-fit .sec__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sa-fit__list { counter-reset: none; }
.sa-sit { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; padding: clamp(2rem, 4vw, 3rem) 0; border-top: 1px solid var(--line-gold); outline: none; }
.sa-sit:last-child { border-bottom: 1px solid var(--line-gold); }
.sa-sit__fig { position: relative; width: min(100%, 26rem); }
.sa-sit__fig .arch { aspect-ratio: 5 / 4.4; }
.sa-sit__heads { position: absolute; left: .5rem; bottom: -1.4rem; z-index: 2; display: flex; align-items: flex-end; }
.sa-sit__head { width: 4.25rem; height: auto; filter: drop-shadow(0 10px 12px rgba(18, 5, 22, .45)); }
.sa-sit__head + .sa-sit__head { margin-left: -.9rem; }
.sa-sit__head--tall { width: 2rem; }
.sa-sit__txt { position: relative; max-width: 38rem; }
.sa-sit__n { display: block; font-family: var(--sans); font-weight: 300; font-size: clamp(2.75rem, 4vw, 3.75rem); line-height: 1; letter-spacing: -.035em; font-variant-numeric: lining-nums; color: var(--gold-light); }
.sa-sit h3 { margin-top: .9rem; color: var(--cream); }
.sa-sit__txt > p:not(.sa-sit__label) { margin-top: 1rem; font-size: var(--fs-lead); line-height: 1.6; color: var(--on-dark); }
.sa-sit__label { margin-top: 1.6rem; font-size: .9375rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); }
.sa-sit__fits { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .85rem; }
.sa-fitlink { display: inline-flex; align-items: center; gap: .7rem; min-height: 3.5rem; padding: .35rem 1.15rem .35rem .45rem; border: 1px solid rgba(232, 181, 82, .55); border-radius: 999px; font-weight: 600; font-size: 1.0625rem; line-height: 1.25; color: var(--cream); text-decoration: none; background: rgba(28, 9, 32, .35); transition: transform 160ms var(--ease-out), border-color 220ms ease, background-color 220ms ease; }
.sa-fitlink:active { transform: scale(.97); }
.sa-fitlink__flower { flex: none; width: 2.75rem; height: 2.75rem; object-fit: contain; }
.sa-fitlink__flower.sa-fitlink__flower--tall { width: 1.4rem; margin-inline: .675rem; }
.sa-fitlink i { flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: rgba(232, 181, 82, .16); color: var(--gold-light); transition: transform 220ms var(--ease-out); }
.sa-fitlink i svg { width: 1rem; height: 1rem; }
@media (hover: hover) and (pointer: fine) {
  .sa-fitlink:hover { border-color: var(--gold-light); background: rgba(232, 181, 82, .1); }
  .sa-fitlink:hover i { transform: translateX(3px); }
}
.sa-fit__end { max-width: 44rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.sa-fit__end p { font-size: var(--fs-lead); color: var(--cream); }
.sa-stage { display: none; }

/* wide screens without the stage (no JavaScript): photograph beside the words */
@media (min-width: 900px) {
  .sa-sit { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
  .sa-sit__fig .arch { aspect-ratio: 5 / 5.6; }
}

/* the stage */
@media (min-width: 900px) {
  .sa-fit.is-staged .sa-fit__body { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5.5rem); }
  .sa-fit.is-staged .sa-sit { grid-template-columns: minmax(0, 1fr); min-height: max(30rem, calc(100vh - var(--header-h) - 10rem)); align-content: center; border-top: 0; padding: 2rem 0; }
  .sa-fit.is-staged .sa-sit:last-child { border-bottom: 0; }
  .sa-fit.is-staged .sa-sit__fig { display: none; }
  .sa-fit.is-staged .sa-sit__txt { opacity: .34; transition: opacity 520ms var(--ease-out); }
  .sa-fit.is-staged .sa-sit.is-on .sa-sit__txt { opacity: 1; }
  .sa-fit.is-staged .sa-sit__txt::before { content: ""; position: absolute; left: -1.75rem; top: .4rem; bottom: .4rem; width: 1px; background: var(--gold-light); transform: scaleY(0); transform-origin: 50% 0; transition: transform 700ms var(--ease-out); }
  .sa-fit.is-staged .sa-sit.is-on .sa-sit__txt::before { transform: scaleY(1); }

  .sa-fit.is-staged .sa-stage { display: block; position: relative; }
  .sa-stage__pin { --pin-h: calc(100vh - var(--header-h) - 3rem); position: sticky; top: calc(var(--header-h) + 1.5rem); height: var(--pin-h); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; align-items: center; }
  .sa-stage:not(.is-in) .sa-stage__foot { visibility: hidden; opacity: 0; transition: opacity 300ms ease, visibility 0s linear 300ms; }
  .sa-stage__foot { transition: opacity 600ms var(--ease-out) 500ms; grid-row: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(100%, 34rem); justify-self: center; margin-top: 1.25rem; padding-top: .6rem; border-top: 1px solid var(--line-gold); }
  .sa-rail { display: flex; flex: none; }
  .sa-rail__btn { position: relative; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; padding: 0; border: 0; border-radius: 50%; background: none; font-family: var(--sans); font-size: 1.0625rem; font-weight: 600; font-variant-numeric: lining-nums; color: rgba(251, 244, 234, .7); cursor: pointer; transition: color 200ms ease; -webkit-tap-highlight-color: transparent; }
  .sa-rail__btn::before { content: ""; position: absolute; inset: .4rem; border-radius: 50%; border: 1px solid rgba(232, 181, 82, .4); transition: transform 320ms var(--ease-out), background-color 220ms ease, border-color 220ms ease; }
  .sa-rail__btn span { position: relative; }
  .sa-rail__btn.is-on { color: #1D0A21; }
  .sa-rail__btn.is-on::before { background: var(--gold); border-color: var(--gold); transform: scale(1.06); }
  .sa-rail__btn:active::before { transform: scale(.92); }
  .sa-stage__frame { grid-row: 1; position: relative; justify-self: center; align-self: end; width: min(78%, 31rem, calc((var(--pin-h) - 7.5rem) * .8333)); aspect-ratio: 5 / 6; }
  .sa-stage__arch { position: absolute; inset: 0; aspect-ratio: auto; }
  .sa-stage__ph { opacity: 0; clip-path: inset(100% 0 0 0); scale: 1.08; }
  .sa-stage__ph.is-on { opacity: 1; clip-path: inset(0 0 0 0); scale: 1; transition: clip-path 900ms var(--ease-in-out), scale 1400ms var(--ease-out), opacity 0s; }
  .sa-stage__ph.is-off { opacity: 1; clip-path: inset(0 0 0 0); scale: 1; transition: opacity 0s linear 900ms; }
  .sa-stage__set { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
  .sa-stem { position: absolute; bottom: -5%; height: 74%; transform-origin: 50% 100%; }
  .sa-stem img { height: 100%; width: auto; max-width: none; filter: drop-shadow(0 18px 22px rgba(18, 5, 22, .4)); }
  .sa-stem .sway { height: 100%; }
  .sa-stem--1 { left: -24%; rotate: -8deg; }
  .sa-stem--2 { right: -20%; height: 62%; rotate: 9deg; }
  .sa-stem--3 { left: -36%; height: 52%; rotate: -17deg; z-index: -1; }
  .sa-stage__set--1 .sa-stem--1 { left: auto; right: -22%; height: 72%; rotate: 8deg; }
  .sa-stem { opacity: 0; clip-path: inset(100% -40% -10% -40%); translate: 0 6%; transition: opacity 260ms ease, clip-path 260ms ease, translate 260ms ease; }
  .sa-stage__set.is-on .sa-stem { opacity: 1; clip-path: inset(-30% -40% -10% -40%); translate: 0 0; transition: opacity 300ms ease calc(320ms + var(--k, 0) * 110ms), clip-path 1000ms var(--ease-out) calc(320ms + var(--k, 0) * 110ms), translate 1000ms var(--ease-out) calc(320ms + var(--k, 0) * 110ms); }
  .sa-stage__cap { min-width: 0; text-align: right; }
  .sa-stage__t { display: block; font-family: var(--serif); font-size: 1.1875rem; line-height: 1.2; color: var(--cream); text-wrap: balance; transition: opacity 240ms ease, translate 240ms var(--ease-out); }
  .sa-stage__cap.is-swap .sa-stage__t { opacity: 0; translate: 0 6px; transition: none; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .sa-fit.is-staged .sa-fit__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sa-stage__cap { display: none; }
  .sa-stage__foot { justify-content: center; }
}
@media (min-width: 900px) and (max-height: 700px) {
  .sa-stage__cap { display: none; }
  .sa-stage__foot { justify-content: center; margin-top: .75rem; }
}

/* phones */
@media (max-width: 899px) {
  .sa-sit { gap: 2.25rem; padding: 2rem 0 2.25rem; }
  .sa-sit__fig { width: 100%; }
  .sa-sit__fig .arch { aspect-ratio: 5 / 4.2; }
  .sa-sit__head { width: 3.75rem; }
  .sa-fitlink { width: 100%; }
  .sa-fitlink__t { flex: 1; }
}

/* ==========================================================================
   4. Seven services: a florist's index
   ========================================================================== */
.sa-svc__grid { display: grid; grid-template-columns: minmax(0, 4.5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6.5rem); align-items: start; }
.sa-svc__head { position: sticky; top: calc(var(--header-h) + 2rem); }
.sa-svc__head > p { margin-top: 1.5rem; font-size: var(--fs-lead); }
.sa-svc__head .sa-svc__more { font-size: var(--fs-body); color: var(--ink-soft); }
.sa-svc__list { border-top: 1px solid rgba(200, 144, 48, .7); }
.sa-row { position: relative; display: grid; grid-template-columns: 4.75rem minmax(0, 1fr) 4.5rem 2.75rem; align-items: center; column-gap: clamp(1rem, 2vw, 1.75rem); min-height: 7.25rem; padding: 1.1rem .25rem; border-bottom: 1px solid rgba(200, 144, 48, .7); }
.sa-row__fig { display: grid; place-items: end center; height: 5rem; }
.sa-row__flower { width: 4.5rem; height: auto; transform-origin: 50% 100%; transition: transform 600ms var(--ease-spring); }
.sa-row__flower.sa-row__flower--tall { width: 1.6rem; }
.sa-row__txt { display: flex; flex-direction: column; gap: .3rem; }
.sa-row__name { font-family: var(--serif); font-size: clamp(1.5rem, 2.1vw, 1.875rem); line-height: 1.15; color: var(--purple); text-decoration: none; }
.sa-row__name::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.sa-row__name:focus-visible { outline: none; }
.sa-row__name:focus-visible::after { outline: 3px solid var(--purple); outline-offset: 2px; border-radius: 6px; }
.sa-row__line { color: var(--ink-soft); }
.sa-row__ico .lottie { display: block; width: 4.5rem; height: 4.5rem; }
.sa-row__go { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid rgba(78, 26, 88, .35); color: var(--purple); transition: transform 260ms var(--ease-out), background-color 220ms ease, color 220ms ease; }
.sa-row__go svg { width: 1.15rem; height: 1.15rem; }
@media (hover: hover) and (pointer: fine) {
  .sa-row:hover .sa-row__flower { transform: rotate(-7deg) translateY(-4px); }
  .sa-row:hover .sa-row__go { transform: translateX(4px); background: var(--purple); color: var(--cream); }
  .sa-row:hover .sa-row__name { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: .2em; }
}
@media (max-width: 1023px) {
  .sa-svc__grid { grid-template-columns: minmax(0, 1fr); }
  .sa-svc__head { position: static; }
}
@media (max-width: 639px) {
  .sa-row { grid-template-columns: 3.75rem minmax(0, 1fr) 2.75rem; padding: 1rem 0; min-height: 6.5rem; }
  .sa-row__ico { display: none; }
  .sa-row__flower { width: 3.5rem; }
  .sa-row__fig { height: 4rem; }
}

/* ==========================================================================
   5. Why Flowers
   ========================================================================== */
.sa-why { z-index: 2; }
.sa-why__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3.5vw, 3.5rem); row-gap: clamp(2rem, 4vw, 3.25rem); }
.sa-why__item { padding-top: 1.5rem; border-top: 1px solid var(--line-gold); }
.sa-why__item .lottie { display: block; width: 4.75rem; height: 4.75rem; margin: 0 0 .9rem -.35rem; }
.sa-why__item p { color: var(--on-dark); }
.sa-why__item strong { display: block; margin-bottom: .45rem; font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2vw, 1.875rem); line-height: 1.15; color: var(--cream); }
.sa-why__close { max-width: 46rem; margin-top: clamp(3rem, 6vw, 5rem); font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.625rem); line-height: 1.2; color: var(--cream); text-wrap: balance; }
.sa-why__stem { right: clamp(-2rem, 2vw, 3rem); bottom: -3.5rem; height: clamp(15rem, 21vw, 20rem); rotate: -12deg; transform-origin: 50% 100%; z-index: 1; opacity: .95; }
@media (max-width: 1023px) {
  .sa-why__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .sa-why__list { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .sa-why__item { display: grid; grid-template-columns: 4rem minmax(0, 1fr); column-gap: 1rem; padding: 1.25rem 0; }
  .sa-why__item .lottie { width: 4rem; height: 4rem; margin: 0; }
  .sa-why__stem { height: 17rem; right: -4.5rem; bottom: -3rem; opacity: .7; }
  .sa-why__close { padding-right: 3rem; }
}

/* ==========================================================================
   6. Steps and paying
   ========================================================================== */
.sa-pay { margin-top: clamp(4.5rem, 9vw, 8rem); padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid rgba(200, 144, 48, .7); }
.sa-pay__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sa-pay__head p { font-size: var(--fs-lead); }
.sa-pay .pay__line { margin-top: clamp(4rem, 6vw, 5.5rem); }
.sa-pay .pay__line span { max-width: 42rem; }
@media (max-width: 899px) {
  .sa-pay__head { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   7. Where we care
   ========================================================================== */
.sa-where__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 7vw, 7.5rem); align-items: center; }
.sa-where__copy h2 { max-width: 14em; }
.sa-where__big { margin-top: 1.75rem; font-size: var(--fs-lead); line-height: 1.6; color: var(--cream); }
.sa-where__copy > p:not(.eyebrow):not(.sa-where__big) { margin-top: 1.1rem; }
.sa-where__offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.25rem; }
.sa-where__offices li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); column-gap: .9rem; align-items: start; padding-top: 1.1rem; border-top: 1px solid var(--line-gold); }
.sa-where__offices .lottie { width: 3.5rem; height: 3.5rem; margin-top: -.2rem; }
.sa-where__offices strong { display: block; color: var(--cream); }
.sa-where__call { color: var(--cream); }
.sa-where__art { justify-self: center; width: min(100%, 27rem); }
.sa-where__art .arch { aspect-ratio: 5 / 6; }
.sa-where__art .arch > img { object-position: 62% 50%; }
.sa-where__art .stem { left: -22%; bottom: -6%; height: 70%; rotate: -8deg; transform-origin: 50% 100%; z-index: 3; }
@media (max-width: 899px) {
  .sa-where__grid { grid-template-columns: minmax(0, 1fr); }
  .sa-where__art { width: min(78%, 21rem); order: -1; margin-bottom: .5rem; }
  .sa-where__art .stem { left: -16%; }
}
@media (max-width: 639px) {
  .sa-where__offices { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
}

/* ==========================================================================
   Reduced motion: every state change is instant; the stage still follows the reader
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .sa-stage__ph, .sa-stage__ph.is-on, .sa-stage__ph.is-off, .sa-stem, .sa-stage__set.is-on .sa-stem, .sa-stage__t,
  .sa-fit.is-staged .sa-sit__txt, .sa-fit.is-staged .sa-sit__txt::before, .sa-stage__foot, .sa-stage:not(.is-in) .sa-stage__foot, .sa-row__flower, .sa-row__go, .sa-fitlink, .sa-fitlink i, .sa-rail__btn::before { transition: none !important; }
  .sa-stage__ph { scale: 1; }
  .sa-stage:not(.is-in) .sa-stage__foot { visibility: visible; opacity: 1; }
}
