/* ==========================================================================
   TĒLS — pakalpojumu slaidi (svc deck + scene engine styles)
   Deck layout first, then the stage (1600x900 design px, scaled by engine.js),
   then shared building blocks, then one block per slide.
   ========================================================================== */

/* ---------- deck: proper slides, fit in one screen with the controls ---------- */
#pakalpojumi { padding-block: 1.2rem; }
#svc-track {
  --wa-cardw: min(1120px, 66vw, calc((100svh - var(--header-h, 64px) - 170px) * 16 / 9));
  min-height: calc(var(--wa-cardw) * .5625);
}
#svc-track .wa-card { aspect-ratio: 16 / 9; background: #14160F; border: 1px solid rgba(254,246,225,.09); border-radius: 18px; box-shadow: 0 40px 70px -40px rgba(0,0,0,.8); }
.svc-controls { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-top: 1.1rem; }
.svc-controls .wa-dots { margin-top: 0; gap: .15rem; flex-wrap: wrap; }
.svc-arrow { position: static; transform: none; }
.wa-dot-btn.wa-tab { width: auto; height: 40px; padding: 0 .85rem; font: 500 .92rem/1 var(--font-body); color: var(--ink-3); letter-spacing: .01em; transition: color .2s ease; }
.wa-dot-btn.wa-tab::before { position: absolute; left: .85rem; right: .85rem; bottom: 6px; width: auto; height: 2px; margin: 0; background: var(--accent); transform: scaleX(0); transition: transform .3s cubic-bezier(.22,1,.36,1); }
.wa-dot-btn.wa-tab.active::before { width: auto; transform: scaleX(1); }
.wa-dot-btn.wa-tab:hover, .wa-dot-btn.wa-tab.active { color: var(--ink); }
@media (max-width: 760px) {
  #svc-track { --wa-cardw: min(90vw, calc((100svh - var(--header-h, 64px) - 170px) * .75)); min-height: calc(var(--wa-cardw) * 1.3333); }
  #svc-track .wa-card { aspect-ratio: 3 / 4; }
  .wa-dot-btn.wa-tab { height: 36px; padding: 0 .55rem; font-size: .82rem; }
  .wa-dot-btn.wa-tab::before { left: .55rem; right: .55rem; }
}

