/* ══════════════════════════════════════════════
   homepage-bottom-v1.css  v2
   Bottom-of-page UX overrides — non-breaking
   ══════════════════════════════════════════════ */

/* ── 2. Testimonials: 3-col grid ── */
.testimonials-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}
@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
  .testimonials-grid { grid-template-columns: 1fr !important; }
}

/* ── 3. Why-Fixeo section ── */
#why-fixeo-section .section-header p {
  font-size: .9rem;
  color: rgba(232,234,240,.52);
}

/* ── 4. SEO block: removed from DOM — no CSS needed ── */

/* ── 5. Footer: 4-col grid ── */
.footer-grid {
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Testimonial section-tag ── */
.testimonial-section .section-tag {
  background: rgba(52,211,153,.1);
  border-color: rgba(52,211,153,.2);
  color: rgba(52,211,153,.85);
}

/* ══════════════════════════════════════════════
   TASK 1 — FINAL CTA BLOCK
   Clean 5-step hierarchy
   ══════════════════════════════════════════════ */

.final-cta-section {
  padding: 72px 0 80px;
  background: linear-gradient(
    135deg,
    rgba(225,48,108,.08) 0%,
    rgba(131,58,180,.08) 100%
  );
  border-top: 1px solid rgba(255,255,255,.06);
}

.final-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/* 1. Title */
.final-cta-title {
  font-size: clamp(1.35rem, 2.8vw, 2rem) !important;
  font-weight: 900 !important;
  color: #fff !important;
  line-height: 1.2 !important;
  letter-spacing: -.02em !important;
  margin: 0 0 14px !important;
}

/* 2. Subtitle */
.final-cta-sub {
  font-size: .85rem;
  color: rgba(255,255,255,.42);
  margin: 0 0 28px;
  letter-spacing: .04em;
}

/* 3. Primary CTA — already styled by cta-main; just ensure layout */
.final-cta-primary {
  display: block !important;
  width: 100% !important;
  max-width: 380px !important;
  margin: 0 0 14px !important;
  font-size: 1rem !important;
  padding: 17px 28px !important;
  /* glow boost */
  box-shadow: 0 8px 30px rgba(225,48,108,.28) !important;
  transition: transform .15s, box-shadow .15s !important;
}
.final-cta-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 40px rgba(225,48,108,.40) !important;
}

/* 4. Secondary urgent CTA */
.final-cta-urgent {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 11px 26px !important;
  font-size: .88rem !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  border: 1.5px solid rgba(255,120,40,.38) !important;
  background: rgba(255,90,30,.09) !important;
  color: rgba(255,190,150,.88) !important;
  cursor: pointer !important;
  margin: 0 0 20px !important;
  transition: background .15s, border-color .15s !important;
  /* Reset btn-express overrides that may apply */
  position: static !important;
  width: auto !important;
  height: auto !important;
  border-radius: 12px !important;
  animation: none !important;
}
.final-cta-urgent:hover {
  background: rgba(255,90,30,.16) !important;
  border-color: rgba(255,120,40,.60) !important;
}

/* 5. Proof line */
.final-cta-proof {
  font-size: .78rem !important;
  color: rgba(255,255,255,.32) !important;
  margin: 0 !important;
  letter-spacing: .03em !important;
}

/* Mobile: full-width buttons + bottom padding clears FAB */
@media (max-width: 600px) {
  .final-cta-section {
    padding: 56px 16px 84px; /* extra bottom so FAB never covers proof line */
  }
  .final-cta-primary { max-width: 100% !important; }
  .final-cta-urgent  {
    width: 100% !important;
    justify-content: center !important;
  }
  .final-cta { gap: 0; }
}

/* ══════════════════════════════════════════════
   TASK 6 — REDUCED MOTION
   ══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  #fixeo-urgent-fab,
  .final-cta-urgent {
    animation: none !important;
    transition: none !important;
  }
}

/* ══════════════════════════════════════════════
   CENTERING HARDENING v3 — appended block
   Forces perfect horizontal centering of the
   final CTA block regardless of JS wrappers.
   Loads LAST via deferred media=print trick.
   ══════════════════════════════════════════════ */

