/* Take Care Medical Clinic Bang Tao — design system
 *
 * Trap C1: a global `.tc-page a { color: var(--primary) }` has specificity 0-0-1-1 and BEATS
 * `.tc-btn { color:#fff }` at 0-0-1-0, so button labels render blue-on-blue and vanish.
 * Every coloured link rule below is therefore scoped as a.tc-btn / a.tc-logo / a.tc-prefooter__phone.
 */

:root{
  --primary:#007cfb;
  --primary-hover:#006edc;
  --navy:#031246;
  --body:#3a4268;
  --bg-light:#f3f4f8;
  --bg:#ffffff;
  --border:#e2e8f0;
  --muted:#94a3b8;
  --cta:#dc2626;
  --cta-hover:#b91c1c;
  --radius:16px;
  --shadow:0 4px 20px rgba(3,18,70,.06);
  --shadow-lift:0 12px 32px rgba(3,18,70,.12);
  --max:1200px;
}

*,*::before,*::after{box-sizing:border-box}

.tc-page{
  font-family:'Albert Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  font-weight:400;
  font-size:17px;
  line-height:1.7;
  color:var(--body);
  background:var(--bg);
  margin:0;
}
.tc-page img{max-width:100%;height:auto;display:block}
.tc-wrap{max-width:var(--max);margin:0 auto;padding:0 24px}

