/* Services page (v2). Builds on site.css + home.css + inner.css. */

/* ── Hero ── */
.sv-hero { padding-bottom: 104px; }
.sv-hero-grid { grid-template-columns: 1.05fr .95fr; }
.sv-rings { position: absolute; z-index: -1; right: -160px; top: 50%; width: 720px; height: 720px; translate: 0 -50%; pointer-events: none; animation: svSpin 90s linear infinite; }
@keyframes svSpin { to { rotate: 360deg; } }
.sv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; max-width: 560px; }
.sv-chips span { padding: 7px 14px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.82); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }

/* Procedure picker */
.sv-picker { position: relative; border-radius: 28px; padding: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.sv-pk-media { position: relative; height: 210px; border-radius: 20px; overflow: hidden; background: var(--ink-2); }
.sv-pk-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1.08; transition: opacity .6s var(--ease), scale 1.6s var(--ease); }
.sv-pk-media img.on { opacity: 1; scale: 1; }
.sv-pk-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(10,22,36,.85)); }
.sv-pk-cap { position: absolute; z-index: 1; left: 18px; bottom: 14px; color: #fff; }
.sv-pk-cap small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-lite); }
.sv-pk-cap b { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.sv-pk-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 6px; }
.sv-pk-list a { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: rgba(255,255,255,.78); font-size: .88rem; font-weight: 600; overflow: hidden; transition: background .2s, color .2s; }
.sv-pk-list a span { font-size: .7rem; font-weight: 800; color: rgba(255,255,255,.4); transition: color .2s; }
.sv-pk-list a svg { width: 14px; height: 14px; margin-left: auto; opacity: 0; translate: -6px 0; transition: opacity .2s, translate .25s var(--ease); }
.sv-pk-list a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; }
.sv-pk-list a.on { background: rgba(255,255,255,.1); color: #fff; }
.sv-pk-list a.on span { color: var(--teal-lite); }
.sv-pk-list a.on svg, .sv-pk-list a:hover svg { opacity: 1; translate: 0 0; }
.sv-pk-list a.on.timing::after { animation: svTick var(--tick, 3s) linear forwards; }
@keyframes svTick { to { transform: scaleX(1); } }
.sv-pk-list a:hover { color: #fff; }

/* ── Services grid + filter ── */
.sv-head { align-items: flex-end; }
.sv-head .lede { max-width: 52ch; }
.sv-filter { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.sv-filter button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: .86rem; font-weight: 700; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.sv-filter button:hover { color: var(--text); background: #fff; }
.sv-filter button.active { background: var(--ink); color: #fff; }
.sv-filter i { font-style: normal; font-size: .72rem; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: #fff; color: var(--text); border: 1px solid var(--line); }
.sv-filter button.active i { background: rgba(255,255,255,.18); border-color: transparent; color: #fff; }
.sv-filter i:empty { display: none; }

.sv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sv-card { position: relative; display: flex; flex-direction: column; border-radius: 26px; background: #fff; border: 1px solid var(--line); overflow: hidden; color: var(--text); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.sv-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow-lg); }
.sv-card::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; background: radial-gradient(260px circle at var(--mx, -300px) var(--my, -300px), rgba(27,168,160,.12), transparent 70%); }
.sv-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.sv-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.sv-card:hover .sv-media img { transform: scale(1.06); }
.sv-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,22,36,.35)); }
.sv-no { position: absolute; z-index: 1; left: 14px; top: 14px; height: 32px; min-width: 42px; padding: 0 10px; border-radius: 999px; display: grid; place-items: center; font-size: .78rem; font-weight: 800; color: #fff; background: rgba(10,22,36,.55); border: 1px solid rgba(255,255,255,.25); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sv-feat { position: absolute; z-index: 1; right: 14px; top: 14px; height: 32px; padding: 0 14px; border-radius: 999px; display: grid; place-items: center; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--grad); }
.sv-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.sv-cat { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.sv-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; margin: 8px 0 10px; }
.sv-desc { font-size: .92rem; line-height: 1.65; color: var(--muted); }
.sv-desc strong { color: var(--text); font-weight: 600; }
.sv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 18px; }
.sv-tags span { padding: 5px 11px; border-radius: 999px; font-size: .74rem; font-weight: 600; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.sv-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 800; color: var(--blue); }
.sv-more svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.sv-card:hover .sv-more svg { transform: translateX(5px); }

/* Featured ACL card: spans two columns and two rows */
.sv-card.featured { grid-column: span 2; grid-row: span 2; }
.sv-card.featured .sv-media { aspect-ratio: auto; flex: 1; min-height: 320px; }
.sv-card.featured .sv-name { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.sv-card.featured .sv-desc { font-size: 1rem; max-width: 62ch; }
.sv-grid.is-filtered .sv-card.featured { grid-column: auto; grid-row: auto; }
.sv-grid.is-filtered .sv-card.featured .sv-media { flex: none; min-height: 0; aspect-ratio: 16 / 10; }
.sv-grid.is-filtered .sv-card.featured .sv-name { font-size: 1.3rem; }
.sv-grid.is-filtered .sv-card.featured .sv-desc { font-size: .92rem; }
.sv-card.hide { display: none; }
.sv-card.pop { animation: svPop .5s var(--ease) both; animation-delay: var(--pd, 0s); }
@keyframes svPop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

/* ── Joint replacement ── */
.sv-rep { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.sv-rep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; }
.sv-rep-card { padding: 22px; border-radius: 22px; background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.sv-rep-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sv-rep-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 16px; box-shadow: 0 10px 20px -10px rgba(27,168,160,.7); }
.sv-rep-ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sv-rep-title { font-weight: 800; font-size: 1.05rem; letter-spacing: -.015em; margin-bottom: 6px; }
.sv-rep-card p { font-size: .88rem; line-height: 1.65; color: var(--muted); }
.sv-rep-card a { color: var(--blue); }
.sv-rep-card a strong { font-weight: 700; }
.sv-rep-media { position: relative; padding: 0 0 72px 48px; }
.sv-rep-main { border-radius: 30px; overflow: hidden; aspect-ratio: 4 / 4.6; box-shadow: var(--shadow-lg); }
.sv-rep-main img, .sv-rep-accent img { width: 100%; height: 100%; object-fit: cover; }
.sv-rep-accent { position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 1; border-radius: 24px; overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow); }
.sv-rep-badge { position: absolute; right: -8px; bottom: 110px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: rgba(255,255,255,.92); border: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
.sv-rep-badge b { display: block; font-size: .9rem; }
.sv-rep-badge span:not(.ab-g-ico) { font-size: .76rem; color: var(--muted); }

/* ── Conditions ── */
.sv-cond-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: c; }
.sv-cond { position: relative; padding: 26px 22px 24px; border-radius: 24px; background: #fff; border: 1px solid var(--line); overflow: hidden; isolation: isolate; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s, color .35s; }
.sv-cond::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 70% at 100% 0%, rgba(27,168,160,.35), transparent 60%), var(--ink); opacity: 0; transition: opacity .35s var(--ease); }
.sv-cond-num { font-size: 2.6rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px #C9D6E2; margin-bottom: 18px; transition: -webkit-text-stroke-color .35s; }
.sv-cond-name { font-weight: 800; font-size: 1.08rem; letter-spacing: -.015em; margin-bottom: 8px; }
.sv-cond p { font-size: .88rem; line-height: 1.65; color: var(--muted); transition: color .35s; }
.sv-cond:hover { transform: translateY(-5px); border-color: transparent; box-shadow: var(--shadow-lg); color: #fff; }
.sv-cond:hover::before { opacity: 1; }
.sv-cond:hover .sv-cond-num { -webkit-text-stroke-color: var(--teal-lite); }
.sv-cond:hover p { color: rgba(255,255,255,.72); }

/* ── Patient journey ── */
.sv-journey { overflow: hidden; }
.sv-journey::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 70% at 50% 0%, rgba(27,168,160,.22), transparent 60%); pointer-events: none; }
.sv-journey-head { position: relative; text-align: center; max-width: 640px; margin: 0 auto clamp(40px, 6vw, 72px); }
.sv-journey-head .eyebrow { justify-content: center; }
.sv-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.sv-steps::before, .sv-steps::after { content: ""; position: absolute; top: 31px; left: 12.5%; right: 12.5%; height: 2px; border-radius: 2px; background: rgba(255,255,255,.12); }
.sv-steps::after { background: linear-gradient(90deg, #2E7CBF, #1BA8A0, #5FD4CC); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease) .3s; }
.sv-steps.in::after { transform: none; }
.sv-step { position: relative; text-align: center; padding: 0 8px; }
.sv-step-dot { position: relative; z-index: 1; width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1rem; background: var(--ink-2); border: 2px solid rgba(255,255,255,.16); color: #fff; transition: background .4s, border-color .4s, box-shadow .4s; }
.sv-steps.in .sv-step-dot { background: var(--grad); border-color: transparent; box-shadow: 0 0 0 8px rgba(27,168,160,.12); transition-delay: calc(var(--d, 0s) + .5s); }
.sv-step-title { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; color: #fff; }
.sv-step p { font-size: .9rem; line-height: 1.7; color: rgba(255,255,255,.7); }

/* ── Why choose ── */
.sv-why { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.sv-why-body > p { color: var(--muted); font-size: 1rem; line-height: 1.8; margin-top: 16px; }
.sv-why-body > p strong { color: var(--text); }
.sv-checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.sv-checks li { position: relative; padding: 14px 16px 14px 52px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-size: .93rem; color: var(--muted); line-height: 1.55; }
.sv-checks li strong { color: var(--text); }
.sv-checks li::before { content: ""; position: absolute; left: 16px; top: 15px; width: 22px; height: 22px; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat, var(--grad); }
.sv-facts { position: sticky; top: 150px; border-radius: 28px; padding: 10px; background: radial-gradient(80% 50% at 100% 0%, rgba(27,168,160,.3), transparent 60%), var(--ink); color: #fff; box-shadow: var(--shadow-lg); }
.sv-fact { padding: 18px 20px; border-radius: 20px; transition: background .25s; }
.sv-fact + .sv-fact { border-top: 1px solid rgba(255,255,255,.08); }
.sv-fact:hover { background: rgba(255,255,255,.05); }
.sv-fact-label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-lite); margin-bottom: 6px; }
.sv-fact-val { font-size: .9rem; line-height: 1.65; color: rgba(255,255,255,.82); }
.sv-fact-val strong { color: #fff; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .sv-grid { grid-template-columns: 1fr 1fr; }
  .sv-cond-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .sv-hero-grid, .sv-rep, .sv-why { grid-template-columns: 1fr; }
  .sv-picker { display: none; }
  .sv-rings { right: -320px; opacity: .6; }
  .sv-facts { position: static; }
  .sv-steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .sv-steps::before, .sv-steps::after { display: none; }
  .sv-steps .sv-step-dot { background: var(--grad); border-color: transparent; }
  .sv-rep-media { max-width: 520px; }
}
@media (max-width: 640px) {
  .sv-grid, .sv-rep-grid, .sv-cond-grid { grid-template-columns: 1fr; }
  .sv-card.featured { grid-column: auto; grid-row: auto; }
  .sv-card.featured .sv-media { flex: none; min-height: 0; aspect-ratio: 16 / 10; }
  .sv-filter { border-radius: 20px; }
  .sv-filter button { height: 36px; padding: 0 12px; font-size: .8rem; }
  .sv-steps { grid-template-columns: 1fr; }
  .sv-step { text-align: left; padding-left: 84px; min-height: 64px; }
  .sv-step-dot { position: absolute; left: 0; top: 0; margin: 0; }
  .sv-rep-media { padding-left: 24px; padding-bottom: 56px; }
  .sv-rep-badge { right: 0; bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  .sv-rings, .sv-rep-badge { animation: none; }
  .sv-pk-list a.on.timing::after { animation: none; }
  .sv-steps::after { transition: none; transform: none; }
}

/* Featured ACL card: extra detail fills the taller card; the photo takes any spare height */
.sv-extra { display: none; }
.sv-card.featured .sv-body { flex: none; }
.sv-card.featured .sv-extra { display: block; margin: -2px 0 22px; }
.sv-extra p { font-size: .94rem; line-height: 1.7; color: var(--muted); max-width: 70ch; padding-top: 18px; border-top: 1px dashed var(--line); }
.sv-extra p strong { color: var(--text); font-weight: 600; }
.sv-extra-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.sv-extra-facts div { padding: 14px 14px 12px; border-radius: 16px; background: var(--tint); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.sv-card:hover .sv-extra-facts div { transform: translateY(-2px); }
.sv-extra-facts b { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sv-extra-facts span { display: block; margin-top: 4px; font-size: .74rem; font-weight: 600; color: var(--muted); }
.sv-grid.is-filtered .sv-card.featured .sv-extra { display: none; }
.sv-grid.is-filtered .sv-card.featured .sv-body { flex: 1; }
@media (max-width: 640px) {
  .sv-card.featured .sv-body { flex: 1; }
  .sv-extra-facts { grid-template-columns: 1fr 1fr; }
}
