/* Service and city pages (inc/emdad-service-pages.php). Uses the theme's own colours and blocks
   (.page-header, .content-wrapper, .page-content, .sidebar-box); only what those do not cover is here. */

.svc-preview { background: #fef3c7; color: #78350f; text-align: center; font-size: 0.9rem; font-weight: 600; padding: 8px 16px; }

/* Header band: the phone number is what the visitor came for, so it is the largest thing after the title. */
.svc-head { text-align: right; margin-bottom: 40px; padding: 44px 0 48px; }
.svc-head h1 { font-size: 2.3rem; line-height: 1.5; margin-bottom: 12px; }
.svc-head p { max-width: 62ch; line-height: 2; }
.svc-crumbs { font-size: 0.9rem; color: #94a3b8; margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.svc-crumbs a { color: #cbd5e1; text-decoration: underline; text-underline-offset: 4px; }
.svc-crumbs a:hover { color: #fff; }
.svc-call { display: inline-flex; align-items: center; gap: 18px; margin-top: 26px; background: var(--primary); color: #000; border-radius: 10px; padding: 12px 22px; }
.svc-call span { font-weight: 700; font-size: 1rem; }
.svc-call b { font-size: 1.7rem; font-weight: 900; letter-spacing: 0.02em; line-height: 1.2; }
.svc-call:hover { background: var(--primary-dark); color: #000; }
.svc-call:focus-visible, .svc-call-side:focus-visible, .svc-list a:focus-visible, .svc-faq summary:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px var(--darker); }

/* Text */
.svc-main > h2:first-child { margin-top: 0; }
.svc-main p, .svc-main li { font-size: 1.02rem; }
.svc-main p { max-width: 70ch; }
.svc-main ul { list-style: disc; }
.svc-main ul li::marker { color: var(--primary-dark); }
.svc-main a { color: #92400e; text-decoration: underline; text-underline-offset: 4px; font-weight: 600; }
.svc-main a:hover { color: var(--darker); }

/* Table: symptom on the right, what to ask for on the left */
.svc-table { overflow-x: auto; margin: 26px 0 8px; }
.svc-table table { width: 100%; border-collapse: collapse; }
.svc-table caption { caption-side: top; text-align: right; font-weight: 800; color: var(--dark); font-size: 1.15rem; padding-bottom: 12px; }
.svc-table th, .svc-table td { border: 1px solid #e2e8f0; padding: 12px 14px; text-align: right; vertical-align: top; line-height: 1.9; }
.svc-table thead th { background: var(--dark); color: #fff; font-weight: 700; }
.svc-table tbody tr:nth-child(even) { background: var(--bg); }
.svc-table td:first-child { font-weight: 600; color: var(--dark); width: 48%; }

/* Questions: closed by default, the question itself is the control */
.svc-faq { border-bottom: 1px solid #e2e8f0; }
.svc-faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; color: var(--dark); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.svc-faq summary::-webkit-details-marker { display: none; }
.svc-faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--primary-dark); }
.svc-faq[open] summary::after { content: "−"; }
.svc-faq p { margin: 0 0 16px; }

/* City page: the list of services */
.svc-list { display: grid; gap: 0; margin: 6px 0 10px; border-top: 1px solid #e2e8f0; }
.svc-main .svc-list a { display: block; padding: 16px 4px; border-bottom: 1px solid #e2e8f0; text-decoration: none; font-weight: 400; color: var(--text); }
.svc-list a strong { display: block; font-size: 1.15rem; color: var(--dark); margin-bottom: 2px; }
.svc-list a span { color: var(--text-light); font-size: 0.97rem; }
.svc-main .svc-list a:hover { background: var(--bg); }
.svc-list a:hover strong { text-decoration: underline; text-underline-offset: 5px; }

/* Side: what to say on the phone. It is a real sequence, hence the numbers. */
.svc-check { position: sticky; top: 96px; border-top: 5px solid var(--primary); }
.svc-check ol { list-style: none; counter-reset: say; padding: 0; margin: 0 0 18px; }
.svc-check ol li { counter-increment: say; position: relative; padding: 0 44px 14px 0; margin-bottom: 14px; border-bottom: 1px solid #f1f5f9; font-size: 0.95rem; line-height: 1.9; }
.svc-check ol li:last-child { border-bottom: 0; margin-bottom: 0; }
.svc-check ol li::before { content: counter(say, persian); position: absolute; right: 0; top: 2px; width: 30px; height: 30px; border-radius: 50%; background: var(--dark); color: #fff; font-weight: 800; display: grid; place-items: center; }
.svc-check ol li strong { display: block; color: var(--dark); }
.svc-call-side { display: block; text-align: center; font-size: 1.25rem; font-weight: 900; }

@media (max-width: 960px) {
    .svc-wrap { grid-template-columns: 1fr; }
    .svc-check { position: static; }
}
@media (max-width: 600px) {
    .svc-head { padding: 30px 0 34px; margin-bottom: 24px; }
    .svc-head h1 { font-size: 1.6rem; }
    .svc-call { width: 100%; justify-content: space-between; padding: 12px 16px; }
    .svc-call b { font-size: 1.4rem; }
    .svc-main { padding: 22px 18px; }
    .svc-table td:first-child { width: auto; }
}