/* ---------- typography ---------- */
.tc-page h1,.tc-page h2,.tc-page h3{color:var(--navy);font-weight:600;line-height:1.2;margin:0 0 .5em}
.tc-page h1{font-size:clamp(32px,5vw,56px)}
.tc-page h2{font-size:clamp(26px,3.4vw,40px)}
.tc-page h3{font-size:20px;line-height:1.35}
.tc-page p{margin:0 0 1.1em}
.tc-eyebrow{
  display:block;font-size:13px;font-weight:600;letter-spacing:.14em;
  text-transform:uppercase;color:var(--primary);margin-bottom:14px;
}
.tc-eyebrow--light{color:#9ec9ff}

/* Scoped so it can never swallow button or logo text (Trap C1).
 *
 * The exclusions sit inside :where() deliberately. A plain :not(.a):not(.b):not(.c) chain adds
 * THREE classes of specificity, giving this rule 0-4-1 — which then beats any sane component
 * rule like `.tc-page .tc-card h3 a` (0-2-2) and silently repaints it. :where() contributes
 * zero, so this stays at 0-1-1 and components win on their own merits. */
.tc-page a:where(:not(.tc-btn):not(.tc-logo):not(.tc-prefooter__phone)){color:var(--primary);text-decoration:none}
.tc-page a:where(:not(.tc-btn):not(.tc-logo):not(.tc-prefooter__phone)):hover{color:var(--primary-hover);text-decoration:underline}

/* ---------- buttons ---------- */
a.tc-btn{
  display:inline-block;background:var(--cta);color:#fff !important;
  padding:15px 30px;border-radius:6px;font-weight:600;font-size:15px;
  letter-spacing:.06em;text-transform:uppercase;text-decoration:none;
  border:2px solid var(--cta);transition:background .18s,border-color .18s,transform .18s;
}
a.tc-btn:hover{background:var(--cta-hover);border-color:var(--cta-hover);color:#fff !important;transform:translateY(-2px);text-decoration:none}
a.tc-btn--outline{background:transparent;color:var(--primary) !important;border-color:var(--primary)}
a.tc-btn--outline:hover{background:var(--primary);color:#fff !important;border-color:var(--primary)}
a.tc-btn--white{background:#fff;color:var(--navy) !important;border-color:#fff}
a.tc-btn--white:hover{background:#eef2ff;color:var(--navy) !important;border-color:#eef2ff}

/* ---------- header ---------- */
.tc-header{position:sticky;top:0;z-index:900;background:#fff;border-bottom:1px solid var(--border)}
.tc-header__inner{max-width:var(--max);margin:0 auto;padding:0 24px;height:80px;display:flex;align-items:center;justify-content:space-between;gap:24px}
a.tc-logo{color:var(--navy) !important;font-weight:600;font-size:20px;line-height:1.15;text-decoration:none;letter-spacing:-.01em}
a.tc-logo:hover{color:var(--navy) !important;text-decoration:none}
.tc-nav{display:flex;align-items:center;gap:28px}
.tc-nav a{font-size:15px;font-weight:600;color:var(--navy);text-decoration:none}
.tc-nav a:hover{color:var(--primary)}
.tc-nav__toggle{display:none;background:none;border:0;font-size:26px;color:var(--navy);cursor:pointer;line-height:1}

@media(max-width:900px){
  .tc-nav{
    display:none;position:absolute;top:80px;left:0;right:0;background:#fff;
    flex-direction:column;align-items:flex-start;gap:0;padding:8px 24px 20px;
    border-bottom:1px solid var(--border);box-shadow:var(--shadow);
  }
  .tc-nav.is-open{display:flex}
  .tc-nav a{padding:12px 0;width:100%}
  .tc-nav__toggle{display:block}
}

/* ---------- sections ---------- */
.tc-section{padding:96px 0}
.tc-section--tight{padding:64px 0}
.tc-section--alt{background:var(--bg-light)}
.tc-section__head{max-width:760px;margin:0 auto 56px;text-align:center}
.tc-section__head p{color:var(--body);margin:0}
@media(max-width:768px){.tc-section{padding:48px 0}.tc-section__head{margin-bottom:36px}}

/* ---------- hero ---------- */
.tc-hero{padding:72px 0 88px}
.tc-hero__grid{display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:center}
.tc-hero__lead{font-size:19px;margin-bottom:28px}
.tc-hero__actions{display:flex;flex-wrap:wrap;gap:14px;margin-bottom:32px}
.tc-hero__img{border-radius:20px;box-shadow:var(--shadow-lift);width:100%;object-fit:cover}
.tc-quote{background:var(--bg-light);border:1px solid var(--border);border-radius:var(--radius);padding:24px 26px}
.tc-quote h3{margin:0 0 6px;font-size:18px}
.tc-quote p{margin:0 0 14px;font-size:15px}
.tc-quote__row{display:flex;flex-wrap:wrap;gap:10px}
@media(max-width:900px){.tc-hero__grid{grid-template-columns:1fr;gap:36px}.tc-hero{padding:44px 0 56px}}

/* ---------- trust bar ---------- */
.tc-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.tc-stat{background:#fff;border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:26px 22px;text-align:center}
.tc-stat__n{display:block;font-size:30px;font-weight:600;color:var(--primary);line-height:1.1;margin-bottom:6px}
.tc-stat__l{font-size:14px;color:var(--body);margin:0}
@media(max-width:900px){.tc-stats{grid-template-columns:repeat(2,1fr)}}

/* ---------- directions band ---------- */
.tc-band{background:var(--primary);text-align:center;padding:56px 0}
.tc-band h2{color:#fff;margin:0;font-size:clamp(22px,3vw,34px)}
.tc-band a{color:#fff;text-decoration:none;display:block}
.tc-band a:hover{text-decoration:underline;color:#fff}

/* ---------- card grids ---------- */
.tc-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
@media(max-width:1024px){.tc-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.tc-grid{grid-template-columns:1fr}}

.tc-card{
  background:#fff;border:1px solid var(--border);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:28px 24px;transition:transform .18s,box-shadow .18s;
}
.tc-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lift)}
.tc-card__icon{
  width:46px;height:46px;border-radius:12px;background:rgba(0,124,251,.1);
  display:flex;align-items:center;justify-content:center;margin-bottom:16px;
}
.tc-card__icon svg{width:24px;height:24px;stroke:var(--primary);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tc-card h3{margin:0 0 8px;font-size:18px}
/* The global `.tc-page a:not()...` rule scores 0-4-1 because each :not() argument counts.
   A plain `.tc-card h3 a` (0-1-2) loses to it and headings render primary blue instead of navy.
   Scope from .tc-page so this wins on its own merits rather than with !important. */
.tc-page .tc-card h3 a{color:var(--navy);text-decoration:none}
.tc-page .tc-card h3 a:hover{color:var(--primary);text-decoration:none}
.tc-card p{margin:0;font-size:15px;line-height:1.6;color:var(--body)}

/* ---------- navy CTA band ---------- */
.tc-cta{background:var(--navy);text-align:center;padding:88px 0}
.tc-cta h2{color:#fff;max-width:720px;margin:0 auto 12px}
.tc-cta p{color:#c3cbe6;max-width:640px;margin:0 auto 28px}

/* ---------- reviews ---------- */
.tc-reviews{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
@media(max-width:900px){.tc-reviews{grid-template-columns:1fr}}
.tc-review{background:#fff;border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:28px 26px}
.tc-review__stars{color:#f5a623;letter-spacing:2px;margin-bottom:12px;font-size:16px}
.tc-review p{font-size:15px;margin:0 0 18px}
.tc-review__who{display:flex;align-items:center;gap:12px}
.tc-review__av{width:40px;height:40px;border-radius:50%;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:15px;flex:none}
.tc-review__name{font-weight:600;color:var(--navy);font-size:15px;line-height:1.2}
.tc-review__meta{font-size:13px;color:var(--muted)}

/* ---------- contact ---------- */
.tc-contact{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start}
@media(max-width:900px){.tc-contact{grid-template-columns:1fr;gap:32px}}
.tc-map{width:100%;height:400px;border:0;border-radius:var(--radius);box-shadow:var(--shadow)}
.tc-details{list-style:none;padding:0;margin:0 0 24px}
.tc-details li{display:flex;gap:14px;padding:14px 0;border-bottom:1px solid var(--border);font-size:16px}
.tc-details li:last-child{border-bottom:0}
.tc-details strong{color:var(--navy);min-width:104px;flex:none;font-weight:600}
.tc-note{background:var(--bg-light);border-left:3px solid var(--primary);padding:16px 18px;border-radius:8px;font-size:15px;margin:0 0 24px}

/* ---------- pre-footer ---------- */
.tc-prefooter{
  position:relative;padding:112px 0;text-align:center;
  border-radius:0 0 40px 40px;overflow:hidden;
  background-size:cover;background-position:center;
}
.tc-prefooter::before{content:"";position:absolute;inset:0;background:rgba(3,18,70,.7)}
.tc-prefooter .tc-wrap{position:relative;z-index:1}
.tc-prefooter h2{color:#fff;margin:0 auto 26px;max-width:640px}
a.tc-prefooter__phone{display:block;margin-top:22px;color:#fff !important;font-size:22px;font-weight:600;text-decoration:none}
a.tc-prefooter__phone:hover{color:#fff !important;text-decoration:underline}

/* ---------- footer ---------- */
.tc-footer{background:#fff;border-top:1px solid var(--border)}
.tc-footer__inner{max-width:var(--max);margin:0 auto;padding:0 24px;min-height:80px;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.tc-footer nav{display:flex;gap:22px;flex-wrap:wrap}
.tc-footer a{font-size:14px;color:var(--body);text-decoration:none}
.tc-footer a:hover{color:var(--primary)}
.tc-footer__copy{font-size:14px;color:var(--muted)}

/* ---------- article body (service / treatment pages) ---------- */
.tc-article{padding:56px 0 88px}
.tc-article__inner{max-width:820px;margin:0 auto}
.tc-article h2{margin:44px 0 14px;font-size:clamp(24px,2.6vw,32px)}
.tc-article h3{margin:28px 0 8px;font-size:19px}
.tc-article ul{margin:0 0 1.2em;padding-left:22px}
.tc-article li{margin-bottom:.5em}
.tc-breadcrumb{font-size:14px;color:var(--muted);margin-bottom:18px}
.tc-breadcrumb a{color:var(--muted)}
.tc-article__img{
  width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;
  border-radius:var(--radius);box-shadow:var(--shadow);margin:10px 0 34px;
}

/* ---------- floating chat ---------- */
.tc-chat{position:fixed;right:18px;bottom:18px;z-index:950;display:flex;flex-direction:column;gap:10px}
.tc-chat a{
  width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 18px rgba(3,18,70,.25);transition:transform .18s;
}
.tc-chat a:hover{transform:scale(1.08)}
.tc-chat svg{width:26px;height:26px;fill:#fff}
.tc-chat__wa{background:#25d366}
.tc-chat__tel{background:var(--primary)}
@media(max-width:600px){.tc-chat a{width:48px;height:48px}.tc-chat svg{width:24px;height:24px}}
