/* ============ Sofa Cleaning page (/sofa-cleaning) ============ */

/* ---- Hero: moving gradient + rising foam bubbles ---- */
.sofa-hero { position: relative; overflow: hidden; color: #fff; padding: 56px 0 96px;
  background: linear-gradient(125deg, #063526, #0e7c5a 45%, #13a376 70%, #0a5c43);
  background-size: 260% 260%; animation: sofaGrad 16s ease-in-out infinite; }
.sofa-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C 240 80 480 0 720 30 S 1200 70 1440 25 V70 H0Z' fill='%23ffffff'/%3E%3C/svg%3E") bottom/100% 100% no-repeat; }
@keyframes sofaGrad { 0%, 100% { background-position: 0% 40%; } 50% { background-position: 100% 60%; } }
.sofa-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.15; margin: 14px 0 12px; }
.sofa-hero .lead { color: rgba(255,255,255,.88); }
.sofa-hero-text > * { animation: sofaUp .8s cubic-bezier(.2,.7,.2,1) both; }
.sofa-hero-text > *:nth-child(2) { animation-delay: .08s; } .sofa-hero-text > *:nth-child(3) { animation-delay: .16s; }
.sofa-hero-text > *:nth-child(4) { animation-delay: .24s; } .sofa-hero-text > *:nth-child(5) { animation-delay: .32s; }
@keyframes sofaUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.sofa-pill { display: inline-flex; gap: 6px; align-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  padding: 6px 14px; border-radius: 30px; font-size: .9rem; backdrop-filter: blur(4px); }
.sofa-shine { background: linear-gradient(90deg, #ffd66b, #fff 40%, #ffb703 60%, #ffd66b); background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: sofaShine 4.5s linear infinite; }
@keyframes sofaShine { to { background-position: -220% center; } }
.sofa-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.sofa-badges span { background: rgba(0,0,0,.18); border-radius: 30px; padding: 6px 13px; font-size: .9rem; }
.sofa-badges i { color: #ffd66b; margin-right: 3px; }
.sofa-pulse { position: relative; }
.sofa-pulse::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid #ffb703; animation: sofaPulse 2s ease-out infinite; pointer-events: none; }
@keyframes sofaPulse { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.18, 1.35); } }

.sofa-bubbles span { position: absolute; bottom: -60px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), rgba(255,255,255,.08) 60%, transparent 70%);
  border: 1px solid rgba(255,255,255,.35); animation: sofaRise 14s linear infinite; }
.sofa-bubbles span:nth-child(1)  { left: 4%;  width: 28px; height: 28px; animation-duration: 13s; }
.sofa-bubbles span:nth-child(2)  { left: 11%; width: 14px; height: 14px; animation-duration: 9s;  animation-delay: 2s; }
.sofa-bubbles span:nth-child(3)  { left: 19%; width: 40px; height: 40px; animation-duration: 17s; animation-delay: 4s; }
.sofa-bubbles span:nth-child(4)  { left: 27%; width: 18px; height: 18px; animation-duration: 11s; animation-delay: 1s; }
.sofa-bubbles span:nth-child(5)  { left: 35%; width: 22px; height: 22px; animation-duration: 15s; animation-delay: 6s; }
.sofa-bubbles span:nth-child(6)  { left: 43%; width: 12px; height: 12px; animation-duration: 10s; animation-delay: 3s; }
.sofa-bubbles span:nth-child(7)  { left: 51%; width: 34px; height: 34px; animation-duration: 18s; animation-delay: 7s; }
.sofa-bubbles span:nth-child(8)  { left: 59%; width: 16px; height: 16px; animation-duration: 12s; animation-delay: 5s; }
.sofa-bubbles span:nth-child(9)  { left: 67%; width: 26px; height: 26px; animation-duration: 14s; animation-delay: 2.5s; }
.sofa-bubbles span:nth-child(10) { left: 75%; width: 10px; height: 10px; animation-duration: 9s;  animation-delay: 8s; }
.sofa-bubbles span:nth-child(11) { left: 82%; width: 36px; height: 36px; animation-duration: 16s; animation-delay: 1.5s; }
.sofa-bubbles span:nth-child(12) { left: 89%; width: 20px; height: 20px; animation-duration: 12s; animation-delay: 4.5s; }
.sofa-bubbles span:nth-child(13) { left: 95%; width: 14px; height: 14px; animation-duration: 10s; animation-delay: 6.5s; }
.sofa-bubbles span:nth-child(14) { left: 47%; width: 24px; height: 24px; animation-duration: 20s; animation-delay: 9s; }
@keyframes sofaRise { 0% { transform: translateY(0) translateX(0); opacity: 0; } 10% { opacity: 1; }
  50% { transform: translateY(-48vh) translateX(18px); } 90% { opacity: .8; } 100% { transform: translateY(-95vh) translateX(-12px); opacity: 0; } }

