/* =====================================================================
   Mum and Me: "wake-up" layer. Loaded after styles.css + expansion.css.
   Same palette (plum, peach, pale peach) and Montserrat; adds motion and
   depth. The "Kinetic" hero (.hero-b) plus a livelier mobile action dock.
   All motion stops under prefers-reduced-motion (expansion.css already
   kills animations site-wide for those visitors).
   ===================================================================== */
:root {
  --plum-2: #4a1d6b;          /* lifted plum for hovers / layers */
  --peach-deep: #e8955a;      /* deeper peach for shading on the peach ground */
  --cream: #fff8f0;           /* glint highlight */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Shared: sparkle shape (four-point star) and sheen */
.sparkle { position: absolute; width: .3em; height: .3em; color: #fff; pointer-events: none; filter: drop-shadow(0 0 .06em rgba(255, 255, 255, .9)) drop-shadow(0 .04em .08em rgba(48, 12, 73, .35)); }
.sparkle svg { width: 100%; height: 100%; fill: currentColor; stroke: none; }
.sheen {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 0 16%, rgba(255,255,255,.16) 16% 26%, transparent 26% 31%, rgba(255,255,255,.1) 31% 33.5%, transparent 33.5% 60%, rgba(255,255,255,.08) 60% 69%, transparent 69%);
  background-size: 230% 100%; animation: mm-reflect 18s ease-in-out infinite alternate;
}
@keyframes mm-reflect { from { background-position: 0% 0; } to { background-position: 100% 0; } }
@keyframes mm-twinkle { 0%, 100% { transform: scale(.2) rotate(0); opacity: 0; } 45%, 55% { transform: scale(1) rotate(45deg); opacity: 1; } }
@keyframes mm-glint { 0% { background-position: 100% 0; } 24%, 100% { background-position: 0% 0; } }
@keyframes mm-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero .hero-inner { position: relative; z-index: 1; }
.hero .quote-card { box-shadow: 0 30px 60px -32px rgba(48, 12, 73, .55); animation: mm-rise .7s .15s var(--ease) both; }

/* =====================================================================
   HERO B: "Kinetic"
   "Give your [home / kitchen / bathroom / windows / rental] some shine."
   The word flips inside a plum block that resizes to fit, and a fanned
   deck of photos shuffles in step. Picking a service jumps straight to it.
   ===================================================================== */
.hero-b h1.kin { font-size: clamp(46px, 5.6vw, 84px); line-height: 1.02; letter-spacing: -.045em; }
.hero-b h1.kin > span:after { content: none; }
.hero-b .kin-line { display: block; }
.hero-b .kw { position: relative; display: inline-block; margin: .04em 0 .08em; }
.hero-b .kw-box {
  display: inline-block; vertical-align: bottom; height: 1.18em; overflow: hidden;
  padding: 0 .2em; box-sizing: content-box;
  background: var(--plum); color: var(--pale-peach); border-radius: .1em;
  box-shadow: 0 .18em .4em -.2em rgba(48, 12, 73, .7);
  transition: width .55s cubic-bezier(.7, 0, .2, 1);
}
.hero-b .kw-track { display: flex; flex-direction: column; align-items: flex-start; transition: transform .62s cubic-bezier(.7, 0, .2, 1); }
.hero-b .kw-track span { display: block; width: max-content; height: 1.18em; line-height: 1.12; padding-top: .02em; box-sizing: border-box; white-space: nowrap; }
.hero-b .kw .sparkle { right: -.24em; top: -.2em; width: .34em; height: .34em; color: var(--pale-peach); transition: transform .6s cubic-bezier(.2, 1.5, .4, 1); filter: drop-shadow(0 2px 4px rgba(48, 12, 73, .35)); }
.hero-b .kw.pop .sparkle { transform: rotate(90deg) scale(1.3); }
.hero-b .kin-shine { position: relative; display: inline-block; }
.hero-b .kin-shine .shine-text {
  background: linear-gradient(100deg, var(--plum) 0 42%, var(--cream) 50%, var(--plum) 58% 100%);
  background-size: 280% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: mm-glint 6.5s ease-in-out 1.6s infinite;
}
.hero-b .hero-main { gap: 0; }
.deck { position: relative; height: 250px; margin-top: 30px; }
.deck .card {
  position: absolute; left: 0; top: 0; margin: 0; width: min(330px, 80%); aspect-ratio: 4 / 3;
  overflow: hidden; background: var(--pale-peach); border: 6px solid var(--white); border-radius: 4px;
  box-shadow: 0 26px 44px -24px rgba(48, 12, 73, .65);
  transition: transform .7s cubic-bezier(.6, 0, .2, 1), opacity .5s;
}
.deck .card img { width: 100%; height: 100%; object-fit: cover; }
.deck .card figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 8px; font-size: 11px; font-weight: 600; color: #fff; background: linear-gradient(0deg, rgba(48, 12, 73, .8), transparent); }
.deck .card.p0 { transform: rotate(-3deg); z-index: 5; }
.deck .card.p1 { transform: translate(34px, -6px) rotate(4deg) scale(.95); z-index: 4; }
.deck .card.p2 { transform: translate(64px, -10px) rotate(9deg) scale(.9); z-index: 3; }
.deck .card.p3 { transform: translate(90px, -12px) rotate(14deg) scale(.86); z-index: 2; opacity: .92; }
.deck .card.p4 { transform: translate(110px, -12px) rotate(18deg) scale(.82); z-index: 1; opacity: .8; }
.deck .card.out { transform: translate(-36%, 34px) rotate(-18deg) scale(.9); opacity: 0; z-index: 6; transition: transform .52s cubic-bezier(.6, 0, .4, 1), opacity .42s; }
.hero-b .hero-photo-hidden { display: none; }
@media (min-width: 701px) { .hero-b .deck { margin-left: 4px; } }
@media (max-width: 700px) {
  .hero-b h1.kin { font-size: clamp(40px, 11vw, 60px); }
  .deck { height: 215px; margin-top: 22px; }
  .deck .card { width: min(270px, 72%); }
}

/* =====================================================================
   Mobile action dock (all versions): a floating plum + peach bar that
   slides up, nudges to get noticed, phone icon pulses, quote shines.
   ===================================================================== */
@media (max-width: 700px) {
  .quick-actions.quick-actions {
    left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px; padding: 8px;
    background: rgba(255, 255, 255, .98); border: 0; border-radius: 18px;
    box-shadow: 0 2px 6px rgba(48, 12, 73, .14), 0 18px 40px -12px rgba(48, 12, 73, .5);
    transform: translateY(150%); transition: transform .52s cubic-bezier(.2, 1.3, .4, 1);
  }
  .quick-actions.quick-actions.is-visible { transform: none; }
  .quick-actions.nudge { animation: mm-nudge .72s cubic-bezier(.36, .07, .19, .97) both; }
  .quick-actions.quick-actions a { min-height: 56px; padding: 0 12px; border-radius: 13px; font-size: 13px; line-height: 1.15; }
  .quick-actions .qa-call { justify-content: flex-start; gap: 10px; padding-left: 8px; background: var(--plum); color: var(--pale-peach); }
  .quick-actions .qa-ring { position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--peach); color: var(--plum); }
  .quick-actions .qa-ring .icon { width: 19px; height: 19px; animation: mm-ring 4s ease-in-out infinite; }
  .quick-actions .qa-ring:after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--peach); animation: mm-pulse 2s ease-out infinite; }
  .quick-actions .qa-text { display: grid; font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
  .quick-actions .qa-text small { font-size: 10px; font-weight: 500; color: var(--peach); letter-spacing: 0; }
  .quick-actions .qa-quote { position: relative; overflow: hidden; justify-content: center; gap: 8px; background: var(--peach); color: var(--plum); font-weight: 700; font-size: 15px; }
  .quick-actions.quick-actions .qa-quote { background: var(--peach); color: var(--plum); }
  .quick-actions .qa-quote:after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .6), transparent);
    transform: skewX(-18deg); animation: mm-shine 4.5s ease-in-out 2.2s infinite;
  }
  .footer { padding-bottom: 96px; }
}
@keyframes mm-nudge {
  10%, 90% { transform: translateX(-1px) rotate(-.4deg); }
  20%, 80% { transform: translateX(3px) rotate(.6deg); }
  30%, 50%, 70% { transform: translateX(-5px) rotate(-.8deg); }
  40%, 60% { transform: translateX(5px) rotate(.8deg); }
}
@keyframes mm-pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.75); opacity: 0; } }
@keyframes mm-ring { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-16deg); } 88% { transform: rotate(14deg); } 92% { transform: rotate(-10deg); } 96% { transform: rotate(6deg); } }
@keyframes mm-shine { 0% { left: -60%; } 30%, 100% { left: 130%; } }

@media (prefers-reduced-motion: reduce) {
  .shine-text { -webkit-text-fill-color: currentColor; background: none; }
  .quick-actions.quick-actions { transition: none; }
}
