/* Purely Polished Cleaning Ltd — styling sampled directly from supplied brand flyers.
   Palette pulled with PIL from the source JPEGs, not invented:
     background #d9d9d9, purple #3d2557, body text #3a3a3a,
     bubble accent #ade5f4, sparkle accent #e4c692 */

:root {
  --bg: #d9d9d9;
  --bg-panel: #e6e5e2;
  --purple: #3d2557;
  --purple-dark: #2c1a40;
  --ink: #3a3a3a;
  --bubble: #ade5f4;
  --sparkle: #e4c692;
  --white: #fdfdfc;
  --radius: 18px;
  --max-width: 1120px;
  --space: clamp(1rem, 2vw, 1.75rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Anton', 'Quicksand', sans-serif;
  text-transform: uppercase;
  color: var(--purple);
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0;
}

a { color: inherit; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space);
}

/* Skip link for keyboard/screen-reader users */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--purple);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Screen-reader-only: unlike .skip-link, never becomes visible — used for
   status text (e.g. carousel slide announcements) with nothing to focus. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Scroll progress bar ---------- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--bubble), var(--sparkle));
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 200;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  #scroll-progress { display: none; }
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(217, 217, 217, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(61, 37, 87, 0.12);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: 'Anton', sans-serif;
  color: var(--purple);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.nav-brand-icon {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--purple);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a:not(.nav-cta) {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--purple);
  position: relative;
  padding: 0.25rem 0;
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--purple);
  transition: right 0.25s ease;
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta):focus-visible::after { right: 0; }

/* Compound selector (.nav-links a.nav-cta) deliberately outweighs ".nav-links a"
   above (class+element beats a single class) — without it, that rule's
   padding: 0.25rem 0 wins on specificity and squashes this pill flat. */
.nav-links a.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--purple);
  color: var(--white) !important;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: transform 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.nav-links a.nav-cta:hover, .nav-links a.nav-cta:focus-visible {
  background: var(--purple-dark);
  transform: translate(var(--mx, 0px), calc(var(--my, 0px) - 1px));
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--purple);
  margin: 5px 0;
  transition: 0.2s;
}

/* ---------- Decorative bubbles / sparkle (recreated in CSS from the logo motif, not new imagery) ---------- */
.motif { position: absolute; pointer-events: none; z-index: 0; }
.bubble {
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffff 0%, var(--bubble) 38%, rgba(173,229,244,0.35) 75%, transparent 100%);
}
.sparkle {
  width: 34px; height: 34px;
  background: var(--sparkle);
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  opacity: 0.9;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) var(--space) clamp(3.5rem, 8vw, 7rem);
  text-align: center;
}

/* Split hero (index.html only — contact.html's compact hero has no .hero-grid
   wrapper, so it's untouched by any of this and stays centred/single-column). */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 4rem);
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero-content { position: relative; z-index: 1; }
.hero-photo { position: relative; z-index: 1; }
.hero-photo img {
  display: block;
  width: 100%;
  /* The HTML width/height attributes (needed so the browser can reserve layout
     space before the image loads) implicitly set a UA-stylesheet height in
     pixels — without this explicit height: auto to clear that, it wins over
     aspect-ratio below (both otherwise-competing values are "definite", so
     aspect-ratio has nothing left to resolve) and the image renders at its
     raw attribute height instead of a cropped 4:5 box. */
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: 560px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(61, 37, 87, 0.18);
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; text-align: left; }
  /* .hero-tagline/.hero-sub/.hero-logo default to margin: ... auto ... for the
     centred, photo-less contact.html hero — overridden here, scoped to the
     split layout only, so that page is unaffected. */
  .hero-content .hero-logo { margin-left: 0; }
  .hero-content .hero-tagline { margin-left: 0; margin-right: 0; }
  .hero-content .hero-sub { margin-left: 0; margin-right: 0; }
  .hero-content .hero-ctas { justify-content: flex-start; }
}
.hero .bubble.b1 { width: 90px; height: 90px; top: 8%; right: 12%; animation: float 7s ease-in-out infinite; }
.hero .bubble.b2 { width: 46px; height: 46px; top: 22%; right: 6%; animation: float 6s ease-in-out infinite 0.6s; }
.hero .bubble.b3 { width: 30px; height: 30px; top: 32%; right: 20%; animation: float 5.5s ease-in-out infinite 1.1s; }
.hero .sparkle.s1 { top: 14%; left: 10%; animation: twinkle 3.4s ease-in-out infinite; }
.hero .sparkle.s2 { width: 20px; height: 20px; top: 60%; left: 6%; animation: twinkle 3.4s ease-in-out infinite 1s; }

