/* =====================================================================
   design-polish.css  —  UK Plumbing & Heating sales page
   Structure-preserving design corrections (2026-11-11).
   Loaded AFTER the main Tailwind build. Only colour, contrast, motion
   and icon-consistency are touched. No layout / section / DOM changes.
   Rollback: remove the <link> in index.html (backup in backups/design-fix-2026-11-11).
   ===================================================================== */

:root{
  /* Single deliberate action/value accent, tuned to the brand mustard and the
     guarantee seal (#DAA520 / #D4AF37 / #e8bb51). Blue stays the brand. */
  --mx-accent:        oklch(78% 0.13 88);   /* mustard-gold – CTAs, price on dark, savings */
  --mx-accent-hi:     oklch(85% 0.12 92);   /* metallic sheen (gradient top) */
  --mx-accent-lo:     oklch(70% 0.14 84);   /* deeper gold (gradient bottom / hover) */
  --mx-accent-strong: oklch(70% 0.14 84);
  --mx-accent-ink:    oklch(16% 0.045 252); /* navy text on gold (≈10:1) */
  --mx-check:         oklch(60% 0.16 150);  /* green checks / trust, matches the ✅ emoji */
}

/* 1) Clean, rounded Action Green CTAs aligned with checkout (P1.2). */
a.cta-link.cta-link{
  background:#16A34A !important;
  color:#FFFFFF !important;
  font-weight:800 !important;
  text-transform:uppercase !important;
  letter-spacing:0.02em !important;
  border-radius:0.75rem !important;
  box-shadow:0 4px 14px 0 rgba(22,163,74,.45), 0 2px 4px 0 rgba(0,0,0,.1) !important;
  border:1px solid rgba(255,255,255,.25) !important;
  animation:none !important;
  transition:transform .18s cubic-bezier(.16,1,.3,1), box-shadow .18s ease, filter .18s ease !important;
}
a.cta-link.cta-link:hover{
  background:#15803D !important;
  transform:translateY(-2px) scale(1.02) !important;
  filter:brightness(1.06) saturate(1.05) !important;
  box-shadow:0 6px 20px 0 rgba(22,163,74,.6) !important;
}
a.cta-link.cta-link:active{
  transform:translateY(0) scale(0.99) !important;
  filter:brightness(.96) !important;
}
a.cta-link.cta-link:focus-visible{
  outline:3px solid #16A34A !important;
  outline-offset:3px !important;
}

/* P1.1: Corrigir contraste de textos brancos sobre o fundo azul de #oferta (.mx-bg-5) */
.mx-bg-5 > p.text-white {
  color: #FFFFFF !important;
}

/* P1.1: Restaurar destaque dourado na palavra "maps" do título do carrossel */
.mx-bg-1 h2 span.text-brand-gold {
  color: var(--mx-accent) !important;
}

/* P1.2: Badges de acesso imediato e bônus no verde positivo alinhado ao checkout */
.bg-brand-green:not([class*="/10"]) {
  background-color: #15803D !important;
  color: #FFFFFF !important;
}

/* 3) Unify checkmarks. The same lists mixed green ✅ emoji with blue ✓ SVG.
      Bring the SVG checks to the same green as the emoji (positive signal),
      without affecting the price or the secure badge that share the class. */
svg.text-brand-green{ color:var(--mx-check) !important; }

/* 4) Fix the invisible price. On the dark "What you get" card the £27 was
      dark-blue on dark-navy (≈1.8:1). Make it gold so it reads clearly. */
.bg-brand-dark .mx-price{ color:var(--mx-accent) !important; }

/* 5) On the white offer card, make the £27 the dominant, maximum-contrast
      number; the gold savings pill + gold CTA carry the "deal" energy. */
#oferta .mx-price{ color:var(--mx-accent-ink) !important; }

/* 6) Turn the savings line into a gold pill so the offer pops on the white card. */
.mx-save{
  display:inline-block;
  background:var(--mx-accent);
  color:var(--mx-accent-ink) !important;
  padding:.4rem 1rem;
  border-radius:9999px;
  font-weight:800;
  letter-spacing:.02em;
}

/* 7) Unify the offer-section heading accent with the gold token
      (was a stray hard-coded lemon #fde047, inconsistent with other sections). */
.mx-bg-5 h2{ color:var(--mx-accent) !important; }

/* 8) Guarantee the small trust line under the mid-page CTA stays legible
      on the dark card. */
.bg-brand-dark p.text-white\/70{ color:rgba(255,255,255,.85) !important; }

/* 9) Value framing: the offer / what-you-get cards and their inner rules use
      border-brand-gold (light-blue). Bring the frame to the same mustard gold
      so frame + price + CTA + guarantee seal read as one coherent accent. */
.border-brand-gold{ border-color:var(--mx-accent) !important; }
.border-brand-gold\/40{ border-color:color-mix(in oklab, var(--mx-accent) 40%, transparent) !important; }

/* 10) Respect reduced-motion for the new hover transitions. */
@media (prefers-reduced-motion:reduce){
  a.cta-link.cta-link{ transition:none; }
  a.cta-link.cta-link:hover{ transform:none; }
}

/* 11) Mobile Carousels: manual swipe, hide cloned slides (P1.1). */
@media (max-width: 767px) {
  .mx-carr.animate-scroll-x {
    animation: none !important;
    transform: none !important;
    padding-inline: 1rem;
  }
  .mx-carr img[aria-hidden="true"] {
    display: none !important;
  }
  .mx-carr img[aria-hidden="false"] {
    scroll-snap-align: center;
  }
}

/* 12) Tap-to-Zoom Lightbox for Map Diagrams (P1.1). */
.map-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.map-lightbox-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.map-lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 96vw;
  max-height: 92vh;
}
.map-lightbox-img {
  max-width: 96vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  transform: scale(0.96);
  transition: transform 0.2s ease;
}
.map-lightbox-overlay.is-open .map-lightbox-img {
  transform: scale(1);
}
.map-lightbox-caption {
  margin-top: 0.625rem;
  color: #f1f5f9;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  max-width: 90vw;
  line-height: 1.35;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.map-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.18);
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  z-index: 100000;
  transition: background 0.15s ease;
}
.map-lightbox-close:hover {
  background: rgba(255,255,255,0.32);
}

/* 13) Sticky Mobile CTA Bar (P1.2). */
.sticky-mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: rgba(21, 24, 28, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(229, 168, 35, 0.4);
  padding: 0.625rem 1rem max(0.75rem, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transform: translateY(110%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.35);
}
.sticky-mobile-cta-bar.is-visible {
  transform: translateY(0);
}
.sticky-bar-price-col {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.sticky-bar-old-price {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  text-decoration: line-through;
}
.sticky-bar-main-price {
  font-size: 16px;
  font-weight: 900;
  color: #E5A823;
  letter-spacing: -0.01em;
}
.sticky-bar-cta-btn {
  background: #16A34A !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  padding: 0.65rem 1rem !important;
  border-radius: 0.75rem !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 10px rgba(22,163,74,0.5) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
}
.sticky-bar-cta-btn:hover {
  background: #15803D !important;
}

/* 14) Legal footer clearance on mobile (prevents sticky bar overlap) */
@media (max-width: 767px) {
  footer {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}

