/* ==========================================================================
   Nábytok na mieru — /nabytok-na-mieru/ (templates/pages/service-furniture.php)
   Uses the site tokens from style.css (--primary, --accent, --bg, fonts).
   ========================================================================== */

/* style.css sets html,body{overflow-x:hidden}, which turns <body> into a scroll
   container and silently disables position:sticky. `clip` prevents horizontal
   overflow the same way without creating a scroll container. The header keeps
   its usual non-sticky behaviour so this page matches the rest of the site. */
html:has(.furn-process), html:has(.furn-process) body { overflow-x: clip; }
html:has(.furn-process) .site-header { position: relative; }

.furn { --furn-ink: var(--band-ink, #111417); --furn-line: rgba(17, 20, 23, .14); --furn-ease: cubic-bezier(.2, .7, .2, 1); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.furn-hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(560px, 88vh, 900px); overflow: hidden; background: #2c2f33; color: #fff; isolation: isolate; }
.furn-hero__media img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; transform: scale(1.07); animation: furnSettle 2.6s var(--furn-ease) .05s forwards; }
.furn-hero__shade { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(24, 26, 29, .82) 0%, rgba(24, 26, 29, .55) 38%, rgba(24, 26, 29, .08) 72%),
    linear-gradient(0deg, rgba(24, 26, 29, .6) 0%, rgba(24, 26, 29, 0) 42%); }
.furn-hero__inner { position: relative; width: 100%; padding-top: 140px; padding-bottom: clamp(56px, 9vh, 104px); }
.furn-hero__crumbs { margin-bottom: clamp(40px, 8vh, 88px); }
.furn-hero__crumbs .breadcrumb a { color: rgba(255, 255, 255, .62); }
.furn-hero__crumbs .breadcrumb li, .furn-hero__crumbs .breadcrumb span { color: rgba(255, 255, 255, .85); }
.furn-hero .hero-eyebrow { display: block; margin-bottom: 18px; color: var(--accent); font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.furn-hero__title { max-width: 11ch; margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.7rem, 7.2vw, 6.2rem); line-height: .98; letter-spacing: -.012em; text-transform: uppercase; color: #fff; }
.furn-hero__lead { max-width: 34em; margin: 28px 0 0; font-size: clamp(1rem, 1.25vw, 1.18rem); line-height: 1.7; color: rgba(255, 255, 255, .8); }
.furn-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.furn-hero .btn-hero { padding: 17px 38px; }
.furn-hero .btn-hero--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.furn-hero .btn-hero--primary:hover { background: #b39c84; border-color: #b39c84; }
.furn-hero .btn-hero:active { transform: scale(.97); transition: transform .1s ease-out; }

.furn-rise { opacity: 0; transform: translateY(22px); animation: furnRise 1s var(--furn-ease) forwards; animation-delay: calc(.35s + var(--d, 0) * .12s); }
@keyframes furnSettle { to { transform: scale(1); } }
@keyframes furnRise { to { opacity: 1; transform: none; } }

/* ── Intro + facts ────────────────────────────────────────────────────── */
.furn-intro { padding: clamp(80px, 10vw, 136px) 0 clamp(64px, 8vw, 104px); background: #fff; }
.furn-intro__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 112px); align-items: start; }
.furn-intro__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.12; text-transform: uppercase; color: var(--primary); }
.furn-intro__text { font-size: clamp(1.05rem, 1.3vw, 1.22rem); line-height: 1.8; color: var(--body); }
.furn-intro__text p { margin: 0 0 1em; }
.furn-intro__text p:last-child { margin-bottom: 0; }
.furn a:not([class]) { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.furn-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(56px, 7vw, 96px) 0 0; border-top: 1px solid var(--border); }
.furn-fact { padding: 30px 24px 0; border-left: 1px solid var(--border); }
.furn-fact:first-child { padding-left: 0; border-left: 0; }
.furn-fact dt { font-family: var(--font-display); font-variant-numeric: lining-nums; font-size: clamp(2rem, 3.2vw, 2.9rem); line-height: 1; color: var(--primary); white-space: nowrap; }
.furn-fact dd { margin: 12px 0 0; max-width: 18ch; font-size: .95rem; line-height: 1.5; color: #66625c; }

/* ── Process journey ──────────────────────────────────────────────────── */
.furn-process { background: var(--bg); color: var(--furn-ink); }
.furn-process__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 104px); padding-top: clamp(80px, 10vw, 136px); padding-bottom: clamp(48px, 6vw, 80px); }