/* Section + container: always full-width, centered */
.final-cta-section {
  width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: clip !important;
}
.final-cta-section .container {
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
  display: flex !important;
  justify-content: center !important;
}

/* .final-cta inner card: centered, no drift */
.final-cta {
  width: 100% !important;
  max-width: 560px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

/* JS-injected actions wrapper: stay centered */
.final-cta-actions {
  width: 100% !important;
  max-width: 400px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 12px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* All direct button children of .final-cta and .final-cta-actions */
.final-cta > button,
.final-cta-actions > button {
  width: 100% !important;
  max-width: 400px !important;
  box-sizing: border-box !important;
}

/* Paragraph elements (subtitle, proof, microtrust) always centered */
.final-cta > p,
.final-cta-actions + p {
  text-align: center !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Override any left-alignment from optimizer mobile rules */
@media (max-width: 768px) {
  .final-cta-section .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .final-cta {
    max-width: 100% !important;
    padding: 0 !important;
  }
  .final-cta-actions {
    max-width: 100% !important;
  }
  .final-cta > button,
  .final-cta-actions > button {
    max-width: 100% !important;
  }
}

/* ══════════════════════════════════════════════
   WhatsApp floating button override
   chat-toggle is now an <a> tag — reset link styles
   ══════════════════════════════════════════════ */
a.chat-toggle-wa {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  color: #fff !important;
  /* WhatsApp green tint */
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
  box-shadow: 0 4px 20px rgba(37,211,102,.40) !important;
  border: none !important;
}
a.chat-toggle-wa:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 6px 28px rgba(37,211,102,.55) !important;
}
a.chat-toggle-wa svg {
  fill: #fff !important;
  flex-shrink: 0;
}
/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  a.chat-toggle-wa { transition: none !important; }
}

/* ══════════════════════════════════════════════════════════════════════
   F-1: Footer Premium Redesign — Airbnb/Uber-level
   Append-only. Zero existing lines modified. Braces balanced.
   Loaded via deferred media=print trick → wins all cascade ties.
   ═══════════════════════════════════════════════════════════════════ */

/* ── F1-A: Footer wrapper — deeper glass, sharper border ── */
footer {
  padding: 48px 0 0 !important;
  background:
    radial-gradient(ellipse 80% 40% at 20% -10%, rgba(131,58,180,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(225,48,108,0.05) 0%, transparent 60%),
    rgba(8,8,18,0.98) !important;
  border-top: 1px solid rgba(255,255,255,0.09) !important;
}

/* ── F1-B: Trust badges — per-badge accent + L-2 consistency ── */
/* Strip gets 5 badges (was 4). Aligned with L-2 trust pill language. */
.v13-partners-row {
  gap: 8px !important;
  margin-bottom: 36px !important;
  padding-bottom: 28px !important;
}
/* Base: reset to slightly more refined */
.v13-partner-badge {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  padding: 6px 14px !important;
  color: rgba(255,255,255,0.62) !important;
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.09) !important;
  letter-spacing: 0.01em !important;
}
/* Per-badge accent — matches L-2 fxf-pill color system */
.v13-partner-badge.fpb-verified {
  border-color: rgba(251,211,141,0.16) !important;
}
.v13-partner-badge.fpb-payment {
  border-color: rgba(32,201,151,0.18) !important;
  color: rgba(32,201,151,0.82) !important;
}
.v13-partner-badge.fpb-available {
  border-color: rgba(32,201,151,0.20) !important;
  color: rgba(32,201,151,0.76) !important;
}
.v13-partner-badge.fpb-coverage {
  border-color: rgba(139,92,246,0.18) !important;
  color: rgba(192,168,255,0.80) !important;
}
.v13-partner-badge.fpb-secure {
  border-color: rgba(100,200,255,0.14) !important;
  color: rgba(180,230,255,0.70) !important;
}

/* ── F1-C: Footer grid — more breathing room + brand refinement ── */
.footer-grid {
  gap: 48px 40px !important;
  margin-bottom: 36px !important;
  align-items: start !important;
}

/* Brand desc — slightly more visible */
.footer-desc {
  font-size: 0.84rem !important;
  color: rgba(255,255,255,0.44) !important;
  line-height: 1.70 !important;
  max-width: 260px !important;
  margin-bottom: 20px !important;
}

/* Brand CTA — new class replaces footer-artisan-link */
/* Premium pill button — replaces the old plain link */
.footer-artisan-cta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 10px 16px !important;
  border-radius: 12px !important;
  background: rgba(225,48,108,0.09) !important;
  border: 1px solid rgba(225,48,108,0.22) !important;
  color: rgba(255,160,180,0.88) !important;
  font-size: 0.80rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: background 0.18s ease, border-color 0.18s ease !important;
  white-space: nowrap !important;
  letter-spacing: 0.01em !important;
}
.footer-artisan-cta:hover {
  background: rgba(225,48,108,0.16) !important;
  border-color: rgba(225,48,108,0.38) !important;
  color: rgba(255,180,200,0.96) !important;
}

