/* Ain Muslimah | Midnight Garden — mobile mini-cards & living ornamental ink.
   A presentation-only layer. Booking, payment, modal and admin code stay intact. */

/* The additional artwork lives inside existing pointer-events:none scenery. */
.ams-lux-scene .ams-cinema-ink {
  position:absolute;
  width:clamp(300px,38vw,580px);
  height:auto;
  fill:none;
  pointer-events:none;
  opacity:.48;
  stroke:#b3d0ad;
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-width:2;
  filter:drop-shadow(0 0 13px #d9c48535);
  animation:amsInkSway 19s ease-in-out infinite alternate;
}
.ams-lux-scene .ams-cinema-ink path,
.ams-lux-scene .ams-cinema-ink circle,
.ams-lux-scene .ams-cinema-ink ellipse {
  vector-effect:non-scaling-stroke;
}
.ams-lux-scene .ams-cinema-ink .ams-cinema-leaves {
  stroke:#9ac4a1;
  stroke-width:1.75;
}
.ams-lux-scene .ams-cinema-ink .ams-cinema-gold {
  stroke:#e9c886;
  stroke-width:1.55;
  stroke-dasharray:1000;
  animation:amsInkTrace 17s ease-in-out infinite alternate;
}
.ams-lux-scene .ams-cinema-ink .ams-cinema-ring {
  stroke:#d7b978;
  stroke-width:1;
  stroke-dasharray:4 10;
}
.ams-lux-scene .ams-cinema-ink-a {
  left:-10%;top:14%;
  --ams-ink-angle:-11deg;
  animation-delay:-6s;
}
.ams-lux-scene .ams-cinema-ink-b {
  right:-12%;bottom:7%;
  --ams-ink-angle:13deg;
  transform:scaleX(-1);
  opacity:.34;
  animation-duration:24s;
  animation-delay:-14s;
}
.ams-lux-scene .ams-cinema-firefly {
  position:absolute;
  top:var(--ams-firefly-top);
  left:var(--ams-firefly-left);
  width:var(--ams-firefly-size,5px);
  height:var(--ams-firefly-size,5px);
  border-radius:50%;
  background:#ffe7b1;
  box-shadow:0 0 10px 3px #e8d69c5d,0 0 28px 5px #bd9a5240;
  opacity:0;
  pointer-events:none;
  animation:amsFireflyDrift var(--ams-firefly-time,13s) ease-in-out infinite;
  animation-delay:var(--ams-firefly-delay,-2s);
}
.ams-lux-scene:not(.ams-lux-visible) :is(.ams-cinema-ink,.ams-cinema-firefly),
.ams-lux-scene:not(.ams-lux-visible) .ams-cinema-ink * {
  animation-play-state:paused!important;
}

@keyframes amsInkSway {
  from {transform:translate3d(-13px,8px,0) rotate(var(--ams-ink-angle,-10deg)) scale(.95)}
  to {transform:translate3d(17px,-29px,0) rotate(calc(var(--ams-ink-angle,-10deg) + 8deg)) scale(1.04)}
}
@keyframes amsInkTrace {
  from {stroke-dashoffset:150;opacity:.45}
  to {stroke-dashoffset:0;opacity:1}
}
@keyframes amsFireflyDrift {
  0%,100% {transform:translate3d(0,0,0) scale(.65);opacity:0}
  27% {opacity:.8}
  54% {transform:translate3d(27px,-48px,0) scale(1.1);opacity:.4}
  79% {opacity:.8}
}

/* Fine-line engraved geometry over the forest gradient. */
html.ams-curated :is(#home,#spa,#promo,#services,#homestay,#booking,#events,#gallery,#about,#contact,#homestay-availability) {
  background-blend-mode:screen,normal,normal;
}
html.ams-curated .ams-chapter {
  text-shadow:0 0 14px #e4c58556;
  animation:amsChapterGlimmer 6s ease-in-out infinite;
}
html.ams-curated .ams-chapter::before,
html.ams-curated .ams-chapter::after {box-shadow:0 0 12px #d4ad6280}
@keyframes amsChapterGlimmer {50%{text-shadow:0 0 25px #f6dba19a}}

/* Editorial, naturally staggered arrival as the visitor scrolls. */
html.ams-motion-enabled .ams-reveal[data-ams-entrance="left"]:not(.ams-visible) {
  transform:translate3d(-36px,22px,0) rotate(-1.2deg);
}
html.ams-motion-enabled .ams-reveal[data-ams-entrance="right"]:not(.ams-visible) {
  transform:translate3d(36px,22px,0) rotate(1.2deg);
}
html.ams-motion-enabled .ams-reveal[data-ams-entrance="scale"]:not(.ams-visible) {
  transform:translate3d(0,28px,0) scale(.94);
}
html.ams-motion-enabled .ams-reveal.ams-visible {
  transform:translate3d(0,0,0) rotate(0) scale(1);
  transition-duration:.83s;
  transition-timing-function:cubic-bezier(.19,1,.22,1);
}
html.ams-cinema-ready .ams-cinematic {
  transition:transform .9s cubic-bezier(.18,.75,.16,1),opacity .8s ease,filter .8s ease;
  transition-delay:var(--ams-cinema-delay,0ms);
}
html.ams-cinema-ready .ams-cinematic:not(.ams-cinematic-visible) {
  opacity:0;
  transform:translate3d(0,43px,0) scale(.96);
  filter:blur(3px);
}
html.ams-cinema-ready .ams-cinematic.ams-cinematic-visible {
  opacity:1;
  transform:translate3d(0,0,0) scale(1);
  filter:none;
}

/* A polished glass sweep across interactive controls; never blocks clicks. */
html.ams-curated :is(.btn,.promo-book,.service-actions a,.service-actions button,.booking-submit,.ams-event-submit,.ams-branch-wa,.nav-book,.ams-calendar-link,.ams-event-cta) {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  transition:transform .32s cubic-bezier(.18,.9,.23,1),box-shadow .35s ease,filter .35s ease!important;
}
html.ams-curated :is(.btn,.promo-book,.service-actions a,.service-actions button,.booking-submit,.ams-event-submit,.ams-branch-wa,.nav-book,.ams-calendar-link,.ams-event-cta)::after {
  content:"";
  position:absolute;
  z-index:0;
  inset:-65% auto -65% -55%;
  width:35%;
  background:linear-gradient(90deg,transparent,#ffedbe52,transparent);
  pointer-events:none;
  transform:translateX(-160%) rotate(22deg);
  transition:transform .7s ease;
}
html.ams-curated :is(.btn,.promo-book,.service-actions a,.service-actions button,.booking-submit,.ams-event-submit,.ams-branch-wa,.nav-book,.ams-calendar-link,.ams-event-cta):hover {
  transform:translateY(-4px) scale(1.015);
  box-shadow:0 13px 30px #0005,0 0 0 1px #f0cd8b77!important;
  filter:brightness(1.08);
}
html.ams-curated :is(.btn,.promo-book,.service-actions a,.service-actions button,.booking-submit,.ams-event-submit,.ams-branch-wa,.nav-book,.ams-calendar-link,.ams-event-cta):active {
  transform:translateY(0) scale(.97)!important;
  filter:brightness(1.12);
}
html.ams-curated :is(.btn,.promo-book,.service-actions a,.service-actions button,.booking-submit,.ams-event-submit,.ams-branch-wa,.nav-book,.ams-calendar-link,.ams-event-cta):is(:hover,:focus-visible)::after {
  transform:translateX(580%) rotate(22deg);
}
html.ams-curated :is(.booking-submit,.ams-event-submit,.ams-promo-cta)::after {
  animation:amsButtonGleam 8s ease-in-out infinite;
}
@keyframes amsButtonGleam {
  0%,30%,100% {transform:translateX(-160%) rotate(22deg)}
  43%,52% {transform:translateX(580%) rotate(22deg)}
}
html.ams-curated :is(.service-card,.promo-live-card,.choice-card) {
  transition:transform .45s cubic-bezier(.15,.9,.25,1),box-shadow .45s ease!important;
}
html.ams-curated :is(.service-card,.promo-live-card,.choice-card):hover {
  box-shadow:0 24px 52px #0007,0 0 0 1px #e4c98c8c!important;
}

/* On mobile show more treatments and offers at once, instead of giant cards. */
@media(max-width:600px) {
  html.ams-curated :is(#promo,#services) {
    padding:44px 12px 52px!important;
  }
  html.ams-curated :is(#promo,#services) .section-heading {margin-bottom:18px!important}
  html.ams-curated #promo .promo-live-grid {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    max-width:510px!important;
    margin:20px auto 0!important;
  }
  html.ams-curated #promo .promo-live-card {
    min-width:0;
    display:flex;
    flex-direction:column;
    border-radius:15px!important;
  }
  html.ams-curated #promo .promo-feature {
    grid-column:span 2!important;
    display:grid!important;
    grid-template-columns:minmax(0,40%) minmax(0,60%)!important;
    align-items:stretch;
  }
  html.ams-curated #promo .promo-art {
    min-height:0!important;
    padding:7px!important;
  }
  html.ams-curated #promo .promo-art img {
    height:142px!important;
    max-height:142px!important;
    width:100%!important;
    object-fit:contain;
  }
  html.ams-curated #promo .promo-feature .promo-art img {
    height:205px!important;
    max-height:205px!important;
  }
  html.ams-curated #promo .promo-ribbon {
    top:7px!important;left:7px!important;
    padding:5px 7px!important;
    font-size:8px!important;
    letter-spacing:.04em!important;
  }
  html.ams-curated #promo .promo-art::after {
    content:none;
    display:none;
    position:absolute;
    bottom:6px;left:50%;
    transform:translateX(-50%);
    z-index:1;
    font-size:9px;
    line-height:1;
    white-space:nowrap;
    border-radius:20px;
    border:1px solid #e8d49e8c;
    padding:5px 8px;
    color:#f9eccd;
    background:#0b2c23ce;
    pointer-events:none;
  }
  html.ams-curated #promo .promo-copy,
  html.ams-curated #promo .promo-feature .promo-copy {
    min-width:0;
    padding:12px 11px 14px!important;
    display:flex;
    flex-direction:column;
  }
  html.ams-curated #promo .promo-eyebrow {font-size:9px!important;letter-spacing:.09em!important}
  html.ams-curated #promo .promo-copy h3 {
    font-size:clamp(17px,4.3vw,21px)!important;
    margin:5px 0 7px!important;
    line-height:1.17!important;
    overflow-wrap:anywhere;
  }
  html.ams-curated #promo .promo-copy>p:not(.promo-deadline) {
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    line-clamp:2;
    overflow:hidden;
    font-size:11px!important;
    line-height:1.48!important;
    margin:3px 0 7px!important;
  }
  html.ams-curated #promo .promo-prices {gap:5px!important;margin:6px 0 8px!important}
  html.ams-curated #promo .promo-prices span {padding:6px 7px!important;border-radius:8px!important}
  html.ams-curated #promo .promo-prices b {font-size:11px!important;line-height:1.3}
  html.ams-curated #promo .promo-prices small {display:none!important}
  html.ams-curated #promo .promo-feature .promo-prices small {
    display:-webkit-box!important;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:1;
    overflow:hidden;
    font-size:9px!important;
  }
  html.ams-curated #promo .promo-highlight {
    gap:4px!important;
    padding:8px!important;
  }
  html.ams-curated #promo .promo-highlight b {font-size:21px!important}
  html.ams-curated #promo .promo-highlight :is(small,span) {font-size:10px!important}
  html.ams-curated #promo .promo-deadline {font-size:10px!important;margin:7px 0!important}
  html.ams-curated #promo .promo-book {
    display:flex;
    width:100%;
    margin-top:auto;
    padding:10px 7px!important;
    font-size:11px!important;
    line-height:1.35!important;
    text-align:center;
  }
  html.ams-curated #promo .ams-wa-choices {display:grid!important;grid-template-columns:1fr!important;gap:6px!important}
  html.ams-curated #promo .ams-branch-wa {font-size:10px!important;padding:9px 5px!important;line-height:1.35!important}
  html.ams-curated #services .service-grid {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    max-width:510px!important;
    margin:20px auto 0!important;
  }
  html.ams-curated #services .service-card {border-radius:15px!important;min-width:0}
  html.ams-curated #services .service-image {
    height:153px!important;
    min-height:0!important;
    padding:0!important;
  }
  html.ams-curated #services .service-content {padding:10px 11px 13px!important}
  html.ams-curated #services .service-category {
    font-size:9px!important;
    letter-spacing:.03em!important;
    padding:4px 7px!important;
    align-self:flex-start;
  }
  html.ams-curated #services .service-content h3 {
    font-size:clamp(17px,4vw,20px)!important;
    line-height:1.13!important;
    margin:7px 0 4px!important;
  }
  html.ams-curated #services .service-content p {
    font-size:11px!important;
    line-height:1.45!important;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
    margin:4px 0!important;
  }
  html.ams-curated #services .service-content strong {font-size:15px!important;margin:7px 0!important}
  html.ams-curated #services .service-actions {display:grid!important;grid-template-columns:1fr!important;gap:5px!important}
  html.ams-curated #services .service-actions :is(a,button) {
    display:block;
    width:100%;
    font-size:10.5px!important;
    text-align:center;
    line-height:1.35!important;
    padding:9px 5px!important;
    border-radius:10px!important;
  }
  html.ams-curated #services .ams-manicure-badge {top:6px!important;right:6px!important;padding:5px 7px!important;font-size:9px!important}
  html.ams-curated #services .ams-wa-choices {display:grid!important;grid-template-columns:1fr!important;gap:6px!important}
  html.ams-curated #services .ams-branch-wa {font-size:10px!important;padding:8px 5px!important;line-height:1.3!important}
  html.ams-curated .ams-lux-scene .ams-cinema-ink {width:66vw;opacity:.3}
  html.ams-curated .ams-lux-scene .ams-cinema-ink-b {display:none}
  .ams-lux-scene .ams-cinema-firefly:nth-last-child(n+4) {display:none}
}

