/* The two hub pages (سایت آماده / خدمات اختصاصی) and the home page's path cards. Built on the site tokens only. */
.hub-hero .section-head { text-align: start; }
.hub-hero .section-head p { margin-inline: 0; max-width: 62ch; }
.hub-crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.hub-crumbs a { color: inherit; text-decoration: none; }
.hub-crumbs a:hover { color: var(--text); }
.hub-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hub-actions .btn { min-height: 46px; }
.hub-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 18px 0 0; padding: 0; color: var(--text-muted); font-size: 14px; }
.hub-facts li { display: inline-flex; gap: 5px; align-items: baseline; }
.hub-facts b { color: var(--accent); font-weight: 700; }

.section-head h2 { text-align: start; }

/* Cards */
.hub-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .hub-grid-4, .hub-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .hub-grid-3 { grid-template-columns: repeat(3, 1fr); } .hub-grid-4 { grid-template-columns: repeat(4, 1fr); } }
.hub-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--radius-lg); color: inherit; text-decoration: none; }
.hub-card h3 { font-size: 18px; margin: 4px 0 0; }
.hub-card p { margin: 0; color: var(--text-muted); font-size: 14.5px; line-height: 1.8; }
.hub-card-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-border); }
.hub-card-icon svg { width: 26px; height: 26px; }
.hub-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--text); }
.hub-list li { display: flex; align-items: center; gap: 8px; }
.hub-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); flex: none; }
.hub-card-actions { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hub-card-actions .btn { min-height: 44px; }
.hub-link { color: var(--accent-2); text-decoration: none; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.hub-link:hover { text-decoration: underline; }
.hub-more { margin: 14px 0 0; }

.hub-service-icon { display: grid; place-items: center; height: 96px; }
.hub-service-icon img { max-height: 84px; width: auto; height: auto; max-width: 110px; object-fit: contain; }
.hub-service:hover .hub-link span { transform: translateX(-4px); }
.hub-link span { transition: transform var(--dur-fast) var(--ease); }

/* Filter chips */
.hub-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.hub-chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border, rgba(255,255,255,.14)); background: transparent; color: var(--text-muted); font: inherit; font-size: 14px; cursor: pointer; transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease); }
.hub-chip:hover { color: var(--text); }
.hub-chip.is-on { color: var(--accent-ink); background: var(--accent-2); border-color: var(--accent-2); font-weight: 700; }

/* Samples */
.hub-samples { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .hub-samples { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .hub-samples { grid-template-columns: repeat(3, 1fr); } }
.hub-sample { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; color: inherit; text-decoration: none; }
.hub-sample[hidden] { display: none; }
.hub-sample-media { position: relative; display: block; aspect-ratio: 16 / 10; background: #171f37; overflow: hidden; }
.hub-sample-media img, .hub-sample-media svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.hub-sample-badge { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; padding: 4px 10px; border-radius: 999px; font-size: 12px; background: rgba(10, 14, 26, .72); color: #fff; backdrop-filter: blur(6px); }
.hub-sample-body { display: grid; gap: 4px; padding: 14px 16px 16px; }
.hub-sample-body b { font-size: 16px; }
.hub-sample-body small { color: var(--text-muted); font-size: 13px; line-height: 1.7; }

/* Steps */
.hub-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: none; }
@media (min-width: 720px) { .hub-steps { grid-template-columns: repeat(3, 1fr); } .hub-steps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .hub-steps-4 { grid-template-columns: repeat(4, 1fr); } }
.hub-steps li { padding: 20px; border-radius: var(--radius-lg); display: grid; gap: 6px; }
.hub-steps li > b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-2-soft); color: var(--accent-2); border: 1px solid var(--accent-2-border); font-size: 15px; }
.hub-steps h3 { font-size: 16px; margin: 4px 0 0; }
.hub-steps p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.8; }

/* FAQ / empty / closing call */
.hub-faq { display: flex; flex-direction: column; gap: 10px; }
.hub-faq .faq-item { padding: 16px 20px; border-radius: var(--radius-md); }
.hub-faq .faq-item summary { cursor: pointer; font-weight: 700; color: var(--text); min-height: 28px; }
.hub-faq .faq-item p { color: var(--text-muted); margin: 10px 0 0; font-size: 14.5px; line-height: 1.9; }
.hub-empty { padding: 26px; border-radius: var(--radius-lg); display: grid; gap: 14px; justify-items: start; }
.hub-empty p { margin: 0; color: var(--text-muted); }
.hub-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; border-radius: var(--radius-lg); }
.hub-cta h2 { font-size: 19px; margin: 0 0 4px; }
.hub-cta p { margin: 0; color: var(--text-muted); font-size: 14.5px; }
.hub-cta .btn { min-height: 46px; }

/* Home page: the two path cards */
.paths { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .paths { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
.path-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px 24px; border-radius: var(--radius-lg); color: inherit; text-decoration: none; overflow: hidden; }
.path-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 100% 0%, var(--path-glow, var(--accent-soft)), transparent 60%); pointer-events: none; }
.path-card > * { position: relative; }
.path-ready { --path-glow: var(--accent-2-soft); }
.path-custom { --path-glow: var(--accent-soft); }
.path-eyebrow { font-size: 13px; color: var(--text-muted); }
.path-card h3 { font-size: clamp(22px, 3.2vw, 28px); margin: 0; }
.path-card p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.85; }
.path-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 4px 0 0; padding: 0; }
.path-chips li { padding: 5px 12px; border-radius: 999px; font-size: 13px; border: 1px solid var(--border, rgba(255,255,255,.14)); color: var(--text); }
.path-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.path-foot .btn { min-height: 46px; }
.path-price { font-size: 14px; color: var(--text-muted); }
.path-price b { color: var(--accent); }
.path-rail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.path-rail-head h2 { font-size: 20px; margin: 0; }
.path-rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 300px); gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.path-rail > * { scroll-snap-align: start; }
@media (min-width: 960px) { .path-rail { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; overflow: visible; } }
.paths-help { text-align: center; margin: 18px 0 0; color: var(--text-muted); font-size: 14.5px; }
.paths-help a { color: var(--accent-2); font-weight: 700; text-decoration: none; display: inline-block; padding: 8px 2px; }
.paths-help a:hover { text-decoration: underline; }
