/* Lunara Essence Cleaning Services — production styles
   Base resets, keyframes, responsive rules, and every interactive state
   (hover / focus / active) that the design relies on. Layout and colour
   values remain inline on the elements so the rendering is unchanged. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  background: #FFFFFF;
  color: #605B7E;
  font-family: 'Nunito Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: #5E44A0; text-decoration: none; }
a:hover { color: #3E2B6E; }
input::placeholder, textarea::placeholder { color: #A8A4B8; }
img { max-width: 100%; }

@keyframes sbFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sbFabRing { 0% { transform: scale(1); opacity: .5; } 70% { transform: scale(1.55); opacity: 0; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes sbFabIn { from { opacity: 0; transform: translateY(14px) scale(.85); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes tyRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes tyPop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }

/* ---------- Interactive states ---------- */
.nav-link { transition: color .18s ease; }
.nav-link:hover { color: #5E44A0; }

.footer-link {
  position: relative;
  align-self: flex-start;
  transition: color .18s ease, transform .18s ease;
}
.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1.5px;
  background: #C9B6F2;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.footer-link:hover { color: #FFFFFF; transform: translateX(3px); }
.footer-link:hover::after { transform: scaleX(1); }

.btn-cta {
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.btn-cta:hover { transform: translateY(-2px); filter: brightness(.94); color: #FFFFFF; }
.btn-cta:active { transform: translateY(0); filter: brightness(.92); }

.btn-outline { transition: transform .2s ease, border-color .2s ease; }
.btn-outline:hover { transform: translateY(-2px); border-color: #5E44A0; }

.btn-ghost { transition: transform .2s ease, background .2s ease; }
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255,255,255,.18); color: #FFFFFF; }

.btn-google { transition: transform .2s ease, border-color .2s ease; }
.btn-google:hover { transform: translateY(-2px); border-color: #5E44A0; color: #241F47; }

.logo-link { transition: opacity .2s ease; }
.logo-link:hover { opacity: .78; }

.service-card { transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(36,31,71,.10); }

.review-card { transition: transform .25s ease, box-shadow .25s ease; }
.review-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(36,31,71,.10); }

.contact-card { transition: transform .2s ease; }
.contact-card:hover { transform: translateY(-2px); }

.gallery-item { transition: box-shadow .25s ease; }
.gallery-item:hover { box-shadow: 0 22px 50px rgba(0,0,0,.42); }
.gallery-item img { transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.08); }

.field { transition: border-color .18s ease, box-shadow .18s ease; }
.field:hover { border-color: #C9BFE0; }
.field:focus { border-color: #5E44A0; box-shadow: 0 0 0 3px rgba(94,68,160,.13); background: #FFFFFF; outline: none; }

.faq-toggle { transition: background .2s ease; }
.faq-toggle:hover { background: #F8F6FD; }

.lightbox-btn { transition: background .2s ease; }
.lightbox-btn:hover { background: rgba(255,255,255,.22); }

.tab-btn { transition: all .25s ease; }

.rate-btn { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, filter .18s ease; }
.rate-btn.is-primary:hover { transform: translateY(-2px); filter: brightness(.94); box-shadow: 0 14px 30px rgba(94,68,160,.36); }
.rate-btn:not(.is-primary):hover { transform: translateY(-2px); border-color: #5E44A0; box-shadow: 0 10px 24px rgba(36,31,71,.14); }

.call-fab-body { transition: transform .18s ease, box-shadow .18s ease; }
.call-fab:active .call-fab-body {
  transform: scale(.92);
  box-shadow: 0 4px 12px rgba(62,43,110,.36), inset 0 1.5px 0 rgba(255,255,255,.24);
}

/* ---------- Header (desktop / mobile split) ---------- */
#siteHeader {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 11px 0;
  border-bottom: 1px solid #EBE8F5;
  transition: padding .3s ease, box-shadow .3s ease, transform .32s ease;
}
#siteHeader.is-scrolled {
  padding: 7px 0;
  box-shadow: 0 6px 24px rgba(36,31,71,.10);
  border-bottom: none;
}
#siteHeader.is-hidden { transform: translateY(-100%); }
#headerLogo { height: 46px; width: auto; display: block; transition: height .3s ease; }
#siteHeader.is-scrolled #headerLogo { height: 38px; }
.brand-logo { width: auto; display: block; }
@media (max-width: 1079px) { #headerLogo { height: 38px; } #siteHeader.is-scrolled #headerLogo { height: 33px; } }
@media (max-width: 460px) { #headerLogo { height: 30px; } #siteHeader.is-scrolled #headerLogo { height: 27px; } }
#logoWrap:hover #headerLogo { transform: none; }
.header-phone { color: #241F47; font-weight: 800; font-size: 15px; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.header-phone:hover { color: #5E44A0; }
@media (max-width: 1179px) { .header-phone, .header-sep { display: none; } }

.only-mobile { display: none; }
#logoWrap { display: flex; align-items: center; flex: none; }

@media (max-width: 1079px) {
  .only-mobile { display: flex; }
  .only-desktop { display: none !important; }
  #logoWrap {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
  }
}

/* ---------- Trust bar ---------- */
#trustBar { padding: 44px 24px; flex-direction: row; }
.trust-item { padding: 0 24px; flex: 1; }
.trust-item.has-divider { border-right: 1px solid rgba(255,255,255,.22); }
@media (max-width: 1079px) {
  #trustBar { padding: 30px 24px; flex-direction: column; }
  .trust-item { padding: 18px 24px; }
  .trust-item.has-divider { border-right: none; border-bottom: 1px solid rgba(255,255,255,.22); }
}

/* ---------- How it works connector lines ---------- */
.step-line { background: #E5E2F0; }
.step-line.is-edge { background: transparent; }
@media (max-width: 1079px) { .step-line { background: transparent; } }

/* ---------- Recent work grid ---------- */
@media (max-width: 640px) {
  #recentJobsGrid { justify-content: center; }
  #recentJobsGrid figure {
    flex: 0 1 calc(50% - 8px) !important;
    width: calc(50% - 8px) !important;
  }
}

/* ---------- Hero: hybrid mobile order ---------- */
.rr-hero {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "head img" "body img";
  column-gap: clamp(36px, 5vw, 64px);
  row-gap: 0;
  align-content: center;
}
.rr-head { grid-area: head; align-self: end; }
.rr-body { grid-area: body; align-self: start; }
.rr-img  { grid-area: img; align-self: center; position: relative; }

@media (max-width: 940px) {
  .rr-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "img" "body";
    row-gap: 28px;
  }
  .rr-head, .rr-body, .rr-img { align-self: auto; }
}

/* Hover zoom wrapper */
.zw { overflow: hidden; border-radius: 24px; }
.zw > img { transition: transform .55s cubic-bezier(.22,.61,.36,1); }
.zw:hover > img { transform: scale(1.045); }
@media (prefers-reduced-motion: reduce) { .zw > img, .zw:hover > img { transition: none; transform: none; } }

/* ---------- Mobile call button ---------- */
#callFab { display: none; }
#callFab.is-visible { display: flex; }
@media (min-width: 1080px) { #callFab.is-visible { display: none; } }

/* ---------- Mobile menu ---------- */
#mobileMenu { display: none; }
#mobileMenu.is-open { display: flex; }

/* ---------- FAQ accordion ---------- */
.faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.faq-item.is-open .faq-body { grid-template-rows: 1fr; }
.faq-chevron { transform: none; transition: transform .3s ease; flex: none; color: #918CA8; }
.faq-item.is-open .faq-chevron { transform: rotate(180deg); color: #5E44A0; }
.faq-question { color: #241F47; transition: color .2s ease; }
.faq-item.is-open .faq-question { color: #5E44A0; }

/* ---------- Reveal on scroll ---------- */
[data-reveal].is-pending {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  [data-reveal].is-pending { opacity: 1; transform: none; transition: none; }
  #callFab .call-fab-ring { opacity: 0 !important; }
}

/* Photo hover lift — hero, about, why choose us, what's included */
.img-lift {
  transition: transform .45s cubic-bezier(.22,.61,.36,1), box-shadow .45s cubic-bezier(.22,.61,.36,1), filter .45s ease;
  will-change: transform;
}
.img-lift:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 30px 64px rgba(27, 47, 99, 0.24);
  filter: saturate(1.06);
}
@media (prefers-reduced-motion: reduce) {
  .img-lift, .img-lift:hover { transition: none; transform: none; }
}
/* Touch devices: no hover lift — a tap would fire :hover and push the image past its container */
@media (hover: none), (max-width: 700px) {
  .img-lift:hover { transform: none; box-shadow: 0 20px 50px rgba(27, 47, 99, 0.14); filter: none; }
  .zw:hover > img { transform: none; }
}

/* Lightbox controls out of thumb-tap zone on phones */
@media (max-width: 700px) {
  .lightbox-btn[data-lb="prev"], .lightbox-btn[data-lb="next"] {
    top: auto !important; bottom: 20px !important; transform: none !important;
    width: 56px !important; height: 56px !important;
    background: rgba(255,255,255,0.18) !important;
  }
  .lightbox-btn[data-lb="prev"] { left: calc(50% - 82px) !important; }
  .lightbox-btn[data-lb="next"] { right: calc(50% - 82px) !important; }
  [data-lb="figure"] { padding-bottom: 84px !important; }
  [data-lb="img"] { max-height: 64vh !important; }
}

/* ---------- Narrow-screen refinements ---------- */
@media (max-width: 560px) {
  .hero-badge { padding: 7px 13px; }
  .hero-badge-text { font-size: 11.5px; letter-spacing: 0.8px; }
}
@media (max-width: 380px) {
  .hero-badge-text { font-size: 10.5px; letter-spacing: 0.4px; }
}

/* Floating photo captions: pull inside the frame and shrink on phones */
@media (max-width: 700px) {
  .float-card { left: 12px !important; right: auto !important; bottom: 14px !important; padding: 11px 14px !important; max-width: calc(100% - 24px) !important; }
  .float-card-right { left: auto !important; right: 12px !important; }
}

/* Full-width tap targets on small phones */
@media (max-width: 460px) {
  main .btn-cta, main .btn-outline, main .btn-ghost { width: 100%; justify-content: center; text-align: center; }
  .review-card, .service-card { padding: 22px !important; }
  #quoteFormCard { padding: 22px !important; }
}
