/* Medical Clinic Koh Phi Phi — design system
 *
 * SIXTH SITE IN THE NETWORK. The five before it:
 *   clinicbangtao.com / medicalclinicbangtao.com — blue + red, Albert Sans, 16px radius,
 *                                                  soft-shadowed rounded cards, white page
 *   clinicrailay.com                             — the same system in navy, white page
 *   medicalclinicrailay.com                      — teal + warm clay, Source Serif 4 headings,
 *                                                  hairline grid, 6px radius, white page
 *   clinickohphiphi.com                          — sea navy + amber, Barlow Condensed headings,
 *                                                  0px radius, white page
 *
 * All five sit on a white page. This one does not, and that is the single biggest differentiator
 * available without touching layout:
 *   - a warm CREAM page ground (#faf7f1) rather than #ffffff, with white reserved for cards
 *   - forest green and burnt sienna, so it shares no hue with any sibling
 *   - Space Grotesk headings — geometric and slightly odd, which reads as neither the Bang Tao
 *     Albert Sans, the Railay serif, nor the Phi Phi condensed
 *   - cards are OUTLINED in 2px ink with no shadow and a 2px radius: the border does the work
 *     that shadow does on the Bang Tao sites and that hairlines do on medicalclinicrailay
 *   - section separation by ground colour alternation, not rules
 *
 * Trap C1: a global `.tc-page a { color: var(--primary) }` beats `.tc-btn { color:#fff }` on
 * specificity and renders button labels invisible. Exclusions sit inside :where() so the global
 * link rule stays at 0-1-1 and component rules win on their own merits.
 */

:root{
  --primary:#1f5140;          /* forest green */
  --primary-hover:#163b2e;
  --ink:#14231d;              /* near-black green — headings, card borders, dark bands */
  --body:#3a4741;             /* body text */
  --bg:#faf7f1;               /* CREAM page ground — the main break from all five siblings */
  --bg-light:#f2ece1;         /* alternating sections, a shade deeper than the page */
  --card:#ffffff;             /* white is the CARD colour here, not the page */
  --border:#14231d;           /* cards are outlined in ink, not in a tint */
  --rule:#d9d0c0;
  --muted:#7d8a83;
  --cta:#c05621;              /* burnt sienna */
  --cta-hover:#9c4419;
  --radius:2px;
  --max:1120px;
}

*,*::before,*::after{box-sizing:border-box}

