/* ==========================================================================
   Ekkyam Clinic — article styles for the treatment pages.
   Loaded after site.css, which supplies the header, footer, buttons,
   FAQ accordion, mobile bar and design tokens.
   ========================================================================== */

/* ---------- page hero ---------- */
.svc-hero {
    padding: 54px 0 58px;
    background:
        radial-gradient(700px 380px at 8% 0%, #eaf3ee 0%, rgba(234, 243, 238, 0) 62%),
        radial-gradient(760px 460px at 94% 14%, #fbe6d8 0%, rgba(251, 230, 216, 0) 64%),
        linear-gradient(180deg, var(--cream) 0%, #fcf5ed 100%);
}
.svc-hero__inner { max-width: 820px; }
.svc-crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 16px; }
.svc-crumbs a { color: var(--muted); }
.svc-crumbs a:hover { color: var(--coral-ink); }
.svc-hero h1 { margin-bottom: 16px; }
.svc-hero__sub { font-size: 1.06rem; color: var(--body); margin-bottom: 26px; max-width: 40em; }
.svc-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- article body ---------- */
.svc-body { max-width: 820px; margin: 0 auto; }
.svc-body > img:first-child {
    width: 100%; border-radius: var(--r); border: 1px solid var(--line); margin-bottom: 34px;
}
.svc-body h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    margin: 52px 0 18px;
}
.svc-body h2:first-of-type { margin-top: 0; }
.svc-body h3 { font-size: 1.14rem; margin: 32px 0 12px; }
.svc-body p { line-height: 1.8; margin-bottom: 18px; }
.svc-body ul, .svc-body ol { margin: 0 0 24px; padding-left: 22px; }
.svc-body li { line-height: 1.75; margin-bottom: 10px; }
.svc-body strong { color: var(--ink); font-weight: 700; }
.svc-body a { font-weight: 500; border-bottom: 1px solid var(--coral-soft); }
.svc-body a:hover { border-bottom-color: var(--coral); }

/* ---------- symptom / point cards ---------- */
.svc-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px; margin: 0 0 28px;
}
.svc-card {
    background: var(--surface); border: 1px solid var(--line);
    border-top: 3px solid var(--coral); border-radius: 0 0 var(--r) var(--r);
    padding: 22px 20px;
}
.svc-card h4 { font-size: 1rem; font-weight: 700; color: var(--ink); margin: 0 0 12px; }
.svc-card ul { margin: 0; padding-left: 18px; }
.svc-card li { font-size: .93rem; margin-bottom: 8px; color: var(--body); }

/* ---------- numbered steps ---------- */
.svc-steps { list-style: none; margin: 0 0 28px; padding: 0; counter-reset: svcstep; }
.svc-steps li {
    position: relative; padding-left: 56px; margin-bottom: 22px; min-height: 40px; line-height: 1.75;
}
.svc-steps li::before {
    counter-increment: svcstep; content: counter(svcstep);
    position: absolute; left: 0; top: -2px;
    width: 40px; height: 40px; line-height: 40px; text-align: center; border-radius: 50%;
    background: var(--coral-soft); color: var(--coral-ink);
    font-family: var(--display); font-size: 1.12rem;
}

/* ---------- callouts ---------- */
.svc-note {
    background: #fff6ec; border: 1px solid #f3dcc4; border-left: 4px solid var(--coral);
    border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 22px 24px; margin: 30px 0;
}
.svc-note p { margin-bottom: 10px; }
.svc-note p:last-child { margin-bottom: 0; }

.svc-box {
    background: var(--cream-2); border: 1px solid var(--line);
    border-radius: var(--r); padding: 28px; margin: 34px 0;
}
.svc-box h3 { margin-top: 0; font-family: var(--display); font-weight: 400; font-size: 1.5rem; }
.svc-box p { margin-bottom: 12px; }
.svc-box .btn { margin: 14px 8px 0 0; }

/* ---------- author ---------- */
.svc-author {
    display: flex; align-items: flex-start; gap: 26px; flex-wrap: wrap;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r); padding: 28px; margin-top: 50px;
}
.svc-author img {
    width: 108px; height: 108px; border-radius: 50%; object-fit: cover; object-position: top center;
    flex-shrink: 0; background: var(--coral-soft);
}
.svc-author__info { flex: 1 1 320px; }
.svc-author h4 { font-family: var(--display); font-weight: 400; font-size: 1.35rem; color: var(--ink); margin: 0 0 6px; }
.svc-author p { font-size: .93rem; color: var(--muted); margin-bottom: 8px; line-height: 1.65; }

