/* ─────────────────────────────────────────────────────────────────────
   Clinic location pages — /industries/healthcare-clinic-marketing/<place>/
   Loaded by the healthcare location pages (Kerala towns + GCC) and by the
   Google Ads service pages (/google-ads-agency-uae/, /google-ads-agency-saudi-arabia/).
   Sits on top of style.css and the inline .ind-* block those pages carry.
   Existing tokens only (--purple, --purple2, --white = ink, --gray, --card,
   --surface, --border). Logical properties throughout so the same file
   serves the right-to-left Arabic builds without a fork.
   ───────────────────────────────────────────────────────────────────── */

/* ── Hero: wide two-column — copy left, "at a glance" card right ── */
.cl-hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .85fr); gap: 56px; align-items: start; }
.cl-hero-grid .ind-title { font-size: clamp(2.1rem, 3.7vw, 3.2rem); max-width: none; }
.cl-hero-grid .ind-lead { max-width: 720px; }

.cl-facts { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 26px 26px 22px; box-shadow: 0 8px 36px rgba(24,18,40,.04); margin-block-start: 8px; }
.cl-facts-h { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--purple); margin: 0 0 14px; }
.cl-facts dl { margin: 0; display: grid; gap: 0; }
.cl-facts dl > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-block-end: 1px solid var(--border); }
.cl-facts dl > div:last-child { border-block-end: 0; padding-block-end: 2px; }
.cl-facts dt { font-size: .74rem; font-weight: 800; color: var(--white); line-height: 1.5; }
.cl-facts dd { margin: 0; font-size: .84rem; color: var(--gray); line-height: 1.55; }
.cl-facts-foot { margin: 14px 0 0; font-size: .74rem; color: var(--gray); line-height: 1.55; }

/* ── Sticky section chips (pure CSS) ── */
.cl-chips { position: sticky; top: 84px; z-index: 50; margin: 0 0 40px; padding: 10px 0; background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); border-block-end: 1px solid var(--border); }
.cl-chips ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.cl-chips a { display: inline-block; padding: 7px 15px; border: 1px solid var(--border); border-radius: 100px; font-size: .76rem; font-weight: 800; color: var(--gray); text-decoration: none; white-space: nowrap; transition: border-color .2s, color .2s, background .2s; }
.cl-chips a:hover, .cl-chips a:focus-visible { border-color: var(--purple); color: var(--purple); background: rgba(90, 66, 154, .05); }
.cl-anchor { scroll-margin-top: 150px; }

/* ── Readable prose inside the wide grid ── */
.cl-prose { max-width: 760px; }
.cl-prose p { color: var(--gray); font-size: 1rem; line-height: 1.8; margin: 0 0 16px; }
.cl-prose p:last-child { margin-block-end: 0; }
.cl-prose strong { color: var(--white); font-weight: 800; }
.cl-prose a, .cl-card a, .cl-note a, .cl-rules a { color: var(--purple); font-weight: 700; text-underline-offset: 3px; }
.cl-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: start; }

/* ── Catchment / area pills ── */
.cl-area { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cl-area li { padding: 7px 14px; border-radius: 100px; background: var(--surface); border: 1px solid var(--border); font-size: .8rem; font-weight: 700; color: var(--white); }
.cl-area li span { color: var(--gray); font-weight: 600; }

/* ── Key-number / fact tiles (only for sourced facts) ── */
.cl-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.cl-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px 20px 18px; }
.cl-stat-k { display: block; font-size: 1.5rem; font-weight: 900; letter-spacing: -.02em; color: var(--white); line-height: 1.15; margin-bottom: 6px; }
.cl-stat p { font-size: .84rem; color: var(--gray); line-height: 1.55; margin: 0; }
.cl-stat cite { display: block; margin-top: 8px; font-style: normal; font-size: .75rem; color: var(--gray); opacity: .85; }
.cl-stat cite a, .ind-body cite a { color: var(--purple); font-weight: 700; text-underline-offset: 3px; }

/* ── Vertical cards: Dental / Medical clinic / Ayurveda ── */
.cl-vert { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cl-card { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 28px 26px; box-shadow: 0 4px 24px rgba(0, 0, 0, .04); display: flex; flex-direction: column; }
.cl-card-tag { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--purple); margin: 0 0 10px; }
.cl-card h3 { font-size: 1.18rem; font-weight: 800; color: var(--white); letter-spacing: -.01em; margin: 0 0 10px; line-height: 1.3; }
.cl-card > p { color: var(--gray); font-size: .92rem; line-height: 1.7; margin: 0 0 14px; }
.cl-card ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 9px; }
.cl-card li { position: relative; padding-inline-start: 18px; font-size: .88rem; color: var(--gray); line-height: 1.6; }
.cl-card li::before { content: ""; position: absolute; inset-inline-start: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--purple); }
.cl-card-more { margin-top: auto; font-size: .84rem; font-weight: 800; }

