/* =========================================================================
   AJONTec — Service detail pages + "How We Work" process timeline
   Standalone file. It does not override any existing rule; every selector is
   namespaced with .aj-  (safe to add/remove without touching the old design).
   ========================================================================= */

.aj-service-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 991px) {
    .aj-service-layout { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Main column ---------- */
.aj-service-banner {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 28px;
    border: 1px solid rgba(127, 127, 127, .18);
}

.aj-service-body {
    font-size: 1.02rem;
    line-height: 1.85;
    opacity: .92;
}

.aj-service-body p { margin: 0 0 18px; }
.aj-service-body h2,
.aj-service-h2 {
    font-size: 1.55rem;
    font-weight: 800;
    margin: 34px 0 16px;
    letter-spacing: -.02em;
}
.aj-service-body h3 { font-size: 1.2rem; font-weight: 700; margin: 26px 0 12px; }
.aj-service-body ul, .aj-service-body ol { margin: 0 0 18px 20px; }
.aj-service-body li { margin-bottom: 8px; }
.aj-service-body img { max-width: 100%; height: auto; border-radius: 14px; margin: 16px 0; }
.aj-service-body blockquote {
    margin: 20px 0;
    padding: 14px 20px;
    border-left: 3px solid var(--primary, #4f46e5);
    background: rgba(127, 127, 127, .07);
    border-radius: 0 10px 10px 0;
}

/* ---------- Key points ---------- */
.aj-service-bullets {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px 24px;
}
.aj-service-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
}
.aj-service-bullets svg {
    flex: 0 0 auto;
    margin-top: 3px;
    color: var(--primary, #4f46e5);
}

/* ---------- Tech chips ---------- */
.aj-tech-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.aj-chip {
    display: inline-block;
    padding: 7px 14px;
    font-size: .85rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid rgba(127, 127, 127, .25);
    background: rgba(127, 127, 127, .08);
    white-space: nowrap;
}

/* ---------- Sidebar ---------- */
.aj-service-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 100px; }
@media (max-width: 991px) { .aj-service-side { position: static; } }

.aj-side-card {
    padding: 26px;
    border-radius: 18px;
    border: 1px solid rgba(127, 127, 127, .18);
    background: rgba(127, 127, 127, .06);
    backdrop-filter: blur(6px);
}
.aj-side-card h3 { font-size: 1.15rem; font-weight: 800; margin: 14px 0 16px; }
.aj-side-title { margin-top: 0 !important; }

.aj-side-meta { list-style: none; margin: 0 0 20px; padding: 0; }
.aj-side-meta li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(127, 127, 127, .22);
    font-size: .9rem;
}
.aj-side-meta li:last-child { border-bottom: 0; }
.aj-side-meta span { opacity: .7; }
.aj-side-meta strong { text-align: right; }

.aj-side-btn { width: 100%; justify-content: center; margin-bottom: 10px; display: inline-flex; }

.aj-side-links { list-style: none; margin: 0 0 14px; padding: 0; }
.aj-side-links li { border-bottom: 1px dashed rgba(127, 127, 127, .22); }
.aj-side-links li:last-child { border-bottom: 0; }
.aj-side-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    font-weight: 600;
    font-size: .93rem;
    text-decoration: none;
    color: inherit;
    transition: color .2s ease, transform .2s ease;
}
.aj-side-links a:hover { color: var(--primary, #4f46e5); transform: translateX(3px); }

/* ---------- Service card thumbnail (grid) ---------- */
.service-thumb-link { display: block; margin: -6px 0 18px; }
.service-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(127, 127, 127, .18);
    transition: transform .35s ease;
}
.service-thumb-link:hover .service-thumb { transform: scale(1.02); }

/* =========================================================================
   How We Work — 7 step timeline
   ========================================================================= */
.aj-process-sub {
    max-width: 640px;
    margin: 14px auto 0;
    opacity: .75;
    line-height: 1.7;
}

.aj-process-timeline {
    list-style: none;
    margin: 48px auto 0;
    padding: 0;
    max-width: 820px;
}

.aj-process-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 22px;
    padding-bottom: 30px;
}
.aj-process-item:last-child { padding-bottom: 0; }