/* ---------- related ---------- */
.svc-related { background: var(--cream-2); border-top: 1px solid var(--line); }
.svc-related h2 { text-align: center; margin-bottom: 28px; }
.svc-related__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.svc-chip {
    display: inline-block; background: var(--surface); border: 1px solid var(--line);
    color: var(--ink); padding: 10px 18px; border-radius: var(--r-pill);
    font-size: .92rem; font-weight: 500;
}
.svc-chip:hover { border-color: var(--coral); color: var(--coral-ink); }

@media (max-width: 680px) {
    .svc-hero { padding: 36px 0 40px; }
    .svc-body h2 { margin-top: 40px; }
    .svc-author { gap: 18px; padding: 22px; }
    .svc-author img { width: 84px; height: 84px; }
    .svc-box { padding: 22px; }
}

/* ---------- blog index ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.post {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
    overflow: hidden; display: flex; flex-direction: column;
    transition: box-shadow .22s ease, border-color .22s ease, transform .22s ease;
}
.post:hover { box-shadow: var(--sh); border-color: rgba(226, 129, 79, .34); transform: translateY(-3px); }
.post__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--coral-soft); }
.post__media img { width: 100%; height: 100%; object-fit: cover; }
.post__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post__date {
    font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
    color: var(--coral-ink); margin: 0 0 10px;
}
.post h3 { font-size: 1.16rem; margin-bottom: 10px; line-height: 1.35; }
.post h3 a { color: var(--ink); }
.post h3 a:hover { color: var(--coral-ink); }
.post__text { font-size: .95rem; color: var(--muted); margin-bottom: 18px; }
.post__more {
    margin-top: auto; font-size: .9rem; font-weight: 700; color: var(--coral-ink);
    display: inline-flex; align-items: center; gap: 7px;
}
.post__more i { font-size: .78rem; transition: transform .2s ease; }
.post:hover .post__more i { transform: translateX(4px); }

/* ---------- emphasis helpers used in page copy ---------- */
.svc-bignum {
    display: block;
    font-family: var(--display);
    font-size: clamp(1.7rem, 3.4vw, 2.3rem);
    line-height: 1.2;
    color: var(--coral-ink);
    font-weight: 700;
    margin: 4px 0 14px;
}
.svc-bignum a { color: inherit; border-bottom: 0; font-weight: 700; }
.svc-bignum a:hover { color: var(--coral); }

.svc-cta-lede {
    display: block;
    font-size: 1.16rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.5;
}

.svc-addr {
    display: block;
    margin: 18px 0;
    padding-left: 16px;
    border-left: 3px solid var(--coral);
    font-size: 1.02rem;
    color: var(--body);
}
.svc-addr strong {
    display: block;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(1.25rem, 2.4vw, 1.5rem);
    color: var(--ink);
    margin-bottom: 4px;
}

/* ---------- colourful condition / cause cards ---------- */
.svc-cards--colour .svc-card {
    border-top: 0; padding: 0 0 20px; overflow: hidden; background: var(--surface);
}
.svc-cards--colour .svc-card h4 {
    margin: 0 0 14px; padding: 14px 20px; color: #fff; font-size: 1rem; line-height: 1.35;
}
.svc-cards--colour .svc-card ul { padding-left: 38px; padding-right: 18px; }
.svc-cards--colour .svc-card li::marker { font-size: 1.05em; }

