/* SmileBridge — trustworthy, calm, readable. Designed for 35–75 audience:
   18px base, strong contrast, generous tap targets, minimal motion. */

:root {
  --navy: #12395b;
  --navy-deep: #0c2940;
  --teal: #0f766e;
  --teal-soft: #e4f2f0;
  --bg: #fbfaf7;
  --card: #ffffff;
  --ink: #1f2933;
  --muted: #52606d;
  --line: #dde3e8;
  --gold: #b98a2f;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(18, 57, 91, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Noto Sans', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Source Serif 4', 'Noto Serif SC', 'PingFang SC', serif;
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}

a { color: var(--teal); }
img { max-width: 100%; }

/* ===== Language switching: show only the active language ===== */
html[data-lang="en"] [data-lang]:not([data-lang="en"]),
html[data-lang="zh"] [data-lang]:not([data-lang="zh"]),
html[data-lang="vi"] [data-lang]:not([data-lang="vi"]) { display: none !important; }

html[data-lang="zh"] body { font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif; }
html[data-lang="zh"] h1, html[data-lang="zh"] h2, html[data-lang="zh"] h3, html[data-lang="zh"] .display {
  font-family: 'Noto Serif SC', 'PingFang SC', serif;
  letter-spacing: 0.02em;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 22px; }

