/* ==========================================================================
   Service Page Builder — CSS cho các Section (frontend).
   Chỉ dùng token & class có sẵn của theme (--brand, --navy, --line, .btn,
   .hero, .post-card, .newsletter-banner…). KHÔNG redesign: chỉ thêm các
   khối còn thiếu cho Service Page, cùng ngôn ngữ thiết kế.
   ========================================================================== */

/* Trang không mở đầu bằng Hero: chừa chỗ cho header trong suốt */
.svc-page--no-hero { padding-top: 76px; }

/* ---- Khung section ---- */
.svc-section { position: relative; }
.svc-bg-soft { background: var(--soft); }
.svc-bg-dark { background: var(--navy); color: var(--on-navy); }
.svc-bg-dark .section-title, .svc-bg-dark h3 { color: #fff; }
.svc-bg-dark .svc-intro, .svc-bg-dark .svc-card-text { color: #c9c6f0; }
.svc-bg-dark .pill { background: rgba(255,255,255,.14); color: #d9d4ff; }

.svc-head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 36px; max-width: 760px; }
.svc-head.is-center { align-items: center; text-align: center; margin-inline: auto; }
.svc-head .section-title { margin-bottom: 0; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.02em; }
.svc-intro { color: #5f5f8c; font-size: 16px; line-height: 1.75; }
.svc-intro p + p, .svc-prose p + p, .svc-card-text p + p { margin-top: .8em; }
.svc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.svc-actions.is-center { justify-content: center; }
.svc-note { margin-top: 24px; text-align: center; font-size: 14px; color: var(--muted); }
.svc-empty { text-align: center; color: var(--muted); grid-column: 1 / -1; }
.svc-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; font-size: 14px; color: var(--brand); }
.svc-more:hover { gap: 10px; }
.svc-bg-dark .svc-more { color: var(--accent); }

/* ---- Hero ---- */
.svc-hero { padding-bottom: 64px; }
.svc-hero .svc-hero-text { display: flex; flex-direction: column; align-items: center; }
.svc-hero .breadcrumb { justify-content: center; margin-bottom: 18px; flex-wrap: wrap; }
.svc-hero .svc-kicker { margin-bottom: 14px; }
.svc-hero h1 { max-width: 860px; }
.svc-hero-desc { max-width: 620px; margin: 18px auto 0; color: #5a5a8a; font-size: 17px; line-height: 1.7; }
.svc-hero .svc-actions { justify-content: center; }
.svc-hero--split .svc-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; text-align: left; }
.svc-hero--split .svc-hero-text { align-items: flex-start; }
.svc-hero--split .breadcrumb, .svc-hero--split .svc-actions { justify-content: flex-start; }
.svc-hero--split .svc-hero-desc { margin-left: 0; }
.svc-hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: 0 24px 50px rgba(38,38,90,.18); }

/* ---- Prose (Service Detail) ---- */
.svc-prose { font-size: 17px; line-height: 1.85; color: #34345f; }
.svc-detail .svc-prose.article-content { padding: 0; width: min(720px, 100%); margin-inline: 0; }
.svc-detail.is-narrow .container > * { margin-inline: auto; }
.svc-detail.is-narrow .svc-head { margin-inline: auto; }
.svc-detail.is-wide .svc-prose.article-content { width: 100%; }
.svc-detail .svc-prose > :first-child { margin-top: 0; }
.svc-bg-dark .svc-prose, .svc-bg-dark .article-content { color: #d8d5f5; }
.svc-bg-dark .article-content h2, .svc-bg-dark .article-content h3 { color: #fff; }

/* ---- Image + Text ---- */
.svc-imgtext { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.svc-imgtext.no-image { grid-template-columns: minmax(0, 720px); justify-content: center; }
.svc-imgtext.is-reverse .svc-it-figure { order: 2; }
.svc-it-figure { margin: 0; }
.svc-it-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.svc-it-body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.svc-it-body .section-title { margin-bottom: 0; font-size: clamp(26px, 3.2vw, 34px); }

/* ---- Cards (Features / Problem) ---- */
.svc-grid { display: grid; gap: 24px; }
.svc-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.svc-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.svc-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px 24px;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.svc-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(38,38,90,.1); border-color: color-mix(in srgb, var(--brand) 40%, #fff); }
.svc-card h3 { font-size: 18px; font-weight: 800; }
.svc-card-text { color: #5f5f8c; font-size: 15px; line-height: 1.7; }
.svc-icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 12px; background: var(--grad-brand); color: var(--navy); margin-bottom: 4px; }
.svc-bg-dark .svc-card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.svc-problem .svc-icon { background: #ffe3e8; color: #cc3a4a; }

/* ---- Service cards (dynamic) ---- */
.svc-service-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; gap: 0; transition: transform .2s, box-shadow .2s; }
.svc-service-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(38,38,90,.1); }
.svc-service-card .post-image { border-radius: 0; aspect-ratio: 16 / 10; }
.svc-service-card .post-body { padding: 22px 22px 24px; flex: 1; }
.svc-card-excerpt { color: #5f5f8c; font-size: 14.5px; line-height: 1.65; }

/* ---- Process ---- */
.svc-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.svc-step { counter-increment: step; position: relative; padding: 28px 22px 24px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); }
.svc-step::before {
  content: counter(step, decimal-leading-zero); display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: 15px; margin-bottom: 16px;
}
.svc-step h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.svc-bg-dark .svc-step { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.svc-bg-dark .svc-step::before { background: var(--accent); color: var(--navy); }

/* ---- Pricing ---- */
.svc-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; align-items: stretch; }
.svc-plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 32px 26px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); }
.svc-plan h3 { font-size: 19px; font-weight: 800; }
.svc-price { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 2px; }
.svc-price b { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.svc-price small { color: var(--muted); font-size: 14px; }
.svc-plan-list { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.svc-plan-list li { display: flex; gap: 10px; font-size: 15px; color: #4b4b7a; }
.svc-plan-list li.is-off { color: var(--muted); text-decoration: line-through; }
.svc-tick { flex: none; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 16%, #fff); color: var(--brand); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.svc-plan-list .is-off .svc-tick { background: var(--soft); color: var(--muted); }
.svc-plan-cta { margin-top: auto; }
.svc-plan-cta .btn { width: 100%; }
.svc-plan.is-featured { border-color: var(--brand); box-shadow: 0 22px 46px rgba(124,108,240,.2); }
.svc-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 4px 14px; border-radius: 999px; background: var(--grad-brand); color: var(--navy); font-size: 12px; font-weight: 800; white-space: nowrap; }

/* ---- FAQ ---- */
.svc-faq { display: flex; flex-direction: column; gap: 12px; width: min(820px, 100%); margin-inline: auto; }
.svc-faq-item { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.svc-faq-item summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 700; font-size: 16px; position: relative; }
.svc-faq-item summary::-webkit-details-marker { display: none; }
.svc-faq-item summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 500; color: var(--brand); transition: transform .2s; }
.svc-faq-item[open] summary::after { content: '–'; }
.svc-faq-item[open] { border-color: color-mix(in srgb, var(--brand) 45%, #fff); }
.svc-faq-answer { padding: 0 22px 20px; color: #5f5f8c; font-size: 15.5px; line-height: 1.75; }
.svc-bg-dark .svc-faq-item { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.svc-bg-dark .svc-faq-answer { color: #c9c6f0; }

/* ---- Statistics ---- */
.svc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px; text-align: center; }
.svc-stat b { display: block; font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -.03em; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.svc-stat span { display: block; margin-top: 8px; font-size: 14.5px; color: #5f5f8c; }
.svc-bg-dark .svc-stat span { color: #c9c6f0; }

/* ---- Case studies ---- */
.svc-cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.svc-case { display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.svc-case-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.svc-case-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; }
.svc-case h3 { font-size: 19px; font-weight: 800; }
.svc-result { font-weight: 800; font-size: 17px; color: var(--brand); }
.svc-bg-dark .svc-case { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.svc-bg-dark .svc-result { color: var(--accent); }

/* ---- Testimonials ---- */
.svc-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.svc-quote { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding: 30px 26px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); }
.svc-quote blockquote { margin: 0; font-size: 16.5px; line-height: 1.75; font-weight: 500; color: var(--ink); }
.svc-quote blockquote::before { content: '“'; display: block; font-size: 46px; line-height: .6; font-weight: 800; color: var(--brand-2); margin-bottom: 8px; }
.svc-quote figcaption { display: flex; align-items: center; gap: 12px; }
.svc-quote figcaption span { display: flex; flex-direction: column; line-height: 1.35; }
.svc-quote figcaption b { font-size: 15px; }
.svc-quote figcaption small { font-size: 13px; color: var(--muted); }
.svc-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.svc-bg-dark .svc-quote { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.svc-bg-dark .svc-quote blockquote { color: #fff; }

/* ---- CTA ---- */
.svc-cta { padding: 56px 0 72px; }
.svc-cta-inner h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.02em; }
.svc-cta-text { margin-top: 12px; font-size: 16px; color: rgba(38,38,90,.8); max-width: 620px; margin-inline: auto; }
.svc-cta--dark .svc-cta-inner { background: var(--navy); color: #fff; }
.svc-cta--dark .svc-cta-text { color: #c9c6f0; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0,0,0,.25); }
.btn-ghost-light { border-color: rgba(255,255,255,.6); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: #fff; color: var(--navy); }

/* ---- Related posts ---- */
.svc-related-posts .svc-head { margin-bottom: 32px; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .svc-grid.cols-3, .svc-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-imgtext, .svc-hero--split .svc-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .svc-imgtext.is-reverse .svc-it-figure { order: 0; }
  .svc-hero--split .svc-hero-grid { text-align: center; }
  .svc-hero--split .svc-hero-text { align-items: center; }
  .svc-hero--split .breadcrumb, .svc-hero--split .svc-actions { justify-content: center; }
  .svc-hero--split .svc-hero-desc { margin-inline: auto; }
}
@media (max-width: 600px) {
  .svc-grid.cols-2, .svc-grid.cols-3, .svc-grid.cols-4 { grid-template-columns: 1fr; }
  .svc-card { padding: 22px 20px; }
  .svc-prose { font-size: 16px; }
  .svc-hero { padding-bottom: 44px; }
  .svc-actions .btn { flex: 1 1 100%; }
  .svc-cta { padding: 40px 0 56px; }
}