/* ---------- host + stage ---------- */
.ts { position: absolute; inset: 0; overflow: hidden; background: #14160F; color: #E8EBDB; --c-cream: #FEF6E1; --c-ink: #E8EBDB; --c-ink2: rgba(232,235,219,.68); --c-ink3: rgba(232,235,219,.4); --c-line: rgba(254,246,225,.14); --c-panel: rgba(254,246,225,.05); --c-amber: #D9B27A; --c-lamp: #FFE6AB; --c-red: #7A1F12; --c-moss: #475333; --c-sage: #808870; --c-dark: #21241B; }
.ts-stage { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; font-family: var(--font-body, 'Hanken Grotesk', system-ui, sans-serif); font-size: 24px; line-height: 1.5; transition: opacity .5s ease; -webkit-user-select: none; user-select: none; }
.ts-stage *, .ts-stage *::before, .ts-stage *::after { box-sizing: border-box; }
.ts-stage p, .ts-stage h4, .ts-stage h5 { margin: 0; }
.ts-glow { position: absolute; inset: 0; opacity: 0; background: radial-gradient(62% 74% at 50% 44%, rgba(255,226,170,.21) 0%, rgba(255,222,176,.1) 42%, rgba(255,220,170,0) 76%); }
.ts-scenes, .ts-scene { position: absolute; inset: 0; }
.ts-scene { opacity: 0; visibility: hidden; }

/* cover: what a card shows while it is not the front slide (and before JS) */
.ts-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: 8%; text-align: center; transition: opacity .5s ease; background: radial-gradient(70% 80% at 50% 40%, rgba(255,226,170,.1), rgba(255,226,170,0) 75%); }
.ts-cover span { font: 500 clamp(.8rem, 1.2vw, 1rem)/1 var(--font-display); letter-spacing: .18em; color: var(--amber, #C9A06A); }
.ts-cover h3 { margin: 0; font: 500 clamp(1.3rem, 3vw, 2.6rem)/1.15 var(--font-display); color: #FEF6E1; }
.wa-slide[aria-hidden="false"] .ts--built .ts-cover { opacity: 0; pointer-events: none; }
.wa-slide[aria-hidden="true"] .ts-stage, .wa-slide[aria-hidden="true"] .ts-bar, .wa-slide[aria-hidden="true"] .ts-pp { opacity: 0; pointer-events: none; }

/* progress: one thin segment per scene (click to jump) + pause */
.ts-bar { position: absolute; left: 14px; right: 46px; bottom: 6px; display: flex; gap: 4px; transition: opacity .3s ease; }
.ts-seg { flex: 1 1 0; height: 18px; padding: 8px 0; border: 0; background: none; cursor: pointer; }
.ts-seg::before, .ts-seg i { content: ""; display: block; height: 2px; border-radius: 2px; }
.ts-seg::before { background: rgba(254,246,225,.16); }
.ts-seg i { margin-top: -2px; background: rgba(254,246,225,.7); transform-origin: 0 50%; scale: 0 1; }
.ts-seg:hover::before { background: rgba(254,246,225,.34); }
.ts-pp { position: absolute; right: 8px; bottom: 2px; width: 30px; height: 26px; padding: 0; border: 0; background: none; color: rgba(254,246,225,.55); cursor: pointer; transition: color .2s ease, opacity .3s ease; }
.ts-pp:hover { color: #FEF6E1; }
.ts-pp svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ts-pp .ts-pp-play { fill: currentColor; stroke-width: 1.5; }
.ts--playing .ts-pp-play, .ts:not(.ts--playing) .ts-pp-pause { display: none; }
.ts-seg:focus-visible, .ts-pp:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

/* ---------- layout slots (wide: prop left, copy right; tall: prop top, copy below) ---------- */
.ts-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 230px 30px; }
.ts-prop { position: absolute; left: 96px; top: 130px; width: 760px; height: 640px; transform-origin: 0 50%; scale: 1.06; }
.ts-copy { position: absolute; left: 966px; top: 50%; width: 550px; transform: translateY(-54%); }
.ts-full { position: absolute; inset: 0; }
.ts--tall .ts-center { padding: 0 70px 40px; }
.ts--tall .ts-prop { left: 70px; top: 60px; scale: 1; }
.ts--tall .ts-copy { left: 70px; top: 740px; width: 760px; transform: none; }

/* ---------- type ---------- */
.ts-q { font: 400 34px/1.35 var(--font-display, 'Outfit', sans-serif); color: var(--c-ink2); max-width: 760px; text-wrap: balance; }
.ts-title { font: 600 80px/1.1 var(--font-display, 'Outfit', sans-serif); color: var(--c-cream); letter-spacing: -.01em; text-wrap: balance; }
.ts-title--sm { font-size: 56px; line-height: 1.18; }
.ts-title b, .ts-hl { font-weight: inherit; color: var(--c-lamp); }
.ts-quote { margin-top: 30px !important; font-size: 27px; line-height: 1.5; color: var(--c-ink2); max-width: 860px; text-wrap: balance; }
.ts-copy h4 { font: 600 50px/1.15 var(--font-display, 'Outfit', sans-serif); color: var(--c-cream); }
.ts-copy h4 .n { color: var(--c-amber); font-weight: 500; margin-right: .18em; }
.ts-copy h4::after { content: ""; display: block; width: 54px; height: 3px; margin: 20px 0 22px; border-radius: 2px; background: var(--c-amber); }
.ts-copy p { font-size: 26px; line-height: 1.5; color: var(--c-ink2); text-wrap: pretty; }
.ts-copy p b, .ts-copy .lead { color: var(--c-cream); font-weight: 600; }
.ts-copy p + p { margin-top: 16px; }
.ts-copy .ts-step { position: absolute; left: 0; top: 0; width: 100%; }           /* stacked copy variants inside one scene */
.ts-copy--stack { height: 420px; transform: translateY(-50%); }
.ts--tall .ts-copy--stack { transform: none; }
.ts--tall .ts-title { font-size: 68px; }
.ts--tall .ts-title--sm { font-size: 50px; }
.ts--tall .ts-copy h4 { font-size: 56px; }
.ts--tall .ts-copy h4::after { margin: 18px 0 20px; }
.ts--tall .ts-copy p { font-size: 33px; line-height: 1.45; }
.ts--tall .ts-q { font-size: 42px; }
.ts--tall .ts-quote { font-size: 35px; }

/* ---------- shared building blocks ---------- */
.ts-abs { position: absolute; }
.ts-draw { fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round; stroke-linejoin: round; }
.ts-ln { display: block; height: 12px; border-radius: 6px; background: rgba(232,235,219,.3); }
.ts-win { position: absolute; border-radius: 16px; border: 1px solid var(--c-line); background: rgba(20,22,15,.72); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.ts-win-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--c-line); font-size: 13px; color: var(--c-ink3); }
.ts-win-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(232,235,219,.22); }
.ts-win-bar span { margin-left: 8px; letter-spacing: .04em; }
.ts-card { position: absolute; border-radius: 14px; background: var(--c-cream); color: #2A2416; box-shadow: 0 24px 46px -24px rgba(0,0,0,.75); }
.ts-btn { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 18px; border-radius: 999px; background: var(--c-red); color: var(--c-cream); font: 600 14px/1 var(--font-body, sans-serif); white-space: nowrap; }
.ts-tag { font: 500 14px/1 var(--font-body, sans-serif); letter-spacing: .14em; text-transform: uppercase; color: var(--c-ink3); }
.ts-tile { position: absolute; border-radius: 10px; background: linear-gradient(145deg, #5a6146, #353b29); overflow: hidden; }
.ts-tile--warm { background: radial-gradient(90% 90% at 68% 30%, #FFE6AB 0%, #D9A45F 34%, #8a3a1c 78%, #5c1608 100%); }
.ts-tile--moss { background: radial-gradient(90% 90% at 35% 30%, #a5ad90 0%, #5f6b46 45%, #2f3622 100%); }
.ts-tile--sand { background: radial-gradient(90% 90% at 50% 35%, #FEF6E1 0%, #dcc79b 45%, #9a8558 100%); }
.ts-cursor { position: absolute; width: 20px; height: 20px; background: var(--c-cream); clip-path: polygon(0 0, 0 82%, 24% 62%, 42% 100%, 56% 93%, 39% 57%, 70% 57%); filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
