/* Diane’s Cleaning Service — 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: #5A6070;
  font-family: 'Nunito Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: #0F7391; text-decoration: none; }
a:hover { color: #0A5470; }
input::placeholder, textarea::placeholder { color: #9AA0AC; }
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: #0F7391; }

.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: #9ED9E9;
  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: #0F7391; }

.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: #0F7391; color: #242A38; }

.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,42,56,.10); }

.review-card { transition: transform .25s ease, box-shadow .25s ease; }
.review-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(36,42,56,.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: #B9D6E0; }
.field:focus { border-color: #0F7391; box-shadow: 0 0 0 3px rgba(15,115,145,.13); background: #FFFFFF; outline: none; }

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

.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(15,115,145,.36); }
.rate-btn:not(.is-primary):hover { transform: translateY(-2px); border-color: #0F7391; box-shadow: 0 10px 24px rgba(36,42,56,.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(10,84,112,.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 #E2EFF4;
  transition: padding .3s ease, box-shadow .3s ease, transform .32s ease;
}
#siteHeader.is-scrolled {
  padding: 7px 0;
  box-shadow: 0 6px 24px rgba(36,42,56,.10);
  border-bottom: none;
}
#siteHeader.is-hidden { transform: translateY(-100%); }
#headerLogo { height: 61px; width: auto; display: block; transition: height .3s ease; }
#siteHeader.is-scrolled #headerLogo { height: 51px; }
.brand-logo { width: auto; display: block; }
@media (max-width: 1079px) { #headerLogo { height: 55px; } #siteHeader.is-scrolled #headerLogo { height: 49px; } }
@media (max-width: 460px) { #headerLogo { height: 49px; } #siteHeader.is-scrolled #headerLogo { height: 43px; } }
#logoWrap:hover #headerLogo { transform: none; }
.header-phone { color: #242A38; font-weight: 800; font-size: 15px; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.header-phone:hover { color: #0F7391; }
@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 > svg {
  width: 62px;
  height: 62px;
  padding: 19px;
  box-sizing: border-box;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,.20), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 22px rgba(60,10,24,.28), inset 0 1px 0 rgba(255,255,255,.22);
  margin-bottom: 6px;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.trust-item:hover > svg {
  transform: translateY(-4px) scale(1.06);
  background: linear-gradient(160deg, rgba(255,255,255,.34), rgba(255,255,255,.16));
  border-color: rgba(255,255,255,.42);
  box-shadow: 0 16px 30px rgba(60,10,24,.34), inset 0 1px 0 rgba(255,255,255,.34);
}
@media (prefers-reduced-motion: reduce) {
  .trust-item:hover > svg { transform: none; }
}
.trust-num { text-shadow: 0 2px 10px rgba(60,10,24,.22); }
.trust-item.has-divider { border-right: 1px solid rgba(255,255,255,.22); }
@media (min-width: 1080px) {
  #trustBar { padding: 44px 24px; }
  .trust-item { padding: 0 40px; }
  .trust-item:first-child { padding-left: 0; }
  .trust-item:last-child { padding-right: 0; }
}
@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); }
}
@media (max-width: 720px) {
  #trustBar { display: flex !important; flex-direction: column; padding: 18px 20px; }
  .trust-item {
    display: grid !important;
    grid-template-columns: 46px 1fr;
    column-gap: 16px;
    align-items: center;
    text-align: left;
    padding: 15px 0 !important;
    border-right: none !important;
  }
  .trust-item.has-divider, .trust-item:not(:last-child) { border-bottom: none !important; }
  .trust-item { position: relative; }
  .trust-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 62px;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(255,255,255,.16);
  }
  .trust-item > svg {
    grid-row: 1 / span 2;
    width: 46px !important;
    height: 46px !important;
    padding: 12px !important;
    border-radius: 13px !important;
    margin-bottom: 0 !important;
  }
  .trust-num { grid-column: 2; align-self: end; font-size: 16.5px !important; letter-spacing: -0.2px; }
  .trust-label { grid-column: 2; align-self: start; font-size: 13px !important; font-weight: 600 !important; line-height: 1.35; margin-top: 2px; }
}

/* ---------- How it works connector lines ---------- */
.step-line { background: #D5E8EF; }
.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: #8A8F9C; }
.faq-item.is-open .faq-chevron { transform: rotate(180deg); color: #0F7391; }
.faq-question { color: #242A38; transition: color .2s ease; }
.faq-item.is-open .faq-question { color: #0F7391; }

/* ---------- 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: 10px 15px; max-width: 100%; border-radius: 20px; gap: 7px 10px; }
  .hero-badge-text { font-size: 12.5px; letter-spacing: 0; white-space: normal; }
}
@media (max-width: 380px) {
  .hero-badge-text { font-size: 11.5px; letter-spacing: 0; }
}

/* 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; }
  .rr-img .float-card-top { top: 12px !important; left: 12px !important; right: auto !important; bottom: auto !important; }
  .rr-img .float-card-right { position: static !important; width: auto !important; max-width: 100% !important; margin: 14px 0 0 !important; box-shadow: 0 12px 30px rgba(8,58,78,0.14) !important; }
}
@media (max-width: 560px) {
  .badge-rule { display: none; }
}

/* 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; }
}

/* ---------- Hand-drawn heading accent ---------- */
.hl {
  display: inline;
  padding-bottom: 0.1em;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 16' preserveAspectRatio='none'><path d='M4.2 11.4C57 6 149 3.2 295.6 5.9c-1.1 2.7-2.5 4.2-4.1 4.8-104.4-2.1-192.2.6-286.4 4.9-1.7-1-2.4-2.6-2-4.2z' fill='%237FCBDE'/></svg>") 0 100% / 100% 0.28em no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hl-light { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 16' preserveAspectRatio='none'><path d='M4.2 11.4C57 6 149 3.2 295.6 5.9c-1.1 2.7-2.5 4.2-4.1 4.8-104.4-2.1-192.2.6-286.4 4.9-1.7-1-2.4-2.6-2-4.2z' fill='%235CBED6'/></svg>"); }
.hl-blue { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 16' preserveAspectRatio='none'><path d='M4.2 11.4C57 6 149 3.2 295.6 5.9c-1.1 2.7-2.5 4.2-4.1 4.8-104.4-2.1-192.2.6-286.4 4.9-1.7-1-2.4-2.6-2-4.2z' fill='%23FFC768'/></svg>"); }

/* ---------- Auto-scrolling review lanes ---------- */
.rev-tracks { display: flex; flex-direction: column; gap: 20px; margin: 0 0 36px; }
.rev-lane { position: relative; overflow: hidden; padding: 6px 0; }
.rev-lane::before, .rev-lane::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.rev-lane::before { left: 0; background: linear-gradient(90deg, #F4FAFC 0%, rgba(244,250,252,0) 100%); }
.rev-lane::after { right: 0; background: linear-gradient(270deg, #F4FAFC 0%, rgba(244,250,252,0) 100%); }
.rev-track {
  display: flex;
  gap: 20px;
  width: max-content;
  align-items: stretch;
  animation: revScroll 66s linear infinite;
}
.rev-track-rev { animation-name: revScrollRev; animation-duration: 74s; }
.rev-lane:hover .rev-track, .rev-track:focus-within { animation-play-state: paused; }
@keyframes revScroll { from { transform: translate3d(0,0,0); } to { transform: translate3d(calc(-50% - 10px),0,0); } }
@keyframes revScrollRev { from { transform: translate3d(calc(-50% - 10px),0,0); } to { transform: translate3d(0,0,0); } }
@media (max-width: 560px) { .rev-lane::before, .rev-lane::after { width: 40px; } }
@media (prefers-reduced-motion: reduce) {
  .rev-track { animation: none; }
  .rev-lane { overflow-x: auto; }
}

/* ---------- Phone hero refinements ---------- */
@media (max-width: 700px) {
  .hero-deco { display: none; }
  .rr-img .zw { border-radius: 20px; }
  .rr-img .zw > img { aspect-ratio: 4 / 3 !important; }
  .rr-img .float-card-top { padding: 9px 13px 9px 10px !important; border-radius: 12px !important; gap: 10px !important; }
  .fc-ico { width: 32px !important; height: 32px !important; }
  .fc-val { font-size: 13.5px !important; }
}

.pill-min { display: none; }
@media (max-width: 560px) {
  .pill-full, .pill-word, .pill-amp { display: none; }
  .pill-min { display: inline; }
}

/* ---------- Phone hero: photo + review as one card ---------- */
@media (max-width: 700px) {
  .rr-hero { row-gap: 22px; }
  .rr-img .zw { border-radius: 20px !important; overflow: hidden; z-index: 1; }
  .rr-img .float-card-top { display: none !important; }
  .rr-img .float-card-right {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 3 !important;
    width: auto !important;
    max-width: calc(100% - 20px) !important;
    margin: -26px 10px 0 !important;
    padding: 12px 14px 13px 12px !important;
    border-radius: 14px !important;
    box-shadow: 0 14px 34px rgba(8,58,78,0.16) !important;
    gap: 7px !important;
  }
  .rr-img .float-card-right figcaption { gap: 10px !important; }
  .rr-img .float-card-right figcaption > span:last-child > span:first-child { font-size: 15px !important; }
  .rr-img .float-card-right figcaption > span:last-child > span:last-child { font-size: 13px !important; font-weight: 500 !important; }
  .rr-img .float-card-right .pill-stars svg { width: 13px !important; height: 13px !important; }
  .hero-rev-text { font-size: 13px !important; line-height: 1.5 !important; color: #8A8F9C !important; }
  .hero-tag { padding: 8px 14px !important; margin: 0 !important; }
  .hero-tag span { font-size: 11.5px !important; letter-spacing: 1px !important; }
}
@media (max-width: 620px) { .tag-rest { display: inline; } }
.pill-tiny { display: none; }
@media (max-width: 700px) {
  /* credential pill: one row, full width */
  .hero-badge {
    display: inline-flex !important;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center;
    border-radius: 999px !important;
    padding: 10px 18px 10px 12px !important;
    gap: 10px !important;
  }
  .hero-badge-text { min-width: 0; font-size: 12.5px !important; line-height: 1.35; }
  .badge-rule { display: none; }
}
@media (max-width: 372px) {
  .hero-badge { padding: 10px 14px 10px 10px !important; }
  .hero-badge-text { font-size: 11.5px !important; }
}