/* Very narrow screens: compact horizontal catalogue cards stay readable. */
@media(max-width:355px) {
  html.ams-curated #promo .promo-live-grid,
  html.ams-curated #services .service-grid {grid-template-columns:1fr!important}
  html.ams-curated #promo .promo-live-card,
  html.ams-curated #promo .promo-feature,
  html.ams-curated #services .service-card {
    grid-column:auto!important;
    display:grid!important;
    grid-template-columns:minmax(0,35%) minmax(0,65%)!important;
  }
  html.ams-curated #promo .promo-art img,
  html.ams-curated #promo .promo-feature .promo-art img {height:160px!important;max-height:160px!important}
  html.ams-curated #services .service-image {height:100%!important;min-height:160px!important}
  html.ams-curated #promo .promo-copy h3,
  html.ams-curated #services .service-content h3 {font-size:18px!important}
}

@media(prefers-reduced-motion:reduce) {
  html.ams-curated .ams-lux-scene :is(.ams-cinema-ink,.ams-cinema-firefly),
  html.ams-curated .ams-lux-scene .ams-cinema-ink *,
  html.ams-curated .ams-chapter,
  html.ams-curated :is(.booking-submit,.ams-event-submit,.ams-promo-cta)::after {
    animation:none!important;
  }
  html.ams-cinema-ready .ams-cinematic,
  html.ams-motion-enabled .ams-reveal {transition:none!important;opacity:1!important;transform:none!important;filter:none!important}
}
