/* ==========================================================================
   servi.php — detailed services page (uses the tokens from style.css)
   ========================================================================== */

html { scroll-padding-top: calc(var(--header-h) + 72px); }

/* Sticky jump bar under the header */
.svc-jump {
    position: sticky; top: var(--header-h); z-index: 1020;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.svc-jump-inner { display: flex; gap: .35rem; overflow-x: auto; padding: .6rem 0; scrollbar-width: none; }
.svc-jump-inner::-webkit-scrollbar { display: none; }
.svc-jump-inner a {
    display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap;
    padding: .45rem 1rem; border-radius: 999px; font-weight: 600; font-size: .875rem;
    color: var(--muted); border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.svc-jump-inner a i { font-size: 1rem; }
.svc-jump-inner a:hover { color: var(--navy); background: var(--surface-2); }
.svc-jump-inner a.active { color: var(--navy); background: var(--surface-2); border-color: #cfdcf0; }

/* Overview area cards */
.svc-area {
    display: flex; flex-direction: column; height: 100%; position: relative; overflow: hidden;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem;
    color: var(--body); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.svc-area::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--brand-grad);
    transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.svc-area h3 { margin: 1.1rem 0 .35rem; }
.svc-area p { font-size: .93rem; color: var(--muted); margin-bottom: .9rem; }
.svc-area ul { list-style: none; padding: 0; margin: 0 0 1.1rem; display: grid; gap: .35rem; }
.svc-area li { font-size: .9rem; color: var(--ink); display: flex; gap: .5rem; align-items: center; }
.svc-area li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
.svc-area .more { margin-top: auto; font-weight: 600; color: var(--blue); font-size: .9rem; display: inline-flex; align-items: center; }
.svc-area .more i { font-size: 1.3rem; transition: transform .25s var(--ease); }
.svc-area:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #cfdcf0; color: var(--body); }
.svc-area:hover::before { transform: scaleX(1); }
.svc-area:hover .icon-tile { background: var(--btn-grad); color: #fff; }
.svc-area:hover .more i { transform: translateY(3px); }

/* Detailed service blocks */
.svc-group .section-head { margin-bottom: 2rem; }
.svc-detail {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); margin-bottom: 1.5rem; position: relative; overflow: hidden;
    transition: box-shadow .3s, border-color .3s;
}
.svc-detail:last-child { margin-bottom: 0; }
.svc-detail::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand-grad); opacity: 0; transition: opacity .3s; }
.svc-detail:hover, .svc-detail:target { box-shadow: var(--shadow); border-color: #cfdcf0; }
.svc-detail:hover::before, .svc-detail:target::before { opacity: 1; }

.svc-title { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.1rem; }
.svc-title h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); font-weight: 800; margin: 0; }
.svc-no { display: block; font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .08em; color: var(--teal); }
.svc-lead { font-size: 1.04rem; color: var(--body); max-width: 40rem; }
.svc-sub { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: 1.5rem 0 0; }
.svc-includes { margin-top: .9rem; grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
.svc-includes li { font-size: .95rem; }

.svc-side { display: flex; flex-direction: column; gap: 1rem; height: 100%; }
.svc-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.section-tint .svc-box { background: var(--surface-2); }
.svc-box h4 { font-size: .98rem; font-weight: 700; margin: 0 0 .6rem; display: flex; align-items: center; gap: .5rem; }
.svc-box h4 i { color: var(--blue); font-size: 1.1rem; }
.svc-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.svc-box li { font-size: .92rem; color: var(--body); padding-left: 1.1rem; position: relative; }
.svc-box li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.svc-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; }
.svc-actions .btn { flex: 1 1 auto; }

@media (max-width: 767.98px) {
    .svc-includes { grid-template-columns: 1fr; }
    .svc-title .icon-tile.lg { width: 56px; height: 56px; font-size: 1.5rem; border-radius: 16px; }
}
@media (max-width: 991.98px) {
    .svc-jump { top: var(--header-h); }
}