.aj-process-marker {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.aj-process-num {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary, #4f46e5), var(--secondary, #111827));
    box-shadow: 0 6px 18px rgba(79, 70, 229, .28);
    z-index: 1;
}

.aj-process-line {
    flex: 1 1 auto;
    width: 2px;
    margin-top: 6px;
    background: linear-gradient(180deg, var(--primary, #4f46e5), rgba(127, 127, 127, .25));
    border-radius: 2px;
    min-height: 40px;
}

.aj-process-content { padding-top: 6px; }

.aj-process-title {
    font-size: 1.18rem;
    font-weight: 700;
    font-style: italic;
    margin: 0 0 8px;
    letter-spacing: -.01em;
}

.aj-process-desc {
    margin: 0;
    line-height: 1.7;
    opacity: .78;
    font-size: .96rem;
}

.aj-process-img {
    display: block;
    margin-top: 14px;
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(127, 127, 127, .18);
}

@media (max-width: 600px) {
    .aj-process-item { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
    .aj-process-num { width: 38px; height: 38px; flex-basis: 38px; font-size: .9rem; }
    .aj-process-title { font-size: 1.05rem; }
}

/* =========================================================================
   AJONTec — Service detail page v2  (.svcx-*)
   Self-contained, theme-aware, mobile-first. Appended block: nothing above
   this line is modified, so the old .aj-* components keep working.
   ========================================================================= */

:root {
    --svcx-primary: var(--accent-indigo, #6366f1);
    --svcx-accent: var(--accent-cyan, #22d3ee);
    --svcx-primary-rgb: var(--theme-primary-rgb, 99, 102, 241);
    --svcx-line: var(--border-color, rgba(255, 255, 255, .08));
    --svcx-card: var(--bg-card, rgba(18, 24, 46, .62));
    --svcx-radius: 18px;
}

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */
.svcx-hero {
    position: relative;
    isolation: isolate;
    padding: 116px 0 56px;
    overflow: hidden;
}
.svcx-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}
.svcx-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .3;
    /* Banner artwork frequently contains its own headline text. A light blur
       keeps it decorative and stops it competing with the real <h1>. */
    filter: saturate(1.06) blur(3px);
    transform: scale(1.06);
}
.svcx-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    /* Built entirely from the active palette so the scrim is dark on a dark
       theme and light on a light theme - the text colour always stays legible
       whichever preset the admin picks. */
    background:
        radial-gradient(70% 90% at 12% 0%, rgba(var(--svcx-primary-rgb), .22), transparent 62%),
        linear-gradient(180deg,
            rgba(var(--theme-bg-rgb, 6, 9, 20), .62) 0%,
            rgba(var(--theme-bg-rgb, 6, 9, 20), .88) 55%,
            var(--bg-base, #060914) 96%);
}

.svcx-hero-inner { position: relative; max-width: 900px; }

.svcx-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    margin-bottom: 20px;
    color: var(--text-muted, #6b7488);
}
.svcx-crumbs a { color: inherit; text-decoration: none; transition: color .2s ease; }
.svcx-crumbs a:hover { color: var(--svcx-primary); }
.svcx-crumbs [aria-current] { color: var(--text-primary, #f8fafc); font-weight: 600; }

.svcx-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--svcx-primary);
    background: rgba(var(--svcx-primary-rgb), .12);
    border: 1px solid rgba(var(--svcx-primary-rgb), .3);
    margin-bottom: 18px;
}

.svcx-title {
    font-size: clamp(2rem, 5.2vw, 3.35rem);
    line-height: 1.1;
    font-weight: 850;
    letter-spacing: -.035em;
    margin: 0 0 16px;
}

.svcx-lede {
    font-size: clamp(1rem, 2.2vw, 1.14rem);
    line-height: 1.75;
    color: var(--text-secondary, #aab2c5);
    margin: 0 0 26px;
    max-width: 68ch;
}

.svcx-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}
.svcx-fact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border-radius: 12px;
    background: var(--svcx-card);
    border: 1px solid var(--svcx-line);
    backdrop-filter: blur(8px);
    font-size: .86rem;
    white-space: nowrap;
}
.svcx-fact svg { color: var(--svcx-primary); flex: 0 0 auto; }
.svcx-fact span { color: var(--text-muted, #6b7488); }
.svcx-fact strong { font-weight: 700; }

.svcx-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------------------------------------------------------
   Sticky section nav
   --------------------------------------------------------------- */
.svcx-subnav {
    position: sticky;
    top: 66px;
    z-index: 18;
    border-top: 1px solid var(--svcx-line);
    border-bottom: 1px solid var(--svcx-line);
    background: rgba(var(--theme-bg-rgb, 6, 9, 20), .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.svcx-subnav-track {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    padding: 8px 0;
}
.svcx-subnav-track::-webkit-scrollbar { display: none; }

.svcx-subnav-link {
    flex: 0 0 auto;
    padding: 8px 15px;
    border-radius: 999px;
    font-size: .86rem;
    font-weight: 600;
    color: var(--text-secondary, #aab2c5);
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}
.svcx-subnav-link:hover { color: var(--text-primary, #f8fafc); background: rgba(127, 127, 127, .12); }
.svcx-subnav-link.is-active {
    color: #fff;
    background: var(--svcx-primary);
}

/* ---------------------------------------------------------------
   Layout
   --------------------------------------------------------------- */
.svcx-wrap { padding: 54px 0 60px; }

.svcx-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 336px;
    gap: 44px;
    align-items: start;
}
@media (max-width: 1024px) {
    .svcx-layout { grid-template-columns: 1fr; gap: 34px; }
}

.svcx-main { min-width: 0; }

/* ---------------------------------------------------------------
   Article typography
   --------------------------------------------------------------- */
.svcx-body {
    font-size: 1.04rem;
    line-height: 1.85;
    color: var(--text-secondary, #aab2c5);
}
.svcx-body > *:first-child { margin-top: 0; }
.svcx-body p { margin: 0 0 20px; }
.svcx-body strong { color: var(--text-primary, #f8fafc); font-weight: 650; }

.svcx-body h2,
.svcx-h2 {
    font-size: clamp(1.35rem, 3vw, 1.72rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.28;
    color: var(--text-primary, #f8fafc);
    margin: 44px 0 18px;
    scroll-margin-top: 130px;
    position: relative;
    padding-left: 16px;
}
.svcx-body h2::before,
.svcx-h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .18em;
    bottom: .18em;
    width: 4px;
    border-radius: 4px;
    background: var(--gradient-glow, linear-gradient(180deg, #6366f1, #22d3ee));
}

.svcx-body h3 {
    font-size: 1.16rem;
    font-weight: 700;
    color: var(--text-primary, #f8fafc);
    margin: 30px 0 12px;
    scroll-margin-top: 130px;
}

.svcx-body ul,
.svcx-body ol { margin: 0 0 22px; padding-left: 0; list-style: none; }
.svcx-body ol { counter-reset: svcx-ol; }
.svcx-body li { position: relative; padding-left: 28px; margin-bottom: 11px; }
.svcx-body ul > li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: .68em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--svcx-primary);
}
.svcx-body ol > li::before {
    counter-increment: svcx-ol;
    content: counter(svcx-ol);
    position: absolute;
    left: 0;
    top: .1em;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    font-size: .72rem;
    font-weight: 800;
    color: var(--svcx-primary);
    background: rgba(var(--svcx-primary-rgb), .14);
}
.svcx-body li > ul,
.svcx-body li > ol { margin-top: 10px; margin-bottom: 4px; }

.svcx-body a {
    color: var(--svcx-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(var(--svcx-primary-rgb), .38);
    transition: border-color .2s ease, color .2s ease;
}
.svcx-body a:hover { border-bottom-color: var(--svcx-primary); }

.svcx-body img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 22px 0;
    border: 1px solid var(--svcx-line);
}

.svcx-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .88em;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(127, 127, 127, .14);
    color: var(--text-primary, #f8fafc);
}
.svcx-body pre {
    overflow-x: auto;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(127, 127, 127, .12);
    border: 1px solid var(--svcx-line);
    margin: 0 0 22px;
}
.svcx-body pre code { background: none; padding: 0; }

.svcx-body blockquote {
    margin: 24px 0;
    padding: 16px 22px;
    border-left: 3px solid var(--svcx-primary);
    background: rgba(var(--svcx-primary-rgb), .07);
    border-radius: 0 12px 12px 0;
    font-style: italic;
}

.svcx-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 22px;
    font-size: .93rem;
    display: block;
    overflow-x: auto;
}
.svcx-body th,
.svcx-body td { padding: 11px 14px; border: 1px solid var(--svcx-line); text-align: left; }
.svcx-body th { background: rgba(127, 127, 127, .1); font-weight: 700; color: var(--text-primary, #f8fafc); }

.svcx-block { margin-top: 46px; scroll-margin-top: 130px; }
.svcx-block > .svcx-h2:first-child { margin-top: 0; }

/* ---------------------------------------------------------------
   Checklist
   --------------------------------------------------------------- */
.svcx-checks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 12px;
}
.svcx-checks li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 13px;
    background: var(--svcx-card);
    border: 1px solid var(--svcx-line);
    line-height: 1.6;
    font-size: .95rem;
    transition: border-color .22s ease, transform .22s ease;
}
.svcx-checks li:hover { border-color: rgba(var(--svcx-primary-rgb), .45); transform: translateY(-2px); }
.svcx-check {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--svcx-primary);
}

/* ---------------------------------------------------------------
   Tech chips
   --------------------------------------------------------------- */
.svcx-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.svcx-chip {
    padding: 8px 15px;
    font-size: .85rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid var(--svcx-line);
    background: var(--svcx-card);
    white-space: nowrap;
    transition: border-color .2s ease, color .2s ease;
}
.svcx-chip:hover { border-color: rgba(var(--svcx-primary-rgb), .5); color: var(--svcx-primary); }

/* ---------------------------------------------------------------
   FAQ accordion
   --------------------------------------------------------------- */
.svcx-faqs { display: flex; flex-direction: column; gap: 11px; }

.svcx-faq {
    border: 1px solid var(--svcx-line);
    border-radius: 14px;
    background: var(--svcx-card);
    overflow: hidden;
    transition: border-color .22s ease;
}
.svcx-faq[open] { border-color: rgba(var(--svcx-primary-rgb), .4); }

.svcx-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    cursor: pointer;
    font-weight: 650;
    font-size: .98rem;
    line-height: 1.5;
    color: var(--text-primary, #f8fafc);
    list-style: none;
    -webkit-tap-highlight-color: transparent;
}
.svcx-faq summary::-webkit-details-marker { display: none; }
.svcx-faq summary::marker { content: ""; }

.svcx-faq-ico {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--svcx-primary);
    background: rgba(var(--svcx-primary-rgb), .12);
    transition: transform .25s cubic-bezier(.32, .72, 0, 1), background .2s ease;
}
.svcx-faq[open] .svcx-faq-ico { transform: rotate(45deg); background: var(--svcx-primary); color: #fff; }

.svcx-faq-a {
    padding: 0 18px 17px;
    color: var(--text-secondary, #aab2c5);
    line-height: 1.8;
    font-size: .95rem;
}
.svcx-faq-a p { margin: 0; }
.svcx-faq[open] .svcx-faq-a { animation: svcx-reveal .26s ease; }
@keyframes svcx-reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------
   Tags
   --------------------------------------------------------------- */
.svcx-tags { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--svcx-line); }
.svcx-tags-label {
    display: block;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted, #6b7488);
    margin-bottom: 12px;
}

/* ---------------------------------------------------------------
   Sidebar
   --------------------------------------------------------------- */
.svcx-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 132px;
}
@media (max-width: 1024px) { .svcx-side { position: static; } }

.svcx-card {
    padding: 24px;
    border-radius: var(--svcx-radius);
    border: 1px solid var(--svcx-line);
    background: var(--svcx-card);
    backdrop-filter: blur(8px);
}
.svcx-quote-card {
    border-color: rgba(var(--svcx-primary-rgb), .3);
    box-shadow: 0 18px 48px rgba(var(--svcx-primary-rgb), .12);
}
.svcx-card-title {
    font-size: 1.06rem;
    font-weight: 800;
    letter-spacing: -.015em;
    margin: 0 0 8px;
    color: var(--text-primary, #f8fafc);
}
.svcx-card-sub {
    margin: 0 0 18px;
    font-size: .88rem;
    line-height: 1.65;
    color: var(--text-secondary, #aab2c5);
}

.svcx-meta { list-style: none; margin: 0 0 20px; padding: 0; }
.svcx-meta li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--svcx-line);
    font-size: .875rem;
}
.svcx-meta li:last-child { border-bottom: 0; }
.svcx-meta span { color: var(--text-muted, #6b7488); }
.svcx-meta strong { text-align: right; font-weight: 700; }

.svcx-side-btn { width: 100%; justify-content: center; display: inline-flex; margin-bottom: 10px; }
.svcx-side-btn:last-child { margin-bottom: 0; }

.svcx-toc { list-style: none; margin: 0 0 14px; padding: 0; }
.svcx-toc li { margin-bottom: 2px; }
.svcx-toc a {
    display: block;
    padding: 8px 12px;
    border-radius: 9px;
    font-size: .875rem;
    font-weight: 550;
    color: var(--text-secondary, #aab2c5);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.svcx-toc a:hover { background: rgba(127, 127, 127, .1); color: var(--text-primary, #f8fafc); }
.svcx-toc a.is-active {
    color: var(--svcx-primary);
    border-left-color: var(--svcx-primary);
    background: rgba(var(--svcx-primary-rgb), .09);
}
.svcx-read { font-size: .78rem; color: var(--text-muted, #6b7488); }

.svcx-links { list-style: none; margin: 0 0 14px; padding: 0; }
.svcx-links li { border-bottom: 1px dashed var(--svcx-line); }
.svcx-links li:last-child { border-bottom: 0; }
.svcx-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-weight: 600;
    font-size: .92rem;
    text-decoration: none;
    color: inherit;
    transition: color .2s ease, padding .2s ease;
}
.svcx-links a:hover { color: var(--svcx-primary); padding-left: 4px; }

/* ---------------------------------------------------------------
   Related services
   --------------------------------------------------------------- */
.svcx-related { padding: 20px 0 60px; }
.svcx-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
    gap: 20px;
    margin-top: 36px;
}
.svcx-related-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--svcx-radius);
    border: 1px solid var(--svcx-line);
    background: var(--svcx-card);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .28s cubic-bezier(.32, .72, 0, 1), border-color .28s ease, box-shadow .28s ease;
}
.svcx-related-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--svcx-primary-rgb), .45);
    box-shadow: 0 18px 44px rgba(var(--theme-bg-rgb, 6, 9, 20), .26);
}
.svcx-related-card img {
    display: block;
    width: 100%;
    /* height:auto is required — the width/height attributes on the <img> are
       presentational hints that otherwise beat aspect-ratio and make the
       thumbnail render at its literal attribute height. */
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.svcx-related-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.svcx-related-body h3 { margin: 0; font-size: 1.03rem; font-weight: 750; letter-spacing: -.015em; }
.svcx-related-body p { margin: 0; font-size: .88rem; line-height: 1.65; color: var(--text-secondary, #aab2c5); flex: 1; }

/* ---------------------------------------------------------------
   Mobile sticky CTA — sits above the app tab bar
   --------------------------------------------------------------- */
.svcx-mobile-cta { display: none; }

@media (max-width: 900px) {
    .svcx-hero { padding: 92px 0 40px; }
    .svcx-hero-bg img { opacity: .2; filter: saturate(1.05) blur(5px); }
    .svcx-subnav { top: calc(66px + env(safe-area-inset-top)); }
    .svcx-wrap { padding: 34px 0 40px; }
    .svcx-body { font-size: 1rem; }
    .svcx-hero-actions .btn { flex: 1 1 auto; justify-content: center; }

    .svcx-mobile-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 44;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 11px 16px calc(11px + env(safe-area-inset-bottom));
        background: rgba(var(--theme-bg-rgb, 6, 9, 20), .93);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid var(--svcx-line);
        transform: translateY(110%);
        transition: transform .3s cubic-bezier(.32, .72, 0, 1);
    }
    .svcx-mobile-cta.is-visible { transform: none; }
    .svcx-mobile-cta-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
        line-height: 1.3;
        flex: 1 1 auto;
        min-width: 0;
    }
    .svcx-mobile-cta-info strong,
    .svcx-mobile-cta-info span {
        display: block;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .svcx-mobile-cta-info strong { font-size: .92rem; font-weight: 750; }
    .svcx-mobile-cta-info span { font-size: .74rem; color: var(--text-muted, #6b7488); }
    /* The base theme forces .btn { width: 100% } below 900px, which would
       squash the price/timeline column to zero. Opt this one button out. */
    .svcx-mobile-cta .btn {
        width: auto;
        flex: 0 0 auto;
        padding: 11px 20px;
        white-space: nowrap;
    }

    /* When the app tab bar is present, lift the CTA above it. */
    body.has-tabbar .svcx-mobile-cta { bottom: var(--aj-tabbar-h, 66px); padding-bottom: 11px; }
}

@media (max-width: 480px) {
    .svcx-facts { gap: 8px; }
    .svcx-fact { padding: 8px 12px; font-size: .8rem; }
    .svcx-card { padding: 20px 18px; }
    .svcx-checks { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .svcx-faq[open] .svcx-faq-a,
    .svcx-related-card,
    .svcx-checks li,
    .svcx-mobile-cta { animation: none !important; transition: none !important; }
}

/* =========================================================================
   Service cards grid (.svcx-scard) — used on /services
   ========================================================================= */
.svcx-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    position: relative;
    z-index: 5;
}
/* Wider canvas so five cards still breathe. Scoped to the services page only. */
.svcx-services-section .container { max-width: 1560px; }

@media (max-width: 1500px) { .svcx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1180px) { .svcx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .svcx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 560px)  { .svcx-grid { grid-template-columns: 1fr; } }
.svcx-grid-empty {
    grid-column: 1 / -1;
    text-align: center;
    opacity: .6;
    padding: 40px 0;
}

.svcx-scard {
    display: flex;
    border-radius: var(--svcx-radius);
    border: 1px solid var(--svcx-line);
    background: var(--svcx-card);
    overflow: hidden;
    transition: transform .3s cubic-bezier(.32, .72, 0, 1), border-color .3s ease, box-shadow .3s ease;
}
.svcx-scard:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--svcx-primary-rgb), .45);
    box-shadow: 0 22px 52px rgba(var(--theme-bg-rgb, 6, 9, 20), .28);
}

.svcx-scard-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

/* ---------- Media ---------- */
.svcx-scard-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(var(--svcx-primary-rgb), .16), transparent 70%);
    display: grid;
    place-items: center;
}
.svcx-scard-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.32, .72, 0, 1);
}
.svcx-scard:hover .svcx-scard-media img { transform: scale(1.05); }

.svcx-scard-fallback {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: var(--svcx-primary);
    background: rgba(var(--svcx-primary-rgb), .12);
    border: 1px solid rgba(var(--svcx-primary-rgb), .26);
}

.svcx-scard-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #fff;
    background: var(--gradient-glow, linear-gradient(135deg, #6366f1, #22d3ee));
    box-shadow: 0 4px 14px rgba(var(--theme-bg-rgb, 6, 9, 20), .3);
}

/* ---------- Body ---------- */
.svcx-scard-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
    padding: 16px 17px 17px;
}

.svcx-scard-eyebrow {
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--svcx-primary);
    /* One line only, so every card's title starts at the same height. */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.svcx-scard-body h3 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 750;
    letter-spacing: -.015em;
    line-height: 1.32;
    color: var(--text-primary, #f8fafc);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.64em;
}

.svcx-scard-body p {
    margin: 0;
    font-size: .845rem;
    line-height: 1.62;
    color: var(--text-secondary, #aab2c5);
    /* NOTE: `flex: 1` must NOT be used here. A flex item is blockified, which
       turns `display: -webkit-box` into `flow-root` and silently kills
       -webkit-line-clamp. The CTA is pushed down with margin-top:auto instead. */
    flex: 0 0 auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.svcx-scard-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.svcx-scard-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 8px;
    font-size: .77rem;
    font-weight: 600;
    color: var(--text-secondary, #aab2c5);
    background: rgba(127, 127, 127, .1);
    border: 1px solid var(--svcx-line);
    white-space: nowrap;
}
.svcx-scard-meta svg { color: var(--svcx-primary); flex: 0 0 auto; }

.svcx-scard-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--svcx-line);
    font-size: .88rem;
    font-weight: 700;
    color: var(--svcx-primary);
}
.svcx-scard-cta .arrow-icon { transition: transform .3s ease; }
.svcx-scard:hover .svcx-scard-cta .arrow-icon { transform: translateX(5px); }

/* Per-card accent tones, driven by the admin "Card Style Class" field. */
.svcx-scard.gradient-card-1 { --svcx-primary: var(--accent-cyan, #22d3ee); }
.svcx-scard.gradient-card-2 { --svcx-primary: var(--accent-violet, #8b5cf6); }
.svcx-scard.gradient-card-3 { --svcx-primary: var(--accent-blue, #3b82f6); }
.svcx-scard.gradient-card-4 { --svcx-primary: var(--accent-pink, #ec4899); }
.svcx-scard.gradient-card-5 { --svcx-primary: var(--accent-indigo, #6366f1); }
.svcx-scard.gradient-card-6 { --svcx-primary: var(--accent-cyan, #22d3ee); }

@media (max-width: 720px) {
    .svcx-scard-body { padding: 14px 15px 16px; gap: 7px; }
    .svcx-scard-body h3 { font-size: .96rem; }
    .svcx-scard-body p { font-size: .8rem; -webkit-line-clamp: 2; }
    .svcx-scard-meta span { padding: 4px 9px; font-size: .72rem; }
    .svcx-scard:active { transform: scale(.985); }
}

@media (prefers-reduced-motion: reduce) {
    .svcx-scard, .svcx-scard-media img, .svcx-scard-cta .arrow-icon { transition: none !important; }
}
