/* ==========================================================================
   Arshan – Features / Services sections (20 styles)
   Load after style.css, placeholders.css and about.css. Uses the same
   section shell as the about sections (.ab, .ab__grid, .ab-kicker,
   .ab__title, .ab-checks, .ab-ico …) and adds the .sv-* pieces below.
   --------------------------------------------------------------------------
   1. Service cards     4. Rows & lists      7. Bento
   2. Card variants     5. Steps             8. Comparison table
   3. Media cards       6. Tabs              9. Overlay & stats bar
                                             10. Responsive
   ========================================================================== */

/* 1. Service cards ------------------------------------------------------ */
.sv-cards { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.sv-card { position: relative; display: flex; flex-direction: column; align-items: center; padding: 24px 18px 20px; border: 1px solid var(--ab-line); border-radius: 14px; background: var(--ab-card); box-shadow: var(--shadow-sm); text-align: center; transition: transform .25s, box-shadow .25s, border-color .25s; }
.sv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-100); }
.sv-card h3 { margin: 14px 0 4px; font-size: 14.5px; color: var(--ab-head); }
.sv-card p { font-size: 12.5px; line-height: 1.5; max-width: 22ch; }
.sv-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 12.5px; font-weight: 600; color: var(--ab-accent); }
.sv-more .icon { width: 13px; height: 13px; transition: transform .2s; }
.sv-card:hover .sv-more .icon, .sv-more:hover .icon { transform: translateX(3px); }
.sv-card .ab-ico { width: 46px; height: 46px; border-radius: 14px; }
.sv-card .ab-ico .icon { width: 21px; height: 21px; }
/* whole card clickable while keeping one link */
.sv-card .sv-more::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* 2. Card variants ------------------------------------------------------ */
.sv-card--outline .ab-ico { background: #fff; border: 1.5px solid var(--primary-100); }
.sv-card--row { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: start; text-align: left; padding: 18px; }
.sv-card--row .ab-ico, .sv-card--row > .pr-node { grid-row: span 2; }
.sv-card--row h3 { margin: 0 0 2px; }
.sv-card--row p { max-width: none; }
.sv-card--dark { align-items: flex-start; text-align: left; padding: 18px; background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); box-shadow: none; }
.sv-card--dark h3 { margin-top: 12px; }
.sv-card--dark .ab-ico { background: linear-gradient(135deg, #7b6bff, var(--primary)); color: #fff; width: 38px; height: 38px; }
.sv-card--dark .ab-ico .icon { width: 17px; height: 17px; }
.sv-card--hover.is-featured, .sv-card--hover:hover { background: linear-gradient(160deg, #f4f2ff, #e7e2ff); border-color: #d6d0ff; transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(91,76,240,.5); }
.sv-card--hover.is-featured .ab-ico, .sv-card--hover:hover .ab-ico { background: var(--primary); color: #fff; }
.sv-cards:has(.sv-card--hover:hover) .sv-card--hover.is-featured:not(:hover) { background: var(--ab-card); border-color: var(--ab-line); transform: none; box-shadow: var(--shadow-sm); }
.sv-cards:has(.sv-card--hover:hover) .sv-card--hover.is-featured:not(:hover) .ab-ico { background: var(--primary-50); color: var(--ab-accent); }

/* 3. Media cards -------------------------------------------------------- */
.sv-card--media { align-items: flex-start; text-align: left; padding: 10px 10px 16px; }
.sv-card--media .ab-img { width: 100%; aspect-ratio: 1.45; min-height: 0; border-radius: 10px; }
.sv-card--media h3 { margin: 12px 6px 2px; }
.sv-card--media p, .sv-card--media .sv-more { margin-inline: 6px; }

/* 4. Rows & lists ------------------------------------------------------- */
.sv-list { display: grid; gap: 16px; margin-top: 22px; }
.sv-list li { display: flex; gap: 14px; align-items: flex-start; }
.sv-list strong { display: block; font-size: 14px; color: var(--ab-head); }
.sv-list span { font-size: 12.5px; }
.sv-rows { display: grid; gap: 10px; }
.sv-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--ab-line); border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.sv-row:hover { border-color: var(--primary-100); box-shadow: var(--shadow); }
.sv-row strong { display: block; font-size: 13.5px; color: var(--ink); }
.sv-row small { font-size: 12px; color: var(--muted); }
.sv-row > .icon { margin-left: auto; width: 16px; height: 16px; color: var(--muted); transition: transform .2s, color .2s; }
.sv-row:hover > .icon { transform: translateX(3px); color: var(--primary); }
.sv-iconrow { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--ab-line); }
.sv-iconrow li { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ab-head); text-align: center; }
.sv-iconrow .icon { width: 22px; height: 22px; color: var(--ab-head); }

/* 5. Steps -------------------------------------------------------------- */
.sv-steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; gap: 12px; margin-top: 28px; list-style: none; padding: 0; }
.sv-steps > li { text-align: center; }
.sv-steps .ab-ico { margin: 0 auto 10px; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--primary-100); background: #fff; }
.sv-steps b { display: block; font-size: 20px; color: var(--ab-head); }
.sv-steps h3 { font-size: 14px; color: var(--ab-head); }
.sv-steps p { font-size: 12px; margin-top: 2px; }
.sv-steps__arrow { align-self: center; margin-top: -40px; color: var(--muted-2); }
.sv-steps__arrow .icon { width: 20px; height: 20px; }
.sv-path { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; list-style: none; padding: 0; }
.sv-path::before { content: ""; position: absolute; left: 12%; right: 12%; top: 40px; height: 60px; border-top: 2px dashed var(--primary-100); border-radius: 50%; }
.sv-path > li { position: relative; padding: 18px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--ab-line); text-align: center; box-shadow: var(--shadow-sm); }
.sv-path > li:nth-child(2) { transform: translateY(16px); }
.sv-path .ab-ico { margin: -36px auto 10px; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; box-shadow: 0 0 0 6px #fff; }
.sv-path > li:nth-child(2) .ab-ico { background: #22b8a3; }
.sv-path > li:nth-child(3) .ab-ico { background: #8b5cf6; }
.sv-path b { display: block; font-size: 18px; color: var(--ab-head); }
.sv-path h3 { font-size: 13.5px; color: var(--ab-head); }
.sv-path p { font-size: 12px; margin-top: 4px; }

/* 6. Tabs --------------------------------------------------------------- */
.sv-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 22px 0 18px; }
.sv-tabs button { height: 34px; padding: 0 16px; border-radius: 99px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); transition: background-color .2s, color .2s; }
.sv-tabs button:hover { color: var(--primary); }
.sv-tabs button[aria-selected="true"] { background: var(--primary); color: #fff; }
.sv-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: center; text-align: left; }
.sv-panel[hidden] { display: none; }
.sv-panel .ab-img { aspect-ratio: 1.4; }
.sv-panel h3 { font-size: 17px; line-height: 1.25; color: var(--ab-head); }
.sv-panel p { font-size: 12.5px; margin-top: 6px; line-height: 1.6; }
.sv-panel .ab-checks { margin-top: 12px; gap: 6px; }
.sv-panel .ab-checks li { font-size: 12.5px; }

/* 7. Bento -------------------------------------------------------------- */
.sv-bento { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; margin-top: 24px; text-align: left; }
.sv-tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 104px; padding: 16px; border-radius: 14px; background: var(--bg, #f4f2ff); transition: transform .2s; }
.sv-tile:hover { transform: translateY(-3px); }
.sv-tile strong { font-size: 13.5px; color: var(--ink); }
.sv-tile .ab-ico { width: 34px; height: 34px; background: #fff; color: var(--c, var(--primary)); }
.sv-tile--tall { grid-row: span 2; }
.sv-tile__go { align-self: flex-start; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; }
.sv-tile__go .icon { width: 15px; height: 15px; }

/* 8. Comparison table -------------------------------------------------- */
.sv-table-wrap { position: relative; overflow-x: auto; margin-top: 22px; }
.sv-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; text-align: left; }
.sv-table th, .sv-table td { padding: 10px 14px; border-bottom: 1px solid var(--ab-line); }
.sv-table thead th { font-size: 12.5px; color: var(--ab-head); }
.sv-table thead th:not(:first-child), .sv-table td { text-align: center; }
.sv-table tbody th { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink-2); }
.sv-table tbody th .icon { width: 15px; height: 15px; color: var(--primary); }
.sv-table .is-pro { background: var(--primary-50); }
.sv-table thead .is-pro { background: var(--primary); color: #fff; border-radius: 8px 8px 0 0; }
.sv-table tbody tr:last-child .is-pro { border-radius: 0 0 8px 8px; }
.sv-mark { display: inline-grid; place-items: center; width: 20px; height: 20px; }
.sv-mark .icon { width: 15px; height: 15px; stroke-width: 2.6; }
.sv-mark--yes { color: #16a571; }
.sv-mark--no { color: #ef3e5c; }
.sv-mark--part { color: #e9a23b; }

/* 9. Overlay & stats bar ----------------------------------------------- */
.sv-overlay-card { color: var(--muted); position: relative; z-index: 2; max-width: 360px; padding: 24px; border-radius: 16px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); box-shadow: var(--shadow-lg); }
.sv-statbar { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; padding: 14px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); text-align: center; }
.sv-statbar li { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; color: var(--muted); }
.sv-statbar .icon { width: 18px; height: 18px; color: var(--primary); margin-bottom: 4px; }
.sv-statbar strong { font-size: 17px; color: var(--ink); }
.sv-statline { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 24px; }
.sv-statline li { display: flex; align-items: center; gap: 12px; }
.sv-statline strong { display: block; font-size: 22px; color: var(--ab-head); line-height: 1.1; }
.sv-statline span { font-size: 12px; }
.ab--photo { --ab-fg: rgba(255,255,255,.8); --ab-head: #fff; --ab-accent: #c4bbff; --ab-line: rgba(255,255,255,.18); }
.ab--photo::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10,12,30,.82), rgba(10,12,30,.35)); }
.ab--photo > :not([class^="ph-"]) { position: relative; z-index: 2; }
.ab--photo .ab-link span { border-color: rgba(255,255,255,.6); }
.ab--bright::after { display: none; }

/* 10. Responsive -------------------------------------------------------- */
@container ab (max-width: 760px) {
  .sv-panel { gap: 16px; }
  .sv-statbar { grid-template-columns: repeat(2, 1fr); }
}
@container ab (max-width: 540px) {
  .sv-cards { grid-template-columns: 1fr; }
  .sv-panel { grid-template-columns: 1fr; }
  .sv-bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .sv-tile--tall { grid-row: auto; grid-column: 1 / -1; }
  .sv-steps { grid-template-columns: 1fr; }
  .sv-steps__arrow { transform: rotate(90deg); margin: 0 auto; }
  .sv-path { grid-template-columns: 1fr; gap: 30px; }
  .sv-path::before { display: none; }
  .sv-path > li:nth-child(2) { transform: none; }
  .sv-iconrow { justify-content: flex-start; }
}