/* ── F1-D: Column headers — premium treatment ── */
/* Reduce all-caps to track a bit; add accent underline */
.footer-links h4 {
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,0.52) !important;
  letter-spacing: 0.12em !important;
  margin-bottom: 18px !important;
  text-transform: uppercase !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}

/* ── F1-E: Footer links — premium row style ── */
/* Each link gets a micro-interaction: left border reveal on hover */
.footer-links li {
  margin-bottom: 0 !important;
}
.footer-links a {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 0.84rem !important;
  color: rgba(255,255,255,0.42) !important;
  text-decoration: none !important;
  padding: 7px 0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.035) !important;
  transition: color 0.18s ease, padding-left 0.18s ease !important;
  position: relative !important;
}
.footer-links li:last-child a {
  border-bottom: none !important;
}
.footer-links a::before {
  content: '›' !important;
  font-size: 0.90rem !important;
  color: rgba(255,255,255,0.20) !important;
  transition: color 0.18s ease, transform 0.18s ease !important;
  flex-shrink: 0 !important;
  margin-right: 2px !important;
}
.footer-links a:hover {
  color: rgba(255,255,255,0.82) !important;
  padding-left: 4px !important;
}
.footer-links a:hover::before {
  color: rgba(225,48,108,0.72) !important;
  transform: translateX(2px) !important;
}

/* ── F1-F: Footer bottom — cleaner divider + copyright ── */
.footer-bottom {
  padding: 16px 0 20px !important;
  border-top: 1px solid rgba(255,255,255,0.055) !important;
  font-size: 0.78rem !important;
  color: rgba(255,255,255,0.28) !important;
  margin-top: 8px !important;
}

/* ── F1-G: Mobile ≤ 768px footer ── */
@media (max-width: 768px) {
  footer {
    padding: 36px 0 0 !important;
  }
  .v13-partners-row {
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    mask-image: linear-gradient(to right, #000 80%, transparent 100%) !important;
    -webkit-mask-image: linear-gradient(to right, #000 80%, transparent 100%) !important;
    margin-bottom: 28px !important;
    padding-bottom: 20px !important;
  }
  .v13-partners-row::-webkit-scrollbar { display: none !important; }
  .v13-partner-badge {
    flex-shrink: 0 !important;
    font-size: 0.74rem !important;
    padding: 5px 12px !important;
  }
  .footer-grid {
    gap: 28px 24px !important;
  }
  .footer-desc {
    max-width: none !important;
    font-size: 0.82rem !important;
  }
  .footer-artisan-cta {
    font-size: 0.78rem !important;
    padding: 9px 14px !important;
  }
  .footer-links h4 {
    font-size: 0.72rem !important;
    margin-bottom: 12px !important;
  }
  .footer-links a {
    font-size: 0.82rem !important;
    padding: 6px 0 !important;
  }
}

/* ── F1-H: Very narrow ≤ 380px ── */
@media (max-width: 380px) {
  .v13-partner-badge {
    font-size: 0.70rem !important;
    padding: 5px 10px !important;
  }
  .footer-links a {
    font-size: 0.80rem !important;
  }
}