/* The motifs above were tuned for a wide, centred single column — .hero-logo
   now sits left-aligned and nearly fills .hero-content's width at >=900px,
   leaving only a narrow strip clear to its right. Their default top/right/left
   percentages would land several of them squarely on top of the logo text at
   this width, so this override (same specificity as the rules above — it has
   to come AFTER them in source order to win the tie, a media query alone
   doesn't outrank an unconditional rule of equal specificity) moves the
   survivors into that strip and drops the rest rather than cram five
   decorations into a space that only comfortably fits two. */
@media (min-width: 900px) {
  .hero-content .bubble.b1 { width: 44px; height: 44px; top: 2%; right: 2%; }
  .hero-content .bubble.b2 { width: 26px; height: 26px; top: 22%; right: -4%; }
  .hero-content .bubble.b3, .hero-content .sparkle.s1, .hero-content .sparkle.s2 { display: none; }
}

/* --parallax-y is written by main.js on scroll (defaults to 0px so these keyframes
   are identical to before if JS never runs); the float/twinkle bob composes on top
   of it rather than fighting it, since both live inside the same transform value. */
@keyframes float {
  0%, 100% { transform: translateY(var(--parallax-y, 0px)); }
  50% { transform: translateY(calc(var(--parallax-y, 0px) - 14px)); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.55; transform: translateY(var(--parallax-y, 0px)) scale(0.9); }
  50% { opacity: 1; transform: translateY(var(--parallax-y, 0px)) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .bubble, .sparkle { animation: none !important; }
}

.hero-logo { max-width: min(420px, 80vw); height: auto; position: relative; z-index: 1; margin: 0 auto; }

/* Hero entrance — scoped to .js so content is never hidden if JavaScript doesn't
   run (main.js adds .hero-ready two frames after paint; see the comment there). */
.js .hero-logo, .js .hero-tagline, .js .hero-sub, .js .hero-ctas {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.js .hero.hero-ready .hero-logo { opacity: 1; transform: none; transition-delay: 0.05s; }
.js .hero.hero-ready .hero-tagline { opacity: 1; transform: none; transition-delay: 0.22s; }
.js .hero.hero-ready .hero-sub { opacity: 1; transform: none; transition-delay: 0.36s; }
.js .hero.hero-ready .hero-ctas { opacity: 1; transform: none; transition-delay: 0.48s; }
/* The photo gets its own scale+fade rather than the text's translateY — a
   distinct entrance for what's meant to read as the hero's visual moment,
   same easing/duration family as everything else for consistency. */
.js .hero-photo {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.js .hero.hero-ready .hero-photo { opacity: 1; transform: none; transition-delay: 0.25s; }
@media (prefers-reduced-motion: reduce) {
  .js .hero-logo, .js .hero-tagline, .js .hero-sub, .js .hero-ctas, .js .hero-photo {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.hero-compact { padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.hero-compact .hero-tagline { margin-top: 0; }

.hero-tagline {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  color: var(--purple);
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  margin: 1.5rem auto 0.75rem;
  position: relative;
  z-index: 1;
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto 2.2rem;
  color: var(--ink);
  font-size: 1.08rem;
  position: relative;
  z-index: 1;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

/* --mx/--my are written by main.js on mousemove (magnetic pull, desktop pointer
   only, defaults to 0px) — every state below composes through this one transform
   rather than each declaring its own, so the magnetic pull and the hover-lift never
   fight over the transform property. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(61, 37, 87, 0.25);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--purple-dark);
  transform: translate(var(--mx, 0px), calc(var(--my, 0px) - 2px));
  box-shadow: 0 12px 26px rgba(61, 37, 87, 0.32);
}
.btn-secondary {
  background: transparent;
  color: var(--purple);
  border: 2px solid var(--purple);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  background: var(--purple);
  color: var(--white);
  transform: translate(var(--mx, 0px), calc(var(--my, 0px) - 2px));
}
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Sections ---------- */
section { padding: clamp(3.5rem, 9vw, 6.5rem) var(--space); position: relative; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(2.25rem, 6vw, 3.5rem); }
.section-eyebrow {
  display: block;
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  color: var(--purple);
  opacity: 0.65;
  margin-bottom: 0.4rem;
}
.section-head h2 { font-size: clamp(1.5rem, 3.6vw, 2.3rem); }
.section-head p { margin-top: 0.85rem; font-size: 1.02rem; }

.panel { background: var(--bg-panel); }

/* Why we started */
.why-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: 0 18px 40px rgba(61, 37, 87, 0.08);
  text-align: center;
}
.why-card p { font-size: 1.08rem; margin: 0 0 1rem; }
.why-card p:last-child { margin-bottom: 0; }
.why-card .punchline {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  color: var(--purple);
  font-size: 1.1rem;
}

/* Services */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
/* --rx/--ry (tilt, written on mousemove) and --card-y (hover lift / reveal offset,
   written by :hover and by the .reveal machinery below) compose through this one
   transform so none of the three sources of movement can silently override another —
   the exact bug class already found and fixed twice elsewhere on this site. */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 14px 30px rgba(61, 37, 87, 0.07);
  transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--card-y, 0px));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover {
  --card-y: -8px;
  box-shadow: 0 20px 40px rgba(61, 37, 87, 0.14);
}
.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}
.card p { margin: 0; font-size: 0.98rem; }
.card.card-new {
  background: var(--purple);
  color: var(--white);
}
.card.card-new h3, .card.card-new .badge { color: var(--sparkle); }
.card.card-new p { color: rgba(255,255,255,0.9); }
.badge {
  display: inline-block;
  font-family: 'Anton', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Real-homes photo gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(61, 37, 87, 0.1);
  /* Same --card-y composition as .area-chip, for the same reason: a plain
     :hover transform here would be silently cancelled the instant the
     section reveals, by .js .reveal.in-view .gallery-item's higher
     specificity — see the long comment on that rule further down. */
  transform: translateY(var(--card-y, 0px));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:hover { --card-y: -8px; box-shadow: 0 22px 44px rgba(61, 37, 87, 0.2); }
.gallery-item img {
  display: block;
  width: 100%;
  /* See .hero-photo img above — same fix, same reason. */
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Difference strip */
.diff-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.diff-item {
  flex: 0 1 190px;
  padding: 1.5rem 1rem;
  border-radius: var(--radius);
  transform: translateY(var(--card-y, 0px));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.diff-item:hover { --card-y: -8px; }
.diff-item .glyph {
  margin: 0 auto 1.1rem;
  display: grid;
  place-items: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.diff-item:hover .glyph { transform: scale(1.1); }
.glyph-emoji {
  font-size: 3.25rem;
  line-height: 1;
}
.diff-item h3 { font-size: 1.2rem; letter-spacing: 0.01em; }

/* Areas */
.area-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  max-width: 760px;
  margin: 0 auto;
}
.area-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--white);
  border: 1.5px solid rgba(61, 37, 87, 0.18);
  color: var(--purple);
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  /* translateY(var(--card-y)) rather than a literal translateY(18px)/translateY(0)
     pair, so :hover (below) can compose through the same custom property the
     reveal system uses instead of fighting it for the transform property — the
     exact specificity bug already fixed twice elsewhere on this site. */
  transform: translateY(var(--card-y, 0px));
  /* Declared here, at single-class specificity, rather than on the .js .reveal
     compound selector below — so .area-chip:nth-child(N)'s transition-delay
     (same specificity family as .card's, which relies on the same pattern)
     isn't reset back to 0s by a higher-specificity transition shorthand. */
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}
.area-chip:hover { --card-y: -3px; border-color: rgba(61, 37, 87, 0.4); }
.area-chip svg { width: 16px; height: 16px; }
.area-note { text-align: center; margin-top: 1.5rem; font-size: 0.92rem; opacity: 0.8; }
.area-note a { color: var(--purple); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* Testimonials carousel */
.review-carousel {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 640px;
  margin: 0 auto;
}
.review-track-wrap { flex: 1; overflow: hidden; }
.review-track {
  display: flex;
  transition: transform 0.4s ease;
}
.review-card {
  flex: 0 0 100%;
  background: var(--purple);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  box-sizing: border-box;
}
.review-card p.quote {
  font-style: italic;
  font-size: 1.05rem;
  margin: 0 0 1rem;
}
.review-card .who {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  color: var(--sparkle);
  font-size: 0.9rem;
}
.carousel-arrow {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(61, 37, 87, 0.25);
  background: var(--white);
  color: var(--purple);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-arrow svg { width: 20px; height: 20px; }
.carousel-arrow:hover, .carousel-arrow:focus-visible {
  background: var(--purple);
  color: var(--white);
  transform: scale(1.06);
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.5rem;
}
.carousel-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(61, 37, 87, 0.25);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-dot.active { background: var(--purple); transform: scale(1.25); }
@media (max-width: 560px) {
  .review-carousel { gap: 0.5rem; }
  .carousel-arrow { width: 36px; height: 36px; }
}

/* About / personal */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.about-grid p { font-size: 1.05rem; }
.stat-row {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin: 1.5rem 0 0;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat strong {
  display: block;
  font-family: 'Anton', sans-serif;
  color: var(--purple);
  font-size: 1.8rem;
}
.stat span { font-size: 0.85rem; opacity: 0.75; }

/* Contact / footer */
.contact {
  background: var(--purple);
  color: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
  margin-top: 1rem;
}
.contact .section-head h2, .contact .section-eyebrow { color: var(--white); }
.contact .section-head p { color: rgba(255,255,255,0.85); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.contact-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  padding: 1.6rem;
  text-align: center;
  /* See .area-chip's own rule above for why this lives here and not on the
     .js .reveal compound selector below. */
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.contact-card a {
  text-decoration: none;
  font-weight: 700;
  color: var(--sparkle);
  word-break: break-word;
}
.contact-card h3 { color: var(--white); font-size: 1rem; margin-bottom: 0.6rem; }
.contact-card svg { width: 26px; height: 26px; margin-bottom: 0.6rem; color: var(--sparkle); }

.site-footer {
  background: var(--purple-dark);
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 1.4rem var(--space);
  font-size: 0.85rem;
}
.site-footer a { color: var(--sparkle); text-decoration: none; }

/* Get-a-quote page: plain WhatsApp / email cards, no form */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  max-width: 780px;
  margin: 0 auto;
}
.quote-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 2.75rem) 1.75rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(61, 37, 87, 0.08);
  transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--card-y, 0px));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.quote-card:hover, .quote-card:focus-visible {
  --card-y: -8px;
  box-shadow: 0 24px 48px rgba(61, 37, 87, 0.16);
}
.quote-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  display: grid;
  place-items: center;
  margin-bottom: 0.5rem;
}
.quote-icon svg { width: 30px; height: 30px; }
.quote-card h2 {
  font-size: 1.3rem;
  margin: 0;
}
.quote-card p { margin: 0; font-weight: 600; }
.quote-cta {
  margin-top: 0.5rem;
  font-weight: 700;
  color: var(--purple);
  font-size: 0.92rem;
}

/* Floating WhatsApp CTA */
.float-cta {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  background: var(--purple);
  color: var(--white);
  border-radius: 999px;
  padding: 0.85rem 1.3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(61, 37, 87, 0.35);
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: transform 0.2s ease;
}
.float-cta:hover { transform: translate(var(--mx, 0px), calc(var(--my, 0px) - 3px)); }
.float-cta svg { width: 20px; height: 20px; }

/* ---------- Responsive nav ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem var(--space) 1.6rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(61,37,87,0.12);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links .nav-cta { margin-top: 0.4rem; }
}

@media (max-width: 480px) {
  .float-cta span { display: none; }
  .float-cta { padding: 0.9rem; }
}

/* Scroll reveal — scoped to .js (set by a blocking inline script in <head>) so
   content is never hidden if JavaScript never runs to add .in-view. Without this
   scoping, a JS failure would leave most of the page's content at opacity:0
   permanently — the same trap the hero entrance above already avoids. */
.js .reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.js .reveal.in-view {
  opacity: 1;
  transform: none;
}

/* Per-item staggered entrance for grids inside a .reveal section — cards, badges
   and chips settle in one after another instead of appearing as one flat block.
   .card/.diff-item/.quote-card already compose their transform through --card-y
   (see their own rules above) so this only ever adds an opacity fade + a starting
   --card-y offset; .area-chip/.contact-card have no other transform to conflict with.
   No `transition` here deliberately — .area-chip/.contact-card declare their own
   (see those rules) at single-class specificity, same as .card/.diff-item/.quote-card
   do, so .*-chip/-card:nth-child(N)'s transition-delay below isn't reset to 0s by
   a higher-specificity shorthand. That was a real (now-fixed) bug: this selector's
   3-class specificity used to carry the transition shorthand, which unconditionally
   wins over :nth-child(N)'s 1-class-1-pseudo specificity regardless of source order —
   so every chip/contact-card's stagger delay silently evaluated to 0s. */
.js .reveal .card, .js .reveal .diff-item, .js .reveal .quote-card, .js .reveal .area-chip, .js .reveal .gallery-item { opacity: 0; --card-y: 18px; }
.js .reveal .contact-card {
  opacity: 0;
  transform: translateY(18px);
}
.js .reveal.in-view .card,
.js .reveal.in-view .diff-item,
.js .reveal.in-view .quote-card,
.js .reveal.in-view .area-chip,
.js .reveal.in-view .gallery-item {
  opacity: 1;
  --card-y: 0px;
}
/* .js .reveal.in-view .card (4 classes) outweighs plain .card:hover (1 class +
   pseudo) on specificity alone, regardless of source order — without these,
   revealing a section would silently cancel the hover lift on every card, diff
   badge, chip, quote card and gallery photo the moment it comes into view.
   Same bug class as the nav-cta and .contact-form .btn fixes earlier in this
   project; fixed the same way. */
.js .reveal.in-view .card:hover,
.js .reveal.in-view .diff-item:hover,
.js .reveal.in-view .quote-card:hover,
.js .reveal.in-view .quote-card:focus-visible,
.js .reveal.in-view .gallery-item:hover {
  --card-y: -8px;
}
.js .reveal.in-view .area-chip:hover {
  --card-y: -3px;
}
.js .reveal.in-view .contact-card {
  opacity: 1;
  transform: translateY(0);
}

/* Fixed nth-child stagger delays — covers every grid on the site (largest is Areas
   We Cover at 7 chips) without needing per-element markup or JS-driven indices. */
.card:nth-child(1), .diff-item:nth-child(1), .area-chip:nth-child(1), .contact-card:nth-child(1), .quote-card:nth-child(1), .gallery-item:nth-child(1) { transition-delay: 0.03s; }
.card:nth-child(2), .diff-item:nth-child(2), .area-chip:nth-child(2), .contact-card:nth-child(2), .quote-card:nth-child(2), .gallery-item:nth-child(2) { transition-delay: 0.11s; }
.card:nth-child(3), .diff-item:nth-child(3), .area-chip:nth-child(3), .contact-card:nth-child(3), .gallery-item:nth-child(3) { transition-delay: 0.19s; }
.card:nth-child(4), .area-chip:nth-child(4) { transition-delay: 0.27s; }
.area-chip:nth-child(5) { transition-delay: 0.35s; }
.area-chip:nth-child(6) { transition-delay: 0.43s; }
.area-chip:nth-child(7) { transition-delay: 0.51s; }

/* The stagger delays above are declared unconditionally on the element (not
   scoped to only the .in-view reveal transition), so without this they'd
   also apply to every later hover — e.g. the 7th area chip would wait 0.51s
   before its hover lift even started moving, forever, not just at page load.
   Equal specificity to the rules above (1 class + 1 pseudo each), so this has
   to stay positioned after them to win the source-order tie. */
.card:hover, .diff-item:hover, .area-chip:hover, .contact-card:hover,
.quote-card:hover, .quote-card:focus-visible, .gallery-item:hover {
  transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .card, .js .diff-item, .js .area-chip, .js .contact-card, .js .quote-card, .js .gallery-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