.furn-stage { position: sticky; top: 40px; align-self: start; }
.furn-stage__frame { position: relative; width: min(100%, calc((100svh - 150px) * .8)); aspect-ratio: 4 / 5; overflow: hidden; background: #d8d0c5; }
.furn-stage__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.045); transition: opacity .75s ease, transform 1.6s var(--furn-ease); will-change: opacity, transform; }
.furn-stage__img.is-active { opacity: 1; transform: none; }
.furn-stage__frame::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(0deg, rgba(24, 26, 29, .55), rgba(24, 26, 29, 0)); pointer-events: none; }
.furn-stage__count { position: absolute; left: 28px; bottom: 22px; z-index: 1; display: flex; align-items: baseline; gap: 10px; color: #fff; font-family: var(--font-display); }
.furn-stage__num { font-size: clamp(3.4rem, 5vw, 4.6rem); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.furn-stage__of { font-size: 1.05rem; color: rgba(255, 255, 255, .7); }
.furn-stage__meta { width: min(100%, calc((100svh - 150px) * .8)); margin-top: 22px; }
.furn-stage__phase { display: block; margin-bottom: 14px; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--furn-ink); }
.furn-rail { display: flex; gap: 5px; margin: 0; padding: 0; list-style: none; }
.furn-rail__tick { position: relative; flex: 1; height: 18px; cursor: pointer; }
.furn-rail__tick::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: rgba(17, 20, 23, .16); transition: background-color .4s ease; }
.furn-rail__tick.is-phase-start { margin-left: 12px; }
.furn-rail__tick.is-done::before { background: rgba(17, 20, 23, .5); }
.furn-rail__tick.is-active::before { background: var(--furn-ink); height: 3px; top: 7.5px; }
.furn-rail__tick:hover::before { background: rgba(17, 20, 23, .7); }