.sofa-hero-frame { border-radius: 22px; padding: 7px; background: rgba(255,255,255,.95); box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
  animation: sofaFloat 6s ease-in-out infinite, sofaUp 1s .2s cubic-bezier(.2,.7,.2,1) both; }
.sofa-hero-frame .ba-compare { border-radius: 16px; }
@keyframes sofaFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.sofa-drag-hint { text-align: center; color: rgba(255,255,255,.85); font-size: .9rem; margin: 14px 0 0; }

/* (before/after slider styles live in compare.css) */

/* ---- Stats strip ---- */
.sofa-stats { position: relative; z-index: 2; margin-top: -46px; }
.sofa-stat { background: #fff; border-radius: 16px; padding: 18px 10px; box-shadow: 0 16px 34px -18px rgba(6,53,38,.4); transition: transform .3s; }
.sofa-stat:hover { transform: translateY(-4px); }
.sofa-stat b, .sofa-stat > span { font-size: 2rem; font-weight: 800; background: linear-gradient(135deg, #0e7c5a, #13a376);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.sofa-stat > span { font-size: 1.2rem; }
.sofa-stat small { display: block; color: #62717d; margin-top: 2px; }

/* ---- Section bits ---- */
.sofa-kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--brand);
  background: var(--brand-light); padding: 5px 14px; border-radius: 30px; margin-bottom: 8px; }
.sofa-kicker.light { color: #ffd66b; background: rgba(255,255,255,.1); }

.sofa-card { background: #fff; border-radius: 18px; padding: 22px; border: 1px solid #e3eee9; transition: transform .35s, box-shadow .35s, border-color .35s; }
.sofa-card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -22px rgba(6,53,38,.45); border-color: #bfe3d6; }
.sofa-ic { width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
  font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, #0e7c5a, #13a376); box-shadow: 0 10px 20px -10px #0e7c5a; transition: transform .45s; }
.sofa-card:hover .sofa-ic { transform: rotate(-8deg) scale(1.08); }

/* ---- Process timeline (line fills when it scrolls into view) ---- */
.sofa-steps { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; text-align: center; }
.sofa-steps-line { position: absolute; left: 8%; right: 8%; top: 34px; height: 4px; background: #e3eee9; border-radius: 4px; }
.sofa-steps-line span { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #0e7c5a, #ffb703); transition: width 2.2s cubic-bezier(.4,0,.2,1); }
.sofa-steps.in-view .sofa-steps-line span { width: 100%; }
.sofa-step { position: relative; transition: opacity .6s var(--d), transform .6s var(--d); }
/* hidden only once sofa.js is running (.sofa-anim), so no-JS visitors & crawlers always see the steps */
.sofa-steps.sofa-anim:not(.in-view) .sofa-step { opacity: 0; transform: translateY(20px); }
.sofa-step-ic { position: relative; width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; background: #fff; border: 3px solid var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem; color: var(--brand); box-shadow: 0 10px 22px -12px rgba(6,53,38,.6); transition: background .3s, color .3s; }
.sofa-step:hover .sofa-step-ic { background: var(--brand); color: #fff; }
.sofa-step-ic em { position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; border-radius: 50%; background: #ffb703; color: #14202b;
  font-style: normal; font-weight: 800; font-size: .8rem; display: flex; align-items: center; justify-content: center; }
@media (max-width: 991.98px) {
  .sofa-steps { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .sofa-steps-line { display: none; }
}
@media (max-width: 575.98px) { .sofa-steps { grid-template-columns: repeat(2, 1fr); } }

/* ---- Fabric band ---- */
.sofa-fabric-band { background: linear-gradient(135deg, #063526, #0a5c43);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 20h40M20 0v40' stroke='%23ffffff' stroke-opacity='.05'/%3E%3C/svg%3E"), linear-gradient(135deg, #063526, #0a5c43); }
.sofa-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.sofa-chips span { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #fff; padding: 10px 16px; border-radius: 40px;
  font-weight: 600; transition: background .3s, transform .3s; }
.sofa-chips span:hover { background: #ffb703; color: #14202b; transform: translateY(-3px); }
.sofa-chips i { margin-right: 4px; }

.sofa-why { list-style: none; padding: 0; margin: 0; }
.sofa-why li { padding: 10px 0; border-bottom: 1px dashed #d6e5de; font-weight: 500; }
.sofa-why i { color: var(--brand); font-size: 1.2rem; margin-right: 8px; vertical-align: -2px; }
.sofa-quote { position: relative; overflow: hidden; border-radius: 22px; padding: 30px; background: linear-gradient(135deg, #0e7c5a, #063526); }
.sofa-quote > i { position: absolute; right: -10px; bottom: -24px; font-size: 9rem; color: rgba(255,255,255,.07); }
.sofa-price { color: #fff; font-size: 1.05rem; } .sofa-price strong { font-size: 2rem; color: #ffd66b; }

@media (prefers-reduced-motion: reduce) {
  .sofa-hero, .sofa-shine, .sofa-pulse::after, .sofa-bubbles span, .sofa-hero-frame, .sofa-hero-text > * { animation: none !important; }
  .sofa-step, .sofa-steps-line span { transition: none !important; }
}

/* centred section headings: centre the accent underline too */
.sofa-center .section-title:after { margin-left: auto; margin-right: auto; }
.bg-brand-light .sofa-kicker { background: #fff; }

/* ---- Hero Sofa / Carpet switch (sliding pill) ---- */
.sofa-switch { position: relative; display: flex; width: max-content; margin: 0 auto 14px; padding: 4px; border-radius: 40px;
  background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.25); }
.sofa-switch button { position: relative; z-index: 1; border: 0; background: none; color: rgba(255,255,255,.85); font-weight: 700;
  padding: 7px 20px; border-radius: 40px; min-width: 112px; transition: color .3s; }
.sofa-switch button.is-active { color: #0a5c43; }
.sofa-switch-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 40px; background: #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,.25); transition: transform .4s cubic-bezier(.3,1.4,.5,1); }
.sofa-switch.is-carpet .sofa-switch-pill { transform: translateX(100%); }
[data-hero-pane]:not([hidden]) { animation: sofaPaneIn .5s ease both; }
@keyframes sofaPaneIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

/* ---- Results tabs ---- */
.sofa-tabs { gap: 10px; }
.sofa-tabs .nav-link { border-radius: 40px; padding: 10px 22px; font-weight: 700; color: var(--brand); background: var(--brand-light);
  border: 2px solid transparent; transition: background .3s, color .3s, transform .3s; }
.sofa-tabs .nav-link:hover { transform: translateY(-2px); }
.sofa-tabs .nav-link.active { background: var(--brand); color: #fff; box-shadow: 0 10px 20px -10px var(--brand); }
.sofa-tabs .badge { background: rgba(0,0,0,.12); color: inherit; margin-left: 4px; }
.sofa-chip-head { color: #ffd66b; font-weight: 700; font-size: .85rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