/* ── How patients search: query table ── */
.cl-table-wrap { overflow-x: auto; margin-top: 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); -webkit-overflow-scrolling: touch; }
.cl-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .88rem; }
.cl-table th, .cl-table td { padding: 13px 16px; text-align: start; vertical-align: top; line-height: 1.6; border-block-end: 1px solid var(--border); }
.cl-table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--purple); background: var(--surface); font-weight: 800; }
.cl-table tbody th { color: var(--white); font-weight: 800; }
.cl-table tbody td { color: var(--gray); }
.cl-table tbody tr:last-child th, .cl-table tbody tr:last-child td { border-block-end: 0; }
.cl-table [lang="ml"], .cl-table [lang="ar"] { font-size: .95rem; }
.cl-table-note { margin-top: 12px; font-size: .8rem; color: var(--gray); line-height: 1.6; max-width: 860px; }

/* ── Rules: may say / may not say ── */
.cl-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
.cl-rules > div { border: 1px solid var(--border); border-radius: 18px; padding: 22px 24px; background: var(--card); }
.cl-rules h3 { font-size: 1rem; font-weight: 800; color: var(--white); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.cl-rules ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cl-rules li { position: relative; padding-inline-start: 26px; font-size: .9rem; color: var(--gray); line-height: 1.6; }
.cl-rules li::before { position: absolute; inset-inline-start: 0; top: 0; font-weight: 900; }
.cl-rules .cl-yes li::before { content: "\2713"; color: #15803d; }
.cl-rules .cl-no li::before { content: "\2715"; color: #dc2626; }
.cl-rules .cl-yes { border-block-start: 3px solid #16a34a; }
.cl-rules .cl-no { border-block-start: 3px solid #dc2626; }

/* ── Callout ── */
.cl-note { margin-top: 22px; border: 1px solid var(--border); border-radius: 14px; padding: 20px 24px; background: var(--surface); max-width: 960px; }
.cl-note p { font-size: .93rem; color: var(--gray); line-height: 1.72; margin: 0 0 12px; }
.cl-note p:last-child { margin-bottom: 0; }
.cl-note strong { color: var(--white); font-weight: 800; }

/* ── 90-day plan: reuse .ind-stages, add a timing label ── */
.cl-when { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--purple); margin-bottom: 8px; }
.ind-stages.cl-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ── Trust list (hero) ── */
.cl-trust { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 9px; max-width: 720px; }
.cl-trust li { font-size: .86rem; color: var(--gray); line-height: 1.55; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.cl-trust-k { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--purple); border: 1px solid var(--border); border-radius: 5px; padding: 2px 7px; flex: 0 0 auto; }

/* ── CTA band extras ── */
.cl-cta-alt { margin-top: 16px; font-size: .86rem; opacity: .9; }
.cl-cta-alt a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ── Honest-proof strip ── */
.cl-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cl-proof > div { border: 1px dashed rgba(90, 66, 154, .3); border-radius: 16px; padding: 18px 20px; }
.cl-proof h3 { font-size: .95rem; font-weight: 800; color: var(--white); margin: 0 0 6px; }
.cl-proof p { font-size: .86rem; color: var(--gray); line-height: 1.6; margin: 0; }

/* ── Focus visibility ── */
.cl-chips a:focus-visible, .cl-card a:focus-visible, .cl-prose a:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

/* ── Responsive ── */
@media (max-width: 1080px) {
  .cl-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .cl-facts { max-width: 720px; }
  .cl-vert { grid-template-columns: 1fr 1fr; }
  .ind-stages.cl-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) { .cl-chips { top: 80px; } }
@media (max-width: 860px) {
  .cl-split, .cl-rules, .cl-stats, .cl-proof { grid-template-columns: 1fr; }
  .cl-vert, .ind-stages.cl-4 { grid-template-columns: 1fr; }
  .cl-card { padding: 22px 20px; }
}
@media (max-width: 768px) {
  .cl-chips { top: 56px; margin-inline: -22px; padding-inline: 22px; }
  .cl-chips ol { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-block-end: 2px; }
  .cl-chips ol::-webkit-scrollbar { display: none; }
  .cl-anchor { scroll-margin-top: 118px; }
  .cl-facts { padding: 20px 18px 16px; }
  .cl-facts dl > div { grid-template-columns: 96px minmax(0, 1fr); }
}
/* Phones: tables become labelled cards instead of a sideways scroll */
@media (max-width: 640px) {
  .cl-table-wrap { overflow: visible; border: 0; background: transparent; }
  .cl-table { min-width: 0; }
  .cl-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cl-table tr { display: block; border: 1px solid var(--border); border-radius: 14px; background: var(--card); margin-block-end: 12px; padding: 6px 0 10px; }
  .cl-table th, .cl-table td { display: block; border: 0; padding: 6px 16px; }
  .cl-table tbody th { font-size: .98rem; padding-block-start: 12px; }
  .cl-table tbody td::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--purple); margin-block-end: 2px; }
  .cl-table tbody tr:last-child th, .cl-table tbody tr:last-child td { border-block-end: 0; }
}
@media (max-width: 480px) {
  .cl-chips { top: 48px; }
  .cl-anchor { scroll-margin-top: 108px; }
  .cl-facts dl > div { grid-template-columns: 1fr; gap: 2px; }
  .cl-rules > div { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .cl-chips a { transition: none; }
}
