/* Nha khoa Bạch Lam — sạch, sáng, xanh lam tin cậy. */
:root {
  --primary: #0a6c86;
  --primary-dark: #075469;
  --primary-50: #eaf5f9;
  --mint: #22a891;
  --mint-50: #e3f6f1;
  --ink: #0f2a3a;
  --muted: #4a6272;
  --line: #dbe7ee;
  --bg: #ffffff;
  --tint: #f3f8fb;
  --navy: #0b2433;
  --head: "Lexend", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--body); overflow-x: hidden; }
svg { display: block; max-width: 100%; }
a { color: var(--primary); }
h1, h2, h3 { font-family: var(--head); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-weight: 600; }
h2 { font-weight: 600; font-size: clamp(1.75rem, 4.6vw, 2.6rem); }
h3 { font-weight: 600; font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid #f0a020; outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Nút */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 12px;
  border: 2px solid transparent; font: 600 15px/1.2 var(--head); text-decoration: none; cursor: pointer; transition: background .2s, box-shadow .2s, color .2s;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px -10px rgba(10, 108, 134, .7); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn-white { background: #fff; color: var(--primary-dark); }
.btn-white:hover { background: var(--primary-50); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }

/* Thanh trên cùng */
.topbar { background: var(--navy); color: #cfe0ea; font-size: 13px; }
.topbar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; padding-top: 8px; padding-bottom: 8px; }
.topbar p { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 15px; height: 15px; fill: none; stroke: #7fd1c2; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
.topbar p:nth-child(2) { display: none; }
@media (min-width: 760px) { .topbar p:nth-child(2) { display: inline-flex; } }
@media (max-width: 480px) { .topbar p:first-child { display: none; } .topbar-inner { justify-content: center; } }

/* Đầu trang */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .95); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font: 700 1.25rem var(--head); letter-spacing: -.02em; }
.brand-sub { font-size: .74rem; color: var(--muted); font-weight: 500; }

.nav-toggle { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; position: relative; transition: transform .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 8px 20px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(15, 42, 58, .1); }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0 0 12px; padding: 0; }
.site-nav li a { display: flex; align-items: center; min-height: 48px; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.site-nav .btn { width: 100%; }
@media (min-width: 940px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: 24px; position: static; padding: 0; border: 0; box-shadow: none; background: none; }
  .site-nav ul { display: flex; gap: 4px; margin: 0; }
  .site-nav li a { min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; font-size: 15px; color: var(--muted); font-weight: 500; }
  .site-nav li a:hover { background: var(--primary-50); color: var(--primary-dark); }
  .site-nav .btn { width: auto; }
}