/* ===== Header ===== */
header.site {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 250, 247, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 14px 22px; max-width: 1100px; margin: 0 auto; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.brand .name {
  font-family: 'Source Serif 4', 'Noto Serif SC', serif;
  font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1.1;
}
.brand .sub { font-size: 12.5px; color: var(--muted); letter-spacing: 0.04em; }

nav.main { display: flex; gap: 4px; flex-wrap: wrap; }
nav.main a {
  text-decoration: none; color: var(--navy);
  font-size: 15.5px; font-weight: 600;
  padding: 9px 13px; border-radius: 8px;
}
nav.main a:hover { background: var(--teal-soft); color: var(--teal); }

.lang-switch {
  display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px;
  background: #fff; overflow: hidden;
}
.lang-switch button {
  border: none; background: transparent; cursor: pointer;
  padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--muted);
  font-family: inherit;
}
.lang-switch button.is-on { background: var(--navy); color: #fff; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 60%, #0a3531 100%);
  color: #fff; padding: 84px 0 64px;
}
.hero h1 {
  color: #fff; font-size: clamp(34px, 5.4vw, 56px); max-width: 19em; line-height: 1.2;
}
.hero h1 em { font-style: normal; color: #8fd6cd; }
.hero .lede { font-size: clamp(18px, 2.2vw, 21px); color: #d7e3ec; max-width: 36em; margin: 22px 0 34px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  border-radius: 10px; padding: 16px 28px;
  font-size: 17px; font-weight: 700; font-family: inherit;
  border: 2px solid transparent; text-align: center;
}
.btn.primary { background: #fff; color: var(--navy); }
.btn.primary:hover { background: #eef6f5; }
.btn.ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; background: transparent; }
.btn.ghost:hover { border-color: #fff; }
.btn.teal { background: var(--teal); color: #fff; }
.btn.teal:hover { background: #0c5f59; }

.hero-note { margin-top: 26px; font-size: 15px; color: #b7c8d5; display: flex; align-items: center; gap: 8px; }

/* ===== Trust bar ===== */
.trustbar { background: #fff; border-bottom: 1px solid var(--line); }
.trustbar .container {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 26px 22px;
}
.tstat { text-align: center; padding: 8px 6px; }
.tstat .n {
  font-family: 'Source Serif 4', 'Noto Serif SC', serif;
  font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; color: var(--teal);
}
.tstat .l { font-size: 14.5px; color: var(--muted); line-height: 1.4; }

/* ===== Sections ===== */
section.block { padding: 76px 0; }
section.block.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
  display: inline-block; color: var(--teal); font-weight: 700;
  font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px;
}
html[data-lang="zh"] .eyebrow, html[data-lang="vi"] .eyebrow { text-transform: none; letter-spacing: 0.18em; }
h2.title { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.section-lede { color: var(--muted); max-width: 44em; margin-bottom: 40px; font-size: 18.5px; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--teal-soft);
  display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 16px;
}
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card p { font-size: 16.5px; color: var(--muted); }
.card .tagline { margin-top: 12px; font-size: 14.5px; color: var(--teal); font-weight: 600; }

.brand-strip {
  margin-top: 34px; background: var(--teal-soft); border-radius: var(--radius);
  padding: 22px 26px; display: flex; align-items: center; gap: 18px 28px; flex-wrap: wrap;
}
.brand-strip .label { font-size: 15px; font-weight: 700; color: var(--navy); }
.brand-strip .b {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 16px; font-weight: 600; font-size: 15.5px; color: var(--ink);
}
.brand-strip .b small { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.why { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.why .tick { color: var(--teal); font-size: 22px; line-height: 1.3; flex-shrink: 0; }
.why h3 { font-size: 18.5px; margin-bottom: 6px; }
.why p { font-size: 16px; color: var(--muted); }

/* Doctors */
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.doc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.doc .avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(140deg, var(--navy), var(--teal));
  color: #fff; font-family: 'Source Serif 4', 'Noto Serif SC', serif;
  font-size: 26px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.doc h3 { font-size: 20px; }
.doc .role { color: var(--teal); font-weight: 600; font-size: 14.5px; margin: 4px 0 10px; }
.doc p { font-size: 16px; color: var(--muted); }
.team-note {
  margin-top: 26px; background: var(--navy); color: #d7e3ec; border-radius: var(--radius);
  padding: 24px 28px; font-size: 17px;
}
.team-note strong { color: #fff; }

/* Journey */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step .n {
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; margin-bottom: 14px;
  font-family: 'Source Serif 4', serif;
}
.step h3 { font-size: 18.5px; margin-bottom: 6px; }
.step p { font-size: 15.5px; color: var(--muted); }

.honest {
  margin-top: 38px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.honest .col { border-radius: var(--radius); padding: 26px; }
.honest .us { background: var(--teal-soft); border: 1px solid #c4e0dc; }
.honest .them { background: #eef3f8; border: 1px solid #d3e0ec; }
.honest h3 { font-size: 18px; margin-bottom: 12px; }
.honest ul { list-style: none; }
.honest li { padding: 6px 0 6px 28px; position: relative; font-size: 16px; color: var(--ink); }
.honest li::before { content: "✓"; position: absolute; left: 2px; color: var(--teal); font-weight: 700; }

/* FAQ */
.faq-list { max-width: 800px; }
details.faq {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 12px; overflow: hidden;
}
details.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 17.5px; color: var(--navy);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 24px; color: var(--teal); flex-shrink: 0; }
details.faq[open] summary::after { content: "–"; }
details.faq .a { padding: 0 22px 20px; color: var(--muted); font-size: 16.5px; }

/* Locations / contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 34px; align-items: start; }
.loc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.loc {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; font-size: 15px;
}
.loc strong { display: block; color: var(--navy); font-size: 15.5px; }
.loc span { color: var(--muted); font-size: 14px; }
.hotline {
  margin-top: 16px; background: var(--navy); color: #fff; border-radius: 10px;
  padding: 16px 20px; font-size: 16px; line-height: 1.5;
}
.hotline a { color: #8fd6cd; font-weight: 700; text-decoration: none; }

form.lead { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
form.lead h3 { font-size: 21px; margin-bottom: 6px; }
form.lead .formsub { color: var(--muted); font-size: 15.5px; margin-bottom: 20px; }
form.lead label { display: block; font-weight: 600; font-size: 15px; margin: 14px 0 6px; color: var(--navy); }
form.lead input, form.lead textarea, form.lead select {
  width: 100%; border: 1.5px solid var(--line); border-radius: 9px;
  padding: 13px 14px; font-size: 16.5px; font-family: inherit; background: #fff; color: var(--ink);
}
form.lead input:focus, form.lead textarea:focus, form.lead select:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
form.lead button { margin-top: 20px; width: 100%; }
.form-status { margin-top: 14px; font-size: 15.5px; display: none; }
.form-status.ok { display: block; color: var(--teal); font-weight: 600; }
.form-status.err { display: block; color: #b3261e; font-weight: 600; }

/* Footer */
footer.site { background: var(--navy-deep); color: #aebfcc; padding: 46px 0 36px; font-size: 14.5px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; margin-bottom: 26px; }
footer.site h4 { color: #fff; font-size: 16px; margin-bottom: 10px; }
footer.site p { margin-bottom: 10px; line-height: 1.6; }
footer.site .fine { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 18px; font-size: 13.5px; color: #8fa3b3; }

/* ===== Chat widget ===== */
.sb-chat-btn {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  background: var(--teal); color: #fff; border: none; cursor: pointer;
  border-radius: 999px; padding: 16px 22px;
  font-size: 16.5px; font-weight: 700; font-family: inherit;
  box-shadow: 0 6px 18px rgba(12, 41, 64, 0.32);
  display: flex; align-items: center; gap: 9px;
}
.sb-chat-btn:hover { background: #0c5f59; }

.sb-chat {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  width: min(400px, calc(100vw - 24px));
  height: min(580px, calc(100dvh - 40px));
  background: #fff; border-radius: 16px; border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(12, 41, 64, 0.3);
  display: none; flex-direction: column; overflow: hidden;
}
.sb-chat.open { display: flex; }
.sb-chat .head { background: var(--navy); color: #fff; padding: 16px 18px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.sb-chat .head .t { font-weight: 700; font-size: 17px; }
.sb-chat .head .s { font-size: 13.5px; color: #b7c8d5; margin-top: 2px; }
.sb-chat .head button {
  background: rgba(255, 255, 255, 0.12); color: #fff; border: none; cursor: pointer;
  border-radius: 8px; width: 34px; height: 34px; font-size: 17px; flex-shrink: 0;
}
.sb-chat .msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.sb-msg { max-width: 84%; padding: 11px 14px; border-radius: 14px; font-size: 15.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: break-word; }
.sb-msg.visitor { align-self: flex-end; background: var(--teal); color: #fff; border-bottom-right-radius: 4px; }
.sb-msg.staff { align-self: flex-start; background: #fff; border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; }
.sb-msg.info { align-self: center; background: transparent; color: var(--muted); font-size: 13.5px; text-align: center; }
.sb-chat .compose { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.sb-chat .compose textarea {
  flex: 1; resize: none; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 11px 12px; font-size: 16px; font-family: inherit; height: 48px; color: var(--ink);
}
.sb-chat .compose textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.sb-chat .compose button {
  background: var(--teal); color: #fff; border: none; border-radius: 10px;
  padding: 0 18px; font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.sb-chat .compose button:disabled { opacity: 0.5; cursor: default; }

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .cards, .docs, .steps { grid-template-columns: 1fr 1fr; }
  .contact-grid, .honest, .why-grid { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .header-row { padding: 10px 16px; }
  nav.main { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  nav.main a { white-space: nowrap; font-size: 14.5px; padding: 8px 10px; }
  .hero { padding: 56px 0 46px; }
  .cards, .docs, .steps, .loc-list { grid-template-columns: 1fr; }
  .trustbar .container { grid-template-columns: 1fr 1fr; }
  .btn { width: 100%; }
  .cta-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ===== v2: professional icons, doctor photos, subpages ===== */
.icon svg, .mark svg { display: block; }
.card .icon { color: var(--teal); }

.doc .photo {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  object-position: top center; border: 3px solid var(--teal-soft); margin-bottom: 16px;
  display: block;
}
.doc .exp { font-size: 15px; color: var(--ink); margin-bottom: 10px; }
.doc ul.creds { list-style: none; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.doc ul.creds li { font-size: 13.5px; color: var(--muted); padding: 3px 0 3px 18px; position: relative; }
.doc ul.creds li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); opacity: .55; }

/* Page hero for subpages */
.page-hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 70%); color: #fff; padding: 52px 0 40px; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4.6vw, 44px); }
.page-hero p { color: #c9d8e4; max-width: 46em; margin-top: 12px; font-size: 18px; }
.crumb { font-size: 14px; margin-bottom: 14px; }
.crumb a { color: #8fd6cd; text-decoration: none; }
.crumb span { color: #7e93a5; }

/* Doctors directory */
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 26px 0 30px; }
.filter-row button {
  border: 1.5px solid var(--line); background: #fff; color: var(--navy);
  border-radius: 999px; padding: 9px 16px; font-size: 14.5px; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.filter-row button.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.dcard .top { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.dcard img {
  width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: top center;
  border: 3px solid var(--teal-soft); flex-shrink: 0;
}
.dcard h3 { font-size: 18px; line-height: 1.3; }
.dcard .zh-name { font-size: 14px; color: var(--muted); font-weight: 400; }
.dcard .role { color: var(--teal); font-weight: 600; font-size: 13.5px; margin-top: 2px; }
.dcard .where { font-size: 13px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chip {
  background: var(--teal-soft); color: var(--navy); border-radius: 6px;
  font-size: 12.5px; font-weight: 600; padding: 4px 9px;
}
.dcard .creds { list-style: none; margin-top: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.dcard .creds li { font-size: 12.5px; color: var(--muted); padding: 2.5px 0 2.5px 14px; position: relative; }
.dcard .creds li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); opacity: .5; }
.dcard .spec-zh { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.dir-count { color: var(--muted); font-size: 15px; margin-bottom: 8px; }

/* Treatments / products subpage */
.tsection { padding: 56px 0; border-bottom: 1px solid var(--line); }
.tsection:last-of-type { border-bottom: none; }
.tsection h2 { font-size: clamp(26px, 3.6vw, 34px); margin-bottom: 8px; }
.tsection .sub { color: var(--teal); font-weight: 600; font-size: 15px; margin-bottom: 16px; }
.tsection p { max-width: 50em; margin-bottom: 14px; color: var(--ink); }
.tsection p.dim { color: var(--muted); font-size: 16.5px; }
.tsection h3 { font-size: 19px; margin: 22px 0 8px; }
.tlist { list-style: none; max-width: 50em; margin-bottom: 10px; }
.tlist li { padding: 7px 0 7px 26px; position: relative; font-size: 16.5px; }
.tlist li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.tlist li strong { color: var(--navy); }
.note-box {
  background: var(--teal-soft); border: 1px solid #c4e0dc; border-radius: 12px;
  padding: 18px 22px; max-width: 52em; font-size: 15.5px; color: var(--ink); margin: 18px 0;
}
table.prod { width: 100%; border-collapse: collapse; margin: 18px 0 6px; font-size: 15.5px; }
table.prod th, table.prod td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.prod th { color: var(--navy); font-size: 14px; letter-spacing: .04em; background: var(--teal-soft); }
table.prod td:first-child { font-weight: 700; color: var(--navy); white-space: nowrap; }
.table-wrap { overflow-x: auto; }

/* Concierge / travel section */
.concierge { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.con-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.con-card .icon { width: 52px; height: 52px; border-radius: 12px; background: var(--teal-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--teal); }
.con-card h3 { font-size: 19px; margin-bottom: 8px; }
.con-card p { font-size: 16px; color: var(--muted); }
.con-card .incl { margin-top: 12px; font-size: 14px; color: var(--teal); font-weight: 600; }

@media (max-width: 920px) { .dir-grid { grid-template-columns: 1fr 1fr; } .concierge { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .dir-grid { grid-template-columns: 1fr; } }