.svc-cards--colour .svc-card:nth-child(4n+1) h4 { background: #d9723f; }
.svc-cards--colour .svc-card:nth-child(4n+1) li::marker { color: #d9723f; }
.svc-cards--colour .svc-card:nth-child(4n+2) h4 { background: #2f7d7a; }
.svc-cards--colour .svc-card:nth-child(4n+2) li::marker { color: #2f7d7a; }
.svc-cards--colour .svc-card:nth-child(4n+3) h4 { background: #b07520; }
.svc-cards--colour .svc-card:nth-child(4n+3) li::marker { color: #b07520; }
.svc-cards--colour .svc-card:nth-child(4n+4) h4 { background: #6a5ea8; }
.svc-cards--colour .svc-card:nth-child(4n+4) li::marker { color: #6a5ea8; }

/* ---------- flowchart ---------- */
.svc-flow { list-style: none; margin: 4px 0 30px; padding: 0; counter-reset: svcflow; }
.svc-flow li {
    position: relative; padding: 2px 0 28px 64px; line-height: 1.75; color: var(--body);
}
.svc-flow li:last-child { padding-bottom: 0; }
.svc-flow li::before {
    counter-increment: svcflow; content: counter(svcflow);
    position: absolute; left: 0; top: 0; z-index: 1;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--coral); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--display); font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(226, 129, 79, .3);
}
.svc-flow li::after {
    content: ""; position: absolute; left: 21px; top: 46px; bottom: 6px; width: 2px;
    background: linear-gradient(var(--coral-soft), var(--line));
}
.svc-flow li:last-child::after { display: none; }

/* ---------- emphasis: highlight line, inline term, red alert ---------- */
.svc-hl {
    display: block; margin: 26px 0; padding: 20px 24px;
    background: #e9f3f1; border-left: 5px solid #2f7d7a;
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    font-family: var(--display); font-weight: 400;
    font-size: clamp(1.28rem, 2.5vw, 1.62rem); line-height: 1.38; color: #14504d;
}
.faq__body .svc-hl { margin: 16px 0 6px; font-size: clamp(1.15rem, 2.2vw, 1.4rem); }

.svc-term {
    font-family: var(--display); font-size: 1.38em; font-weight: 700;
    color: var(--coral-ink); line-height: 1;
}

.svc-alert {
    background: #fdeeec; border: 1px solid #f2c8c1; border-left: 5px solid #c0392b;
    border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 22px 24px; margin: 30px 0;
}
.svc-alert p { color: #8a2f23; margin-bottom: 10px; }
.svc-alert p:last-child { margin-bottom: 0; }
.svc-alert strong { color: #c0392b; }
.svc-alert .big {
    display: block; font-family: var(--display); font-weight: 700;
    font-size: clamp(1.3rem, 2.6vw, 1.7rem); color: #c0392b; line-height: 1.3; margin-bottom: 8px;
}

/* ---------- revolving-door cycle diagram ---------- */
.svc-cycle { margin: 26px 0 32px; }
.svc-cycle ol {
    list-style: none; margin: 0; padding: 0; counter-reset: svccyc;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(186px, 1fr)); gap: 16px;
}
.svc-cycle li {
    position: relative; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r); padding: 16px; font-size: .93rem; line-height: 1.55; color: var(--body);
}
.svc-cycle li::before {
    counter-increment: svccyc; content: counter(svccyc);
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%; margin-bottom: 10px;
    background: var(--coral); color: #fff;
    font-family: var(--display); font-size: 1rem;
}
.svc-cycle li::after {
    content: "\f061"; font-family: "Font Awesome 5 Free"; font-weight: 900;
    position: absolute; right: -13px; top: 50%; transform: translateY(-50%);
    color: var(--coral); font-size: .7rem;
}
.svc-cycle li:last-child::after { display: none; }
.svc-cycle__loop {
    display: flex; align-items: center; gap: 11px; margin: 16px 0 0;
    background: #fdefe4; border: 1px dashed var(--coral);
    border-radius: var(--r); padding: 15px 18px;
    color: var(--coral-ink); font-weight: 700; font-size: .96rem;
}
.svc-cycle__loop i { font-size: 1.1rem; }

@media (max-width: 620px) {
    .svc-cycle ol { grid-template-columns: 1fr; }
    .svc-cycle li::after {
        right: auto; left: 50%; top: auto; bottom: -14px;
        transform: translateX(-50%) rotate(90deg);
    }
}

/* ---------- icon cards ---------- */
.svc-icards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px; margin: 4px 0 28px;
}
.svc-icard {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r); padding: 22px 20px;
}
.svc-icard__icon {
    width: 46px; height: 46px; border-radius: 13px; margin-bottom: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.12rem; color: #fff;
}
.svc-icard h4 { font-size: 1rem; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.svc-icard p { font-size: .93rem; color: var(--muted); margin: 0; line-height: 1.65; }

.svc-icard:nth-child(4n+1) .svc-icard__icon { background: #d9723f; }
.svc-icard:nth-child(4n+2) .svc-icard__icon { background: #2f7d7a; }
.svc-icard:nth-child(4n+3) .svc-icard__icon { background: #b07520; }
.svc-icard:nth-child(4n+4) .svc-icard__icon { background: #6a5ea8; }