/* Hero */
.hero { padding: 40px 0 56px; background: linear-gradient(180deg, var(--primary-50) 0%, #fff 100%); }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--primary-dark); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--mint-50); }
.hero h1 { font-size: clamp(2.1rem, 7.4vw, 3.6rem); line-height: 1.12; }
.hl { color: var(--primary); position: relative; white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .28em; background: var(--mint-50); z-index: -1; border-radius: 4px; }
.hero h1 { position: relative; z-index: 0; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 24px; }
.hero-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hero-checks li { position: relative; padding-left: 30px; font-weight: 500; font-size: .96rem; }
.hero-checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--mint-50);
}
.hero-checks li::after {
  content: ""; position: absolute; left: 7px; top: 7px; width: 5px; height: 9px; border: solid var(--mint); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.hero-visual { position: relative; }
.visual-card { position: relative; max-width: 460px; margin: 0 auto; }
.visual-card svg { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(10, 108, 134, .18)); }
.chip { position: absolute; display: flex; flex-direction: column; padding: 12px 16px; background: #fff; border-radius: 14px; box-shadow: 0 14px 34px -10px rgba(15, 42, 58, .25); font-size: 13px; color: var(--muted); line-height: 1.3; }
.chip strong { font: 700 1.25rem var(--head); color: var(--ink); }
.chip-a { left: -4px; bottom: 18%; }
.chip-b { right: -4px; top: 8%; }
.chip-stars { color: #c47f00; letter-spacing: .1em; font-size: 14px; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .hero-checks { grid-template-columns: 1fr 1fr; }
  .chip-a { left: -28px; }
  .chip-b { right: -20px; }
}

/* Chỉ số */
.stats { background: #fff; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transform: translateY(-24px); }
.stats-grid div { background: #fff; padding: 20px 18px; }
.stats-grid strong { display: block; font: 700 1.5rem var(--head); color: var(--primary-dark); letter-spacing: -.02em; }
.stats-grid span { font-size: .88rem; color: var(--muted); }
@media (min-width: 900px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } .stats-grid div { padding: 26px 28px; } }

/* Section */
.section { padding: 64px 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 660px; margin-bottom: 36px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head p:not(.kicker) { color: var(--muted); }
.kicker { margin: 0 0 10px; font: 600 .8rem/1.3 var(--head); text-transform: uppercase; letter-spacing: .12em; color: var(--primary); }
.kicker-light { color: #8fdccd; }
@media (min-width: 900px) { .section { padding: 96px 0; } }

/* Dịch vụ */
.svc-grid { display: grid; gap: 16px; }
.svc { padding: 26px 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s; }
.svc:hover { border-color: #b4d6e2; box-shadow: 0 20px 40px -24px rgba(10, 108, 134, .35); }
.svc-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 14px; background: var(--primary-50); }
.svc-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc p { color: var(--muted); font-size: .95rem; }
.svc-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; font-family: var(--head); font-size: .92rem; text-decoration: none; }
.svc-link::after { content: "→"; transition: transform .2s; }
.svc-link:hover::after { transform: translateX(4px); }
@media (min-width: 640px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .svc-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* Bảng giá */
.price-tables { display: grid; gap: 18px; }
.ptable { padding: 24px 20px; background: #fff; border-radius: 18px; border: 1px solid var(--line); }
.ptable h3 { font-size: 1.1rem; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 2px solid var(--primary); display: inline-block; }
.ptable table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ptable thead th { padding: 10px 0 8px; text-align: left; font: 600 .75rem var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.ptable thead th:last-child { text-align: right; }
.ptable tbody th { text-align: left; font-weight: 500; padding: 12px 12px 12px 0; vertical-align: top; }
.ptable td { text-align: right; padding: 12px 0; font-weight: 700; color: var(--primary-dark); white-space: nowrap; vertical-align: top; font-family: var(--head); }
.ptable tbody tr + tr th, .ptable tbody tr + tr td { border-top: 1px dashed var(--line); }
.ptable small { display: block; font: 400 .8rem var(--body); color: var(--muted); margin-top: 2px; white-space: normal; }
.free { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--mint-50); color: #0d6b5b; font-size: .85rem; }
.ptable-note { margin: 12px 0 0; padding: 12px 14px; background: var(--primary-50); border-radius: 12px; font-size: .88rem; color: var(--ink); }
@media (min-width: 900px) { .price-tables { grid-template-columns: 1fr 1fr; gap: 22px; } .ptable { padding: 30px 30px; } }
@media (max-width: 400px) { .ptable td { white-space: normal; } .ptable { padding: 22px 16px; } }

.promo {
  margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 24px;
  border-radius: 20px; background: linear-gradient(120deg, var(--primary) 0%, #0d8a8a 100%); color: #fff;
}
.promo p { margin: 0; }
.promo-title { font: 600 1.2rem var(--head); margin-bottom: 4px !important; }
.promo strong { font-size: 1.15rem; }

/* Bác sĩ */
.doc-grid { display: grid; gap: 18px; }
.doc { padding: 28px 24px; border: 1px solid var(--line); border-radius: 20px; text-align: left; }
.doc-avatar { width: 88px; height: 88px; border-radius: 26px; display: grid; place-items: center; margin-bottom: 18px; position: relative; overflow: hidden; }
.doc-avatar::before { content: ""; position: absolute; left: 50%; bottom: -30px; width: 70px; height: 54px; margin-left: -35px; border-radius: 50% 50% 0 0; background: rgba(255, 255, 255, .25); }
.doc-avatar span { position: relative; font: 700 1.5rem var(--head); color: #fff; letter-spacing: .02em; }
.doc-a { background: linear-gradient(135deg, #0a6c86, #0f8fa8); }
.doc-b { background: linear-gradient(135deg, #0d7a6a, #22a891); }
.doc-c { background: linear-gradient(135deg, #24507a, #3d78a8); }
.doc-role { font-weight: 600; color: var(--primary); font-size: .92rem; margin-bottom: .6em; }
.doc p:last-child { color: var(--muted); font-size: .95rem; margin: 0; }
@media (min-width: 800px) { .doc-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

/* Quy trình */
.section-dark { background: var(--navy); color: #e6f0f5; }
.section-dark h2, .section-dark h3 { color: #fff; }
.process-grid { display: grid; gap: 40px; }
.process-lead { color: #b8cdd9; }
.safety { margin-top: 26px; padding: 22px 22px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.safety ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.safety li { padding-left: 24px; position: relative; color: #d3e3ec; font-size: .95rem; }
.safety li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: #5fd0bb; }
.timeline { list-style: none; counter-reset: s; margin: 0; padding: 0; position: relative; }
.timeline li { counter-increment: s; position: relative; padding: 0 0 26px 64px; }
.timeline li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px;
  background: #fff; color: var(--primary-dark); font: 700 1.1rem var(--head);
}
.timeline li::after { content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px; background: rgba(255, 255, 255, .15); }
.timeline li:last-child::after { display: none; }
.timeline li:last-child { padding-bottom: 0; }
.timeline h3 { margin-bottom: .3em; font-size: 1.12rem; }
.timeline p { margin: 0; color: #b8cdd9; font-size: .95rem; }
@media (min-width: 900px) { .process-grid { grid-template-columns: .9fr 1.1fr; gap: 80px; } }

/* Cảm nhận */
.quote-grid { display: grid; gap: 18px; }
.quote { margin: 0; padding: 28px 24px; border-radius: 20px; background: var(--tint); position: relative; display: flex; flex-direction: column; }
.quote::before { content: "“"; font: 700 4rem/1 var(--head); color: var(--primary); opacity: .25; position: absolute; top: 12px; right: 22px; }
.quote blockquote { margin: 0 0 18px; }
.quote blockquote p { margin: 0; font-size: 1.02rem; }
.quote figcaption { margin-top: auto; display: flex; flex-direction: column; font-size: .9rem; color: var(--muted); }
.quote figcaption strong { color: var(--ink); font-family: var(--head); font-weight: 600; }
@media (min-width: 900px) { .quote-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

/* Hỏi đáp */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.faq details[open] { border-color: #b4d6e2; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 58px; padding: 14px 20px; font: 600 1rem/1.4 var(--head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border: solid var(--primary); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; margin-top: -4px; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }
.faq-more { text-align: center; margin: 28px 0 0; color: var(--muted); }
.faq-more a { font-weight: 600; }

/* Liên hệ */
.contact-grid { display: grid; gap: 28px; }
.contact-main > p { color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 28px; }
.addr { font-style: normal; padding: 22px 22px; border-left: 4px solid var(--primary); background: var(--tint); border-radius: 0 16px 16px 0; line-height: 1.7; }
.addr-label { display: block; font: 600 .78rem var(--head); text-transform: uppercase; letter-spacing: .1em; color: var(--primary); }
.addr-sub { font-size: .9rem; color: var(--muted); }
.addr a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.hours { padding: 28px 24px; border-radius: 20px; background: var(--primary-50); border: 1px solid #cfe6ef; }
.hours table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.hours th, .hours td { padding: 11px 0; border-bottom: 1px solid #cfe6ef; font-size: .96rem; }
.hours th { text-align: left; font-weight: 500; }
.hours td { text-align: right; font-weight: 700; font-family: var(--head); color: var(--primary-dark); }
.hours-note { font-size: .92rem; color: var(--muted); margin-bottom: .5em; }
.hours-note a { font-weight: 700; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; } .hours { padding: 34px 32px; } }

/* Chân trang */
.site-footer { background: var(--navy); color: #b8cdd9; padding: 40px 0 120px; font-size: .9rem; }
.footer-inner { display: grid; gap: 14px; }
.footer-inner p { margin: 0 0 6px; }
.footer-brand { font: 700 1.2rem var(--head); color: #fff; }
.footer-note { font-size: .82rem; color: #93aebd; max-width: 560px; }
@media (min-width: 900px) { .site-footer { padding-bottom: 48px; } .footer-inner { grid-template-columns: 1fr 1fr; align-items: end; } }

@media (max-width: 420px) {
  .hero-actions .btn, .contact-actions .btn { flex: 1 1 100%; }
  .chip { padding: 9px 12px; font-size: 12px; }
  .chip strong { font-size: 1.05rem; }
}

/* Ảnh thật phòng khám */
.visual-card .hero-photo { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 30% center; border-radius: 34px;
  border: 6px solid #fff; box-shadow: 0 34px 70px -24px rgba(10, 108, 134, .45); }

/* Ảnh chân dung bác sĩ (thay ô chữ cái đầu) */
.doc-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.doc-avatar:has(.doc-photo)::before { display: none; }
