/* =====================================================================
   luxe.css — luxury finish + scroll-reveal system. Loaded last.
   Hero is not touched. Reveal uses the individual `translate` /
   `scale` properties so existing hover transforms keep working.
   ===================================================================== */
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
::selection { background: #00b3c2; color: #fff; }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: 3px; pointer-events: none;
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, #007f9e, #00c4c9, #8ff3f1);
  box-shadow: 0 0 12px #00c4c980;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: clamp(16px, 2.5vw, 32px); bottom: clamp(16px, 2.5vw, 32px); z-index: 80;
  display: grid; place-items: center; width: 52px; height: 52px; padding: 0;
  border: 1px solid #ffffff40; border-radius: 50%;
  background: linear-gradient(140deg, #00a7b8, #00708f); color: #fff;
  box-shadow: 0 16px 32px -12px #00506e99;
  opacity: 0; translate: 0 16px; pointer-events: none;
  transition: opacity .45s ease, translate .45s cubic-bezier(.22,1,.36,1), box-shadow .3s;
}
.to-top.show { opacity: 1; translate: 0 0; pointer-events: auto; }
.to-top:hover { box-shadow: 0 20px 40px -12px #00a7b8b0; }
.to-top svg { width: 20px; height: 16px; rotate: -90deg; }
html.menu-open .to-top { opacity: 0; pointer-events: none; }

/* ---------- Reveal system (only when JS + motion allowed) ---------- */
.js-reveal .rv {
  opacity: 0; translate: 0 40px;
  transition: opacity 1s cubic-bezier(.22,1,.36,1), translate 1.1s cubic-bezier(.22,1,.36,1), scale 1.1s cubic-bezier(.22,1,.36,1),
              transform .6s cubic-bezier(.22,1,.36,1), box-shadow .6s, border-color .3s, background .3s;
  transition-delay: var(--d, 0s);
}
.js-reveal .rv.rv-left { translate: -48px 0; }
.js-reveal .rv.rv-right { translate: 48px 0; }
.js-reveal .rv.rv-zoom { translate: 0 24px; scale: .95; }
.js-reveal .rv.in { opacity: 1; translate: 0 0; scale: 1; }

/* Image curtain reveal (service photos) */
.js-reveal .rv-img img {
  clip-path: inset(0 0 100% 0); scale: 1.14;
  transition: clip-path 1.25s cubic-bezier(.77,0,.18,1), scale 1.8s cubic-bezier(.22,1,.36,1);
  transition-delay: calc(var(--d, 0s) + .15s);
}
.js-reveal .rv-img.in img { clip-path: inset(0); scale: 1; }

/* FAQ photo panel curtain */
.js-reveal .ac-faq .ac-container::before { clip-path: inset(0 0 100% 0 round 28px); transition: clip-path 1.4s cubic-bezier(.77,0,.18,1); }
.js-reveal .ac-faq .ac-container.in::before { clip-path: inset(0 round 28px); }
.js-reveal .ac-faq .ac-container::after { opacity: 0; translate: 0 20px; transition: opacity .9s ease .9s, translate .9s cubic-bezier(.22,1,.36,1) .9s; }
.js-reveal .ac-faq .ac-container.in::after { opacity: 1; translate: 0 0; }

/* =====================================================================
   Upper sections — premium hover polish
   ===================================================================== */
.service-card { overflow: hidden; transition: transform .6s cubic-bezier(.22,1,.36,1), box-shadow .6s; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 34px 64px -32px #022c47a0; }
.service-card img { transition: scale 1.2s cubic-bezier(.22,1,.36,1); }
.service-card:hover img, .js-reveal .service-card.rv-img.in:hover img { scale: 1.07; }

/* =====================================================================
   Aftercare sections — luxury finish
   ===================================================================== */
.aftercare { --gold: #f2b01e; --navy-deep: #021d33; }

/* Section eyebrow pills + gradient headline words */
.aftercare .ac-heading::before {
  content: var(--eyebrow, none); display: inline-flex; align-items: center;
  margin-bottom: 18px; padding: 8px 16px;
  border: 1px solid #bfe6ec; border-radius: 999px; background: #ffffffcc;
  box-shadow: 0 6px 18px -10px #00627c40;
  font: 700 11px/1 Lato, Arial, sans-serif; letter-spacing: .24em; color: #00869e;
}
.aftercare .client-stories { --eyebrow: "✦  TESTIMONIALS"; }
.aftercare .ac-faq { --eyebrow: "✦  GOOD TO KNOW"; }
.aftercare .ac-heading h2::before, .aftercare .ac-heading h2::after { display: none; }
.aftercare .ac-heading h2 span {
  background: linear-gradient(100deg, #007f9e 0%, #00b4c2 55%, #29cfc4 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Testimonials ---------- */
.aftercare .client-stories {
  background:
    linear-gradient(180deg, #f7fbfc00 40%, #f7fbfc 100%) center top / 100% calc(100vw / 3) no-repeat,
    #f7fbfc url('assets/aftercare/testimonials-foliage-vibrant-green.png') center top / 100% auto no-repeat;
}
.aftercare .review-grid { align-items: center; gap: 28px; }
.aftercare .review-card {
  border: 1px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(150deg, #cfeef2, #ffffff 45%, #d4ecf1) border-box;
  box-shadow: 0 2px 4px #0a2e4a08, 0 30px 60px -34px #0a3a5a40;
}
.aftercare .review-stars { color: var(--gold); filter: drop-shadow(0 2px 4px #f2b01e40); }
/* Featured middle card */
.aftercare .review-card:nth-child(2) {
  padding-block: 48px 44px;
  background: radial-gradient(70% 60% at 100% 0%, #0b5c7a 0, transparent 70%) padding-box,
              linear-gradient(160deg, #04304d, var(--navy-deep)) padding-box,
              linear-gradient(140deg, #3fd5df, #04304d 45%, #3fd5df) border-box;
  box-shadow: 0 40px 80px -36px #021d33b0;
  color: #fff;
}
.aftercare .review-card:nth-child(2) h3 { color: #fff; }
.aftercare .review-card:nth-child(2) .review-person p { color: #6fe0ec; }
.aftercare .review-card:nth-child(2) blockquote { border-top-color: #ffffff1f; }
.aftercare .review-card:nth-child(2) blockquote p { color: #d3e5ee; }
.aftercare .review-card:nth-child(2) .review-mark-open { color: #ffffff14; }
.aftercare .review-card:nth-child(2) .review-avatar { box-shadow: 0 0 0 2px #3fd5df; border-color: #04304d; }

/* ---------- Stats: deep navy luxury band ---------- */
.aftercare .stats-grid {
  padding: 40px 24px; border: 1px solid #ffffff14;
  background: radial-gradient(70% 160% at 0% 0%, #0b5676 0, transparent 60%),
              radial-gradient(60% 160% at 100% 100%, #074660 0, transparent 60%),
              linear-gradient(120deg, #03263f, var(--navy-deep));
  box-shadow: 0 40px 80px -40px #021d33a0;
}
.aftercare .stats-grid strong {
  background: linear-gradient(120deg, #ffffff 20%, #9ff0f2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.aftercare .stats-grid li > div > span { color: #9fb9c7; }
.aftercare .stat-seal, .aftercare .stat-trophy, .aftercare .stat-leaf { background: #ffffff0f; box-shadow: inset 0 0 0 1px #ffffff26; color: #6fe0ec; }
.aftercare .stats-grid li + li::before { background: linear-gradient(#ffffff00, #ffffff2e, #ffffff00); }

/* ---------- FAQ ---------- */
.aftercare .ac-faq {
  background:
    linear-gradient(90deg, #ffffff00 30%, #ffffffb3 50%, #ffffffcc 89%, #ffffff00 100%),
    linear-gradient(180deg, #ffffff00 65%, #fff 100%) center top / 100% calc(100vw * 2 / 3) no-repeat,
    #fff url('assets/aftercare/faq-foliage-vibrant-green.png') center top / 100% auto no-repeat;
}
.aftercare .ac-faq .ac-container::after {
  content: "✦  Trusted by 500+ Perth clients";
  grid-column: 1; grid-row: 1 / 3; align-self: end; justify-self: start; z-index: 1;
  margin: 0 0 24px 24px; padding: 14px 20px; border-radius: 16px;
  background: #ffffffe6; border: 1px solid #ffffff; box-shadow: 0 18px 40px -18px #0a3a5a66;
  font: 700 14px/1.2 Montserrat, Arial, sans-serif; color: #04304d;
}
.aftercare .faq-question { transition: background .3s, color .3s; }
.aftercare .faq-question:hover { background: #f5fbfc; }
.aftercare .faq-item.is-open {
  background: linear-gradient(180deg, #f2fbfc, #fff 70%);
  box-shadow: inset 3px 0 0 #00a3b8, 0 22px 44px -26px #0a3a5a55;
}

/* ---------- Closing CTA ---------- */
.aftercare .closing-cta {
  background: #fff url('assets/aftercare/quote-foliage-vibrant-green.png') center / cover no-repeat;
}
.aftercare .closing-cta-inner {
  position: relative; border: 1px solid #ffffff1a;
  background:
    radial-gradient(35% 80% at 88% 15%, #00c4c938 0, transparent 70%),
    radial-gradient(45% 90% at 5% 110%, #007f9e4d 0, transparent 70%),
    linear-gradient(100deg, #021d33f7 0%, #03304cea 58%, #043a5ab0 100%),
    url('assets/aftercare/quote-room-bg.png') center/cover no-repeat;
  box-shadow: 0 50px 90px -40px #021d33b0;
}
.aftercare .closing-cta-copy::before {
  content: "✦  GET STARTED TODAY"; display: inline-flex; margin-bottom: 18px; padding: 8px 16px;
  border: 1px solid #ffffff2e; border-radius: 999px; background: #ffffff10;
  font: 700 11px/1 Lato, Arial, sans-serif; letter-spacing: .24em; color: #8ff3f1;
}
.aftercare .closing-cta-copy h2 span {
  background: linear-gradient(100deg, #5fe9f0, #a8f5e9); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.aftercare .closing-quote, .aftercare .footer-column #newsletter-form > button { position: relative; overflow: hidden; }
.aftercare .closing-quote::after, .aftercare .footer-column #newsletter-form > button::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, #ffffff70, transparent); skew: -20deg;
  transition: left .8s cubic-bezier(.22,1,.36,1); pointer-events: none;
}
.aftercare .closing-quote:hover::after, .aftercare .footer-column #newsletter-form > button:hover::after { left: 130%; }
.aftercare .closing-call { transition: background .3s, border-color .3s; }
.aftercare .closing-call:hover { background: #ffffff1f; border-color: #ffffff4d; }

/* ---------- Footer: deep luxury ---------- */
.aftercare .site-footer {
  position: relative; overflow: hidden;
  background:
    radial-gradient(50% 45% at 12% 0%, #0b5676 0, transparent 70%),
    radial-gradient(40% 35% at 100% 8%, #06425d 0, transparent 70%),
    linear-gradient(180deg, #021d33 0%, #011627 62%, #01162700 90%),
    #011627 url('assets/aftercare/footer-water-bg.png') center bottom / 100% auto no-repeat;
}
.aftercare .site-footer::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent, #5fe3ec 50%, transparent);
}
.aftercare .site-footer::after {
  content: "FRESHER"; position: absolute; left: 50%; bottom: clamp(40px, 5vw, 80px); translate: -50% 0;
  font: 900 clamp(90px, 17vw, 260px)/.8 Montserrat, Arial, sans-serif; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px #ffffff0b; white-space: nowrap; pointer-events: none;
}
.aftercare .footer-grid, .aftercare .footer-bottom { position: relative; z-index: 1; }
.aftercare .footer-brand-column { align-self: center; }
.aftercare .footer-newsletter {
  margin-bottom: 48px; padding: 32px 36px !important;
  border: 1px solid #ffffff1c !important; border-radius: 24px;
  background: linear-gradient(140deg, #ffffff14, #ffffff05);
  box-shadow: inset 0 1px 0 #ffffff1a, 0 30px 60px -36px #000a;
}
.aftercare .footer-newsletter > p { color: #e2eef4; font-size: 17px; }
.aftercare .footer-column ul a, .aftercare .footer-column li button { display: inline-block; transition: color .25s, translate .3s cubic-bezier(.22,1,.36,1); }
.aftercare .footer-column ul a:hover, .aftercare .footer-column li button:hover { translate: 5px 0; }
.aftercare .footer-column .footer-socials button:hover { background: linear-gradient(140deg, #00a7b8, #00708f); box-shadow: 0 10px 22px -8px #00c4c9a0; }
.aftercare .footer-bottom { border-top-color: #ffffff14; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .aftercare .closing-cta {
    background-image: url('assets/aftercare/quote-foliage-vibrant-green.png'), url('assets/aftercare/quote-foliage-vibrant-green.png');
    background-position: center top, center bottom;
    background-size: 150% auto;
    background-repeat: no-repeat;
  }
  .aftercare .review-card:nth-child(2) { padding-block: 34px 30px; }
  .aftercare .stats-grid { padding: 28px 8px; }
  .aftercare .stats-grid li { gap: 10px; padding: 0 8px; }
  .aftercare .stat-seal { width: 42px; height: 42px; }
  .aftercare .stats-grid strong { font-size: 24px; }
  .aftercare .stats-grid strong.stat-eco { font-size: 14.5px; letter-spacing: -.3px; }
  .aftercare .ac-faq .ac-container::after { grid-row: 2; margin: 0 0 40px 16px; font-size: 13px; padding: 12px 16px; }
  .aftercare .site-footer {
    background:
      radial-gradient(70% 30% at 10% 0%, #0b5676 0, transparent 70%),
      linear-gradient(180deg, #021d33 0%, #011627 80%, #01162700 96%),
      #011627 url('assets/aftercare/footer-water-bg.png') center bottom / 220% auto no-repeat;
  }
  .aftercare .site-footer::after { display: none; }
  .aftercare .footer-newsletter { margin: 40px 0 8px; padding: 26px 22px !important; }
  .aftercare .footer-newsletter > p { font-size: 15.5px; }
  .js-reveal .rv.rv-left:not(.in), .js-reveal .rv.rv-right:not(.in) { translate: 0 40px; }
}

/* Mobile: keep the testimonial foliage readable (full-width image is only ~130px tall on phones) */
@media (max-width: 900px) {
  .aftercare .client-stories {
    background:
      linear-gradient(180deg, #f7fbfc00 45%, #f7fbfc 100%) center top / 100% calc(150vw / 3) no-repeat,
      #f7fbfc url('assets/aftercare/testimonials-foliage-vibrant-green.png') center top / 150% auto no-repeat;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .to-top { transition: none; }
}