.tc-page{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  font-weight:400;
  font-size:17px;
  line-height:1.75;
  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: condensed headings are the biggest visual difference ----------
 * Barlow Condensed at a heavy weight, tightly tracked. Against the Bang Tao sites' Albert
 * Sans and medicalclinicrailay's Source Serif, this reads as a different publication at a
 * glance, which is the whole point. Body stays Inter for legibility at 17px.
 * Both faces ARE enqueued in the plugin — see the note on wp_enqueue_style there.
 */
.tc-page h1,.tc-page h2,.tc-page h3{
  font-family:'Space Grotesk','Inter',system-ui,sans-serif;
  color:var(--ink);font-weight:600;line-height:1.1;margin:0 0 .5em;
  letter-spacing:0;
}
.tc-page h1{font-size:clamp(38px,5.6vw,62px)}
.tc-page h2{font-size:clamp(29px,3.7vw,43px)}
.tc-page h3{font-size:23px;line-height:1.25;font-weight:600}
.tc-page p{margin:0 0 1.15em}
.tc-eyebrow{
  display:block;font-size:12px;font-weight:600;letter-spacing:.18em;
  text-transform:uppercase;color:var(--primary);margin-bottom:16px;
}
.tc-eyebrow--light{color:#e0a878}

.tc-page a:where(:not(.tc-btn):not(.tc-logo):not(.tc-prefooter__phone)){color:var(--primary);text-decoration:underline;text-underline-offset:2px;text-decoration-thickness:1px}
.tc-page a:where(:not(.tc-btn):not(.tc-logo):not(.tc-prefooter__phone)):hover{color:var(--primary-hover)}

/* ---------- buttons: squarer, sentence case, no lift ---------- */
a.tc-btn{
  display:inline-block;background:var(--cta);color:#fff !important;
  padding:14px 26px;border-radius:var(--radius);font-weight:600;font-size:16px;
  text-decoration:none;border:1px solid var(--cta);transition:background .18s,border-color .18s;
}
a.tc-btn:hover{background:var(--cta-hover);border-color:var(--cta-hover);color:#fff !important;text-decoration:none}
a.tc-btn--outline{background:transparent;color:var(--primary) !important;border-color:var(--rule)}
a.tc-btn--outline:hover{background:var(--bg-light);color:var(--primary-hover) !important;border-color:var(--primary)}
a.tc-btn--white{background:#fff;color:var(--ink) !important;border-color:#fff}
a.tc-btn--white:hover{background:#efe7d9;color:var(--ink) !important;border-color:#efe7d9}

/* ---------- header: rule instead of shadow ---------- */
.tc-header{position:sticky;top:0;z-index:900;background:var(--bg);border-bottom:2px solid var(--ink)}
.tc-header__inner{max-width:var(--max);margin:0 auto;padding:0 24px;height:76px;display:flex;align-items:center;justify-content:space-between;gap:24px}
a.tc-logo{
  font-family:'Space Grotesk','Inter',system-ui,sans-serif;
  color:var(--ink) !important;font-weight:600;font-size:21px;line-height:1.15;
  text-decoration:none;letter-spacing:-.015em;
}
a.tc-logo:hover{color:var(--ink) !important;text-decoration:none}
.tc-nav{display:flex;align-items:center;gap:26px}
.tc-nav a{font-size:15px;font-weight:500;color:var(--ink);text-decoration:none}
.tc-nav a:hover{color:var(--primary)}
.tc-nav__toggle{display:none;background:none;border:0;font-size:26px;color:var(--ink);cursor:pointer;line-height:1}

@media(max-width:900px){
  .tc-nav{
    display:none;position:absolute;top:76px;left:0;right:0;background:#fff;
    flex-direction:column;align-items:flex-start;gap:0;padding:8px 24px 20px;
    border-bottom:1px solid var(--rule);
  }
  .tc-nav.is-open{display:flex}
  .tc-nav a{padding:12px 0;width:100%}
  .tc-nav__toggle{display:block}
}

/* ---------- sections ---------- */
.tc-section{padding:88px 0}
.tc-section--tight{padding:56px 0}
.tc-section--alt{background:var(--bg-light)}
.tc-section__head{max-width:720px;margin:0 0 52px}     /* left-aligned, not centred */
.tc-section__head p{color:var(--body);margin:0}
@media(max-width:768px){.tc-section{padding:52px 0}.tc-section__head{margin-bottom:34px}}

/* ---------- hero ---------- */
.tc-hero{padding:64px 0 80px;border-bottom:2px solid var(--ink)}
.tc-hero__grid{display:grid;grid-template-columns:1.1fr .9fr;gap:56px;align-items:center}
.tc-hero__lead{font-size:19px;margin-bottom:28px}
.tc-hero__actions{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:30px}
.tc-hero__img{border-radius:var(--radius);width:100%;object-fit:cover}
.tc-quote{background:var(--card);border:2px solid var(--ink);padding:22px 24px;border-radius:var(--radius)}
.tc-quote h3{margin:0 0 6px;font-size:19px}
.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:34px}.tc-hero{padding:40px 0 52px}}

/* ---------- trust bar: rules, not cards ---------- */
.tc-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:0;border-top:2px solid var(--ink);border-bottom:2px solid var(--ink)}
.tc-stat{padding:26px 22px;text-align:left;border-right:1px solid var(--rule)}
.tc-stat:last-child{border-right:0}
.tc-stat__n{display:block;font-family:'Space Grotesk','Inter',system-ui,sans-serif;font-size:32px;font-weight:600;color:var(--primary);line-height:1.1;margin-bottom:4px}
.tc-stat__l{font-size:14px;color:var(--body);margin:0}
@media(max-width:900px){
  .tc-stats{grid-template-columns:repeat(2,1fr)}
  .tc-stat:nth-child(2n){border-right:0}
  .tc-stat:nth-child(-n+2){border-bottom:1px solid var(--rule)}
}

/* ---------- directions band ---------- */
.tc-band{background:var(--ink);text-align:center;padding:52px 0}
.tc-band h2{color:#fff;margin:0;font-size:clamp(21px,2.7vw,31px)}
.tc-band a{color:#fff;text-decoration:none;display:block}
.tc-band a:hover{text-decoration:underline;color:#fff}

/* ---------- card grids: separate outlined cards, not a joined hairline grid ----------
 * medicalclinicrailay.com uses a 1px-gap grid on a tinted ground so the cards read as one
 * table. Here each card is its own object: real gaps, a 2px ink outline, white against the
 * cream page. No shadow anywhere — the outline does that job.
 */
.tc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;background:transparent;border:0}
@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:var(--card);padding:26px 24px;border:2px solid var(--ink);border-radius:var(--radius);
  transition:transform .16s,background .16s;
}
.tc-card:hover{background:var(--bg-light);transform:translateY(-2px)}
.tc-card__icon{width:38px;height:38px;display:flex;align-items:center;justify-content:center;margin-bottom:14px}
.tc-card__icon svg{width:26px;height:26px;stroke:var(--primary);fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.tc-card h3{margin:0 0 8px;font-size:19px}
.tc-page .tc-card h3 a{color:var(--ink);text-decoration:none}
.tc-page .tc-card h3 a:hover{color:var(--primary);text-decoration:underline}
.tc-card p{margin:0;font-size:15px;line-height:1.6;color:var(--body)}

/* The six "what a visit involves" cards are statements, not links to a page. They keep the card
 * shell but lose the hover-lift, because a lift that leads nowhere reads as a broken link.
 * The modifier also keeps 05-verify.mjs honest: that check counts class="tc-card" to assert one
 * card per published page, and these would otherwise inflate the count to 50 against 44 pages. */
.tc-card--info:hover{background:var(--card);transform:none}

/* ---------- ink CTA band ---------- */
.tc-cta{background:var(--ink);text-align:center;padding:80px 0}
.tc-cta h2{color:#fff;max-width:700px;margin:0 auto 12px}
.tc-cta p{color:#b7cbc6;max-width:620px;margin:0 auto 26px}

/* ---------- reviews: rule above, italic, no cards ---------- */
.tc-reviews{display:grid;grid-template-columns:repeat(3,1fr);gap:40px}
@media(max-width:900px){.tc-reviews{grid-template-columns:1fr;gap:32px}}
.tc-review{border-top:2px solid var(--primary);padding-top:20px}
.tc-review__stars{color:#c8952f;letter-spacing:2px;margin-bottom:10px;font-size:15px}
.tc-review p{font-size:16px;margin:0 0 16px;font-style:italic}
.tc-review__who{display:flex;align-items:center;gap:12px}
.tc-review__av{width:36px;height:36px;border-radius:2px;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:14px;flex:none}
.tc-review__name{font-weight:600;color:var(--ink);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:380px;border:1px solid var(--rule);border-radius:var(--radius)}
.tc-details{list-style:none;padding:0;margin:0 0 24px}
.tc-details li{display:flex;gap:14px;padding:13px 0;border-bottom:1px solid var(--border);font-size:16px}
.tc-details li:last-child{border-bottom:0}
.tc-details strong{color:var(--ink);min-width:112px;flex:none;font-weight:600}
.tc-note{background:var(--bg-light);border-left:3px solid var(--primary);padding:16px 18px;font-size:15px;margin:0 0 20px}

/* ---------- pre-footer ---------- */
.tc-prefooter{position:relative;padding:104px 0;text-align:center;background-size:cover;background-position:center}
.tc-prefooter::before{content:"";position:absolute;inset:0;background:rgba(20,48,44,.74)}
.tc-prefooter .tc-wrap{position:relative;z-index:1}
.tc-prefooter h2{color:#fff;margin:0 auto 24px;max-width:620px}
a.tc-prefooter__phone{
  display:block;margin-top:20px;color:#fff !important;font-size:22px;font-weight:600;
  font-family:'Space Grotesk','Inter',system-ui,sans-serif;text-decoration:none;
}
a.tc-prefooter__phone:hover{color:#fff !important;text-decoration:underline}

/* ---------- footer ---------- */
.tc-footer{background:#fff;border-top:1px solid var(--rule)}
.tc-footer__inner{max-width:var(--max);margin:0 auto;padding:0 24px;min-height:76px;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 ---------- */
.tc-article{padding:52px 0 84px}
.tc-article__inner{max-width:760px;margin:0 auto}
.tc-article h2{margin:46px 0 14px;font-size:clamp(24px,2.5vw,31px)}
.tc-article h3{margin:30px 0 8px;font-size:19px}
.tc-article ul{margin:0 0 1.2em;padding-left:20px}
.tc-article li{margin-bottom:.55em}
.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);margin:10px 0 34px;border:1px solid var(--rule);
}

/* ---------- floating chat: squared ---------- */
.tc-chat{position:fixed;right:18px;bottom:18px;z-index:950;display:flex;flex-direction:column;gap:8px}
.tc-chat a{
  width:50px;height:50px;border-radius:var(--radius);display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 14px rgba(20,48,44,.22);transition:transform .18s;
}
.tc-chat a:hover{transform:translateY(-2px)}
.tc-chat svg{width:25px;height:25px;fill:#fff}
.tc-chat__wa{background:#25d366}
.tc-chat__line{background:#06c755}
.tc-chat__tel{background:var(--primary)}
@media(max-width:600px){.tc-chat a{width:46px;height:46px}.tc-chat svg{width:23px;height:23px}}