.furn-steps { min-width: 0; }
.furn-phase { display: flex; align-items: baseline; gap: 22px; margin: 0 0 56px; padding-top: 26px; border-top: 1px solid rgba(17, 20, 23, .22); }
.furn-step + .furn-phase { margin-top: 24px; }
.furn-phase__num { min-width: 2.2ch; font-family: var(--font-display); font-size: clamp(2.4rem, 3.4vw, 3.2rem); line-height: 1; color: var(--furn-ink); }
.furn-phase__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.2; text-transform: uppercase; color: var(--furn-ink); }
.furn-phase__range { display: block; margin-top: 6px; font-size: .88rem; color: #5a5650; }

.furn-step { padding-bottom: clamp(56px, 7vw, 88px); scroll-margin-top: 40px; }
.furn-step__media { display: none; margin: 0 0 26px; }
.furn-step__head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 20px; }
.furn-step__num { flex: none; width: 4.2rem; font-family: var(--font-display); font-size: clamp(2.2rem, 3vw, 2.8rem); line-height: 1; color: rgba(17, 20, 23, .32); font-variant-numeric: lining-nums tabular-nums; transition: color .5s ease; }
.furn-step.is-current .furn-step__num { color: #8a7258; }
.furn-step__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.45rem, 2.1vw, 1.95rem); line-height: 1.22; color: var(--furn-ink); }
.furn-step__body { padding-left: calc(4.2rem + 18px); }
.furn-step__body > * { max-width: 40em; }
.furn-step__body p { margin: 0 0 16px; font-size: 1.06rem; line-height: 1.78; color: #3d3f42; }
.furn-step__body .furn-step__lead { margin-top: 26px; margin-bottom: 10px; font-weight: 600; color: var(--furn-ink); }

.furn-list { margin: 0 0 22px; padding: 0; list-style: none; border-top: 1px solid var(--furn-line); }
.furn-list li { position: relative; padding: 11px 0 11px 22px; border-bottom: 1px solid var(--furn-line); font-size: 1rem; line-height: 1.5; color: #3d3f42; break-inside: avoid; }
.furn-list li::before { content: ""; position: absolute; left: 0; top: 1.25em; width: 10px; height: 1px; background: #8a7258; }
.furn-list--cols { column-count: 2; column-gap: 32px; border-top: 0; }
.furn-list--cols li:first-child, .furn-list--cols li { border-top: 0; }
.furn-list--cols { box-shadow: inset 0 1px 0 var(--furn-line); }

.furn-note { position: relative; margin: 24px 0 18px !important; padding: 2px 0 2px 20px; border-left: 2px solid var(--accent); font-size: 1rem !important; color: #55524d !important; }

.furn-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 26px 0 26px; background: var(--furn-line); border: 1px solid var(--furn-line); }
.furn-price { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; background: #f6f3ef; }
.furn-price__amount { font-family: var(--font-display); font-size: clamp(1.8rem, 2.6vw, 2.3rem); line-height: 1; color: var(--furn-ink); white-space: nowrap; }
.furn-price__label { font-size: .9rem; line-height: 1.4; color: #5a5650; }

.furn-pay { display: flex; align-items: center; gap: 22px; margin: 22px 0 22px; padding: 20px 26px; background: var(--primary); color: #fff; }
.furn-pay__pct { flex: none; font-family: var(--font-display); font-size: clamp(2rem, 2.8vw, 2.5rem); line-height: 1; color: var(--accent); white-space: nowrap; }
.furn-step__body .furn-pay p { margin: 0; font-size: 1rem; line-height: 1.55; color: rgba(255, 255, 255, .88); }

/* ── 3D model vs. visualisation ──────────────────────────────────────── */
.furn-design { padding: clamp(80px, 10vw, 136px) 0; background: #fff; }
.furn-design__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 112px); align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.furn-design__head h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.12; text-transform: uppercase; color: var(--primary); }
.furn-design__head p { margin: 0 0 .8em; font-size: 1.08rem; line-height: 1.75; color: var(--body); }
.furn-design__head p:last-child { margin-bottom: 0; }

.furn-compare { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #ece9e4; cursor: ew-resize; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.furn-compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.furn-compare__top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.furn-compare__tag { position: absolute; top: 22px; z-index: 2; padding: 10px 16px; font-size: .82rem; letter-spacing: .02em; color: var(--furn-ink); background: rgba(255, 255, 255, .78); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); pointer-events: none; }
.furn-compare__tag b { margin-left: 6px; font-weight: 600; }
.furn-compare__tag--left { left: 22px; }
.furn-compare__tag--right { right: 22px; }
.furn-compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); z-index: 3; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); outline: none; }
.furn-compare__knob { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: var(--furn-ink); background: rgba(255, 255, 255, .82); backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%); box-shadow: 0 10px 30px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .7); transform: translate(-50%, -50%); transition: transform .18s var(--furn-ease), box-shadow .18s ease; }
.furn-compare.is-dragging .furn-compare__knob { transform: translate(-50%, -50%) scale(.9); box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
.furn-compare__handle:focus-visible .furn-compare__knob { box-shadow: 0 0 0 3px var(--furn-ink), 0 10px 30px rgba(0, 0, 0, .18); }
.furn-design__fine { margin: 16px 0 0; font-size: .88rem; color: var(--muted); }

/* ── Payment plan ─────────────────────────────────────────────────────── */
.furn-payplan { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px clamp(28px, 6vw, 112px); align-items: center; margin-top: clamp(72px, 9vw, 120px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--border); }
.furn-payplan h3 { grid-row: span 2; margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2.1rem); text-transform: uppercase; color: var(--primary); }
.furn-payplan__bar { display: flex; height: 14px; gap: 3px; }
.furn-payplan__seg { display: block; transform-origin: left center; transition: transform 1.2s var(--furn-ease); }
.furn-payplan__seg--a { flex: 80; background: var(--primary); }
.furn-payplan__seg--b { flex: 20; background: var(--accent); transition-delay: .5s; }
.js-reveal .furn-payplan:not(.revealed) .furn-payplan__seg { transform: scaleX(0); }
.furn-payplan__legend { display: grid; grid-template-columns: 80fr 20fr; gap: 3px; }
.furn-payplan__legend > div { display: flex; flex-direction: column; gap: 4px; padding-right: 12px; }
.furn-payplan__legend > div:last-child { min-width: 170px; justify-self: end; text-align: right; padding-right: 0; }
.furn-payplan__legend b { font-family: var(--font-display); font-size: 1.7rem; font-weight: 400; color: var(--primary); }
.furn-payplan__legend span { font-size: .92rem; line-height: 1.45; color: var(--muted); }
.furn-payplan__legend a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.furn-faq { padding: clamp(80px, 10vw, 128px) 0; background: var(--bg); color: var(--furn-ink); }
.furn-faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 112px); align-items: start; }
.furn-faq__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.12; text-transform: uppercase; color: var(--furn-ink); }
.furn-faq .faq-item { border-color: rgba(17, 20, 23, .18); }
.furn-faq .faq-q { font-size: 1.06rem; color: var(--furn-ink); }
.furn-faq .faq-q:hover, .furn-faq .faq-q:focus-visible, .furn-faq .faq-q[aria-expanded="true"] { color: var(--furn-ink); background: rgba(255, 255, 255, .45); }
.furn-faq .faq-a p { margin: 0 0 .8em; color: #3d3f42; line-height: 1.75; }

/* ── Related pages ────────────────────────────────────────────────────── */
.furn-related { padding: clamp(80px, 10vw, 128px) 0; background: #fff; }
.furn-related__title { margin: 0 0 clamp(32px, 4vw, 48px); font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 2.8vw, 2.4rem); text-transform: uppercase; color: var(--primary); }
.furn-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.furn-rel { display: flex; flex-direction: column; gap: 10px; color: var(--primary); text-decoration: none; }
.furn-rel__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #ece9e4; margin-bottom: 8px; }
.furn-rel__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--furn-ease); }
.furn-rel:hover .furn-rel__img img { transform: scale(1.03); }
.furn-rel__name { font-family: var(--font-display); font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.25; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .3s ease; }
.furn-rel:hover .furn-rel__name, .furn-rel:focus-visible .furn-rel__name { text-decoration-color: var(--accent); }
.furn-rel__desc { font-size: .98rem; line-height: 1.6; color: var(--body); }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .furn-process__grid { grid-template-columns: 1fr; }
  .furn-stage { display: none; }
  .furn-step__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #d8d0c5; }
  .furn-step__media img { width: 100%; height: 100%; object-fit: cover; }
  .furn-step__body { padding-left: 0; }
  .furn-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .furn-fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .furn-fact:nth-child(n+3) { margin-top: 32px; }
  .furn-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .furn-hero { min-height: 82svh; }
  .furn-hero__media img { object-position: 64% 50%; }
  .furn-hero__shade { background: linear-gradient(0deg, rgba(24, 26, 29, .88) 0%, rgba(24, 26, 29, .55) 55%, rgba(24, 26, 29, .25) 100%); }
  .furn-hero__inner { padding-top: 96px; }
  .furn-hero__crumbs { margin-bottom: 32px; }
  .furn-hero .btn-hero { flex: 1 1 100%; padding: 16px 20px; }
  .furn-intro__grid, .furn-design__head, .furn-payplan, .furn-faq__grid { grid-template-columns: 1fr; }
  .furn-related__grid { grid-template-columns: 1fr; }
  .furn-payplan h3 { grid-row: auto; }
  .furn-fact { padding: 22px 16px 0; }
  .furn-fact dd { font-size: .88rem; }
  .furn-list--cols { column-count: 1; }
  .furn-prices { grid-template-columns: 1fr; }
  .furn-pay { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 20px; }
  .furn-phase { gap: 16px; margin-bottom: 36px; }
  .furn-step__head { gap: 14px; }
  .furn-step__num { width: auto; }
  .furn-step__media { margin-left: -16px; margin-right: -16px; }
  .furn-compare { aspect-ratio: 4 / 3; }
  .furn-compare__tag { top: 12px; padding: 7px 10px; font-size: .72rem; }
  .furn-compare__tag--left { left: 12px; }
  .furn-compare__tag--right { top: auto; right: 12px; bottom: 12px; }
  .furn-compare__knob { width: 48px; height: 48px; }
  .furn-payplan__legend > div:last-child { min-width: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  .furn-hero__media img, .furn-rise { animation: none; opacity: 1; transform: none; }
  .furn-stage__img { transform: none; transition: opacity .25s ease; }
  .furn-payplan__seg { transition: none; }
  .js-reveal .furn-payplan:not(.revealed) .furn-payplan__seg { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .furn-compare__tag, .furn-compare__knob { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
