/* ==========================================================================
   Single service (single-service.php). Builds on main.css components:
   .page-hero, .entry-content, .panel, .chips, .feature, .btn, .link-arrow.
   ========================================================================== */

/* ---------- Hero ---------- */
.svc-hero .breadcrumb { flex-wrap: wrap; }
.svc-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Layout ---------- */
.svc-single-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; align-items: start; }

/* ---------- Article ---------- */
.svc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 22px; }
.svc-head .icon-box { width: 60px; height: 60px; margin: 0; }
.svc-head .icon-box i { font-size: 1.45rem; }
.svc-badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px;
  background: var(--gold-100); border: 1px solid #f6dfa9; color: #6b4a05; font-size: 0.8rem; font-weight: 700;
}
.svc-badge i { font-size: 0.72rem; color: #b7800f; }
.svc-article > h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); }

/* The service text, with any list in it shown as a checklist */
.svc-content.entry-content { max-width: none; margin: 0 0 8px; font-size: 1.08rem; }
.svc-content.entry-content > p { color: var(--muted); }
.svc-content.entry-content ul { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.svc-content.entry-content li { position: relative; margin: 0; padding-left: 34px; font-size: 1rem; color: var(--ink-2); }
.svc-content.entry-content ul li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23286890' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.svc-label { margin: 30px 0 12px; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.svc-points { margin: 0 0 8px; }
.svc-chips .chip { padding: 8px 14px; font-size: 0.9rem; }
.svc-chips .chip .icon { width: 14px; height: 14px; stroke-width: 3; }

/* Who it's for + related tool */
.svc-facts { display: grid; gap: 18px; margin-top: 36px; }
.svc-facts.has-two { grid-template-columns: 1fr 1fr; }
.svc-facts .panel { padding: 24px; border-radius: 20px; }
.svc-facts .panel h3, .svc-tool .h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 1.05rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.svc-tool .h3 .icon { width: 22px; height: 22px; color: var(--green-700); }
.svc-facts .panel h3 .icon { width: 22px; height: 22px; }
.svc-facts .panel p { margin: 0; font-size: 0.97rem; color: var(--ink-2); }
a.svc-tool { display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s; }
a.svc-tool:hover { border-color: var(--green-700); box-shadow: var(--shadow); }
.svc-tool-text { margin-bottom: 14px; font-size: 0.97rem; color: var(--ink-2); }
.svc-tool .link-arrow { margin-top: auto; }
a.svc-tool:hover .link-arrow .icon { transform: translateX(3px); }

.svc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }

/* Related reading */
.svc-reading { margin-top: 48px; padding-top: 8px; border-top: 1px solid var(--line); }
.svc-reading ul { display: grid; gap: 12px; }
.svc-reading a { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.svc-reading a:hover { border-color: var(--green-100); box-shadow: var(--shadow); }
.svc-reading a > span:nth-child(2) { flex: 1; min-width: 0; }
.svc-reading strong { display: block; font-size: 0.98rem; line-height: 1.4; color: var(--ink); }
.svc-reading a:hover strong { color: var(--green-700); }
.svc-reading strong + span { display: block; margin-top: 2px; font-size: 0.85rem; color: var(--muted); }
.svc-reading-ic { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--green-50); color: var(--green-700); }
.svc-reading a > .icon { width: 18px; height: 18px; color: var(--green-700); transition: transform .2s; }
.svc-reading a:hover > .icon { transform: translateX(3px); }

/* ---------- Sidebar ---------- */
.svc-aside { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 24px; }
.admin-bar .svc-aside { top: calc(var(--header-h) + 60px); }

.svc-consult {
  position: relative; overflow: hidden; padding: 28px; border-radius: var(--radius-lg);
  background: var(--navy-900); color: var(--on-dark); box-shadow: var(--shadow-lg);
}
.svc-consult::before {
  content: ""; position: absolute; width: 340px; height: 340px; right: -150px; top: -170px; border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 174, 78, 0.3), rgba(95, 174, 78, 0) 70%); pointer-events: none;
}
.svc-consult > * { position: relative; }
.svc-consult-head { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.svc-consult .advisor-photo, .svc-consult .advisor-initials { width: 56px; height: 56px; font-size: 1.2rem; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08); }
.svc-consult-head > div { min-width: 0; }
.svc-consult-head > div strong { display: block; font-size: 1.05rem; color: #fff; }
.svc-consult-head > div span { display: block; font-size: 0.88rem; }
.svc-consult-reg { display: flex; align-items: center; gap: 8px; margin: -6px 0 18px; padding: 10px 12px; border-radius: 12px; background: rgba(95, 174, 78, 0.14); border: 1px solid rgba(95, 174, 78, 0.25); font-size: 0.85rem; font-weight: 600; color: #fff; }
.svc-consult-reg .icon { width: 16px; height: 16px; color: var(--green-500); }
.svc-consult h3 { margin-bottom: 8px; font-size: 1.25rem; color: #fff; }
.svc-consult > p { font-size: 0.95rem; }
.svc-consult-actions { display: grid; gap: 10px; margin-top: 20px; }
.svc-consult-actions .btn { width: 100%; }
.svc-consult-actions .btn i { font-size: 1.1rem; }
.svc-consult-note { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 0.86rem; }
.svc-consult-note .icon { width: 16px; height: 16px; color: var(--green-500); }

.svc-others { padding: 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.svc-others h3 { margin-bottom: 14px; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.svc-others ul { display: grid; gap: 4px; margin-bottom: 18px; }
.svc-others a:not(.link-arrow) { display: flex; align-items: center; gap: 14px; padding: 10px 12px; margin: 0 -12px; border-radius: 12px; font-weight: 600; color: var(--ink-2); transition: background-color .2s, color .2s; }
.svc-others a:not(.link-arrow):hover { background: var(--bg-soft); color: var(--green-700); }
.svc-others a > span:nth-child(2) { flex: 1; min-width: 0; }
.svc-others .icon-box { width: 40px; height: 40px; margin: 0; flex: none; border-radius: 11px; }
.svc-others .icon-box i { font-size: 1rem; }
.svc-others a > .icon { width: 16px; height: 16px; opacity: 0.5; }

/* ---------- Safeguards ---------- */
.svc-trust-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.svc-trust .section-head { margin-bottom: 0; }
.svc-trust .section-head p { margin-bottom: 20px; }
.svc-trust-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.svc-trust-list .feature { padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.svc-trust-list p { font-size: 0.93rem; }
.svc-paid { grid-column: 1 / -1; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .svc-single-grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 44px; }
}
@media (max-width: 980px) {
  .svc-single-grid, .svc-trust-grid { grid-template-columns: 1fr; gap: 40px; }
  .svc-aside { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (max-width: 640px) {
  .svc-hero-actions .btn { flex: 1 1 100%; }
  .svc-facts.has-two, .svc-trust-list, .svc-aside { grid-template-columns: 1fr; }
  .svc-actions .btn { flex: 1 1 100%; }
  .svc-consult { padding: 24px 20px; }
  .svc-others { padding: 22px 20px; }
  .svc-reading a { padding: 14px; gap: 12px; }
}
