/* Phòng chẩn trị YHCT Hồng Khôi – viemxoanghongkhoi.com
   Màu lấy theo hộp thuốc: đỏ đậm, xanh lá, vàng kim trên nền kem. */
:root {
  --red: #9e1b1b;
  --red-dark: #7a1212;
  --red-soft: #f7e7e2;
  --green: #1f6b3a;
  --green-soft: #e6f1e8;
  --gold: #c99a2e;
  --gold-soft: #fbf1d9;
  --cream: #fbf7f0;
  --paper: #ffffff;
  --ink: #2b2118;
  --muted: #6b5e52;
  --line: #e7dccd;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(60, 30, 10, .08);
  --wrap: 1120px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Lora", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  padding-bottom: 76px; /* chừa chỗ thanh nút dưới đáy trên điện thoại */
}
@media (min-width: 900px) { body { font-size: 18px; padding-bottom: 0; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.3; color: var(--ink); margin: 0 0 .6em; }
h1 { font-size: clamp(1.75rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3.6vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 100; }

/* Dải thông báo thuốc kê đơn */
.topbar { background: var(--red-dark); color: #fff; font-size: .82rem; text-align: center; padding: 6px 12px; line-height: 1.45; }
.topbar a { color: #fff; font-weight: 600; }

/* Đầu trang */
.header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header .wrap { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.seal { width: 42px; height: 42px; flex: none; }
.brand-text { line-height: 1.2; }
.brand-text small { display: block; font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.brand-text strong { font-family: var(--font-head); font-size: 1.2rem; color: var(--red); }
.nav-toggle { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: .95rem; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }
.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.nav.open { display: block; }
.nav ul { list-style: none; margin: 0; padding: 8px 16px 16px; }
.nav li { margin: 0; }
.nav a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; }
.nav a[aria-current="page"] { color: var(--red); }
.header .header-cta { display: none; }
.brand-text small, .brand-text strong { white-space: nowrap; }
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .nav { display: block; position: static; box-shadow: none; border: 0; background: none; }
  .nav ul { display: flex; gap: 4px; padding: 0; }
  .nav a { border: 0; padding: 8px 9px; font-size: .93rem; border-radius: 8px; white-space: nowrap; }
  .header-cta { white-space: nowrap; padding: 10px 18px; }
  .nav a:hover { background: var(--cream); }
  .header .header-cta { display: inline-flex; }
}

/* Nút */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .1s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #17552e; color: #fff; }
.btn-ghost { background: var(--paper); color: var(--red); border-color: var(--red); }
.btn-ghost:hover { background: var(--red-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Khối trang chủ */
.hero { background: radial-gradient(1200px 400px at 80% 0%, var(--gold-soft), transparent 60%), var(--cream); padding: 40px 0 32px; }
.hero .wrap { display: grid; gap: 28px; align-items: center; }
.hero .eyebrow { color: var(--green); font-weight: 600; font-size: .95rem; margin-bottom: .4em; }
.hero p.lead { font-size: 1.08rem; color: var(--muted); }
.hero-img { border-radius: var(--radius); box-shadow: var(--shadow); background: var(--paper); }
.hero-points { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 8px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.hero-points svg { width: 22px; height: 22px; flex: none; color: var(--green); margin-top: 3px; }
@media (min-width: 900px) { .hero { padding: 64px 0 56px; } .hero .wrap { grid-template-columns: 1.1fr .9fr; } }

.section { padding: 44px 0; }
.section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 24px; }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.section.alt .card { background: var(--cream); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card-link { text-decoration: none; color: inherit; display: block; transition: box-shadow .15s ease, border-color .15s ease; }
.card-link:hover { border-color: var(--gold); box-shadow: var(--shadow); color: inherit; }
.card-link .more { color: var(--red); font-weight: 600; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 16px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 20px 76px; position: relative; margin: 0; }
.steps li::before { content: counter(step); position: absolute; left: 20px; top: 20px; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; display: grid; place-items: center; font-family: var(--font-head); font-size: 1.2rem; }
.steps strong { display: block; margin-bottom: 2px; }
.steps.five { grid-template-columns: 1fr; }

.symptoms { display: grid; gap: 10px; list-style: none; padding: 0; }
@media (min-width: 700px) { .symptoms { grid-template-columns: repeat(2, 1fr); } }
.symptoms li { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0; display: flex; gap: 10px; }
.symptoms li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; margin-top: .6em; }

/* Hộp lưu ý */
.note { border-radius: var(--radius); padding: 16px 18px; margin: 0 0 1.2em; border: 1px solid; }
.note > :last-child { margin-bottom: 0; }
.note-warn { background: var(--red-soft); border-color: #e9c4b9; }
.note-warn strong:first-child { color: var(--red-dark); }
.note-info { background: var(--green-soft); border-color: #c6ddc9; }
.note-gold { background: var(--gold-soft); border-color: #ecd9a6; }
.rx { display: inline-block; background: var(--red); color: #fff; font-weight: 700; border-radius: 6px; padding: 0 8px; font-size: .9em; letter-spacing: .03em; }

/* Trang nội dung */
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding: 28px 0 22px; }
.page-head p { color: var(--muted); margin: 0; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.content { padding: 32px 0 48px; }
.content h2 { margin-top: 1.6em; }
.content h2:first-child { margin-top: 0; }
.content table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; background: var(--paper); border-radius: 12px; overflow: hidden; font-size: .95rem; }
.content th, .content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.content th { background: var(--gold-soft); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.figure { margin: 0 0 1.4em; }
.figure img { border-radius: 12px; border: 1px solid var(--line); background: var(--paper); }
.figure figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.two-col { display: grid; gap: 24px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 340px; align-items: start; } .sticky-side { position: sticky; top: 96px; } }
.info-list { list-style: none; padding: 0; }
.info-list li { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.info-list b { display: block; font-size: .85rem; color: var(--muted); font-weight: 500; }
.article-meta { font-size: .9rem; color: var(--muted); }
.disclaimer { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 28px; }

/* Hỏi đáp */
.faq-search { width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; font: inherit; background: var(--paper); margin-bottom: 20px; }
.faq-group h2 { font-size: 1.25rem; margin: 1.6em 0 .6em; }
.faq-group:first-of-type h2 { margin-top: 0; }
details.faq { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 600; list-style: none; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 16px; top: 10px; font-size: 1.5rem; color: var(--red); line-height: 1.2; }
details.faq[open] summary::after { content: "–"; }
details.faq .answer { padding: 0 16px 14px; }
details.faq .answer p:last-child { margin-bottom: 0; }
.faq-empty { display: none; color: var(--muted); }

/* Form đặt lịch */
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
@media (min-width: 700px) { .form { padding: 28px; } }
.field { margin-bottom: 18px; }
.field > label, .field > .label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { display: block; font-size: .88rem; color: var(--muted); font-weight: 400; }
.req { color: var(--red); }
.input, .select, .textarea { width: 100%; min-height: 50px; border: 1px solid #d9cbb8; border-radius: 10px; padding: 10px 14px; font: inherit; background: #fffdf9; color: var(--ink); }
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--green); outline: 2px solid var(--green-soft); }
.choices { display: grid; gap: 8px; }
@media (min-width: 600px) { .choices.cols-2 { grid-template-columns: repeat(2, 1fr); } }
.choice { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; background: #fffdf9; font-weight: 400; margin: 0; }
.choice input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--green); flex: none; }
.row-2 { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { display: none; border-radius: 12px; padding: 14px 16px; margin-top: 16px; }
.form-msg.ok { display: block; background: var(--green-soft); border: 1px solid #c6ddc9; }
.form-msg.err { display: block; background: var(--red-soft); border: 1px solid #e9c4b9; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Bản đồ */
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); background: var(--line); }
@media (min-width: 900px) { .map { aspect-ratio: 16 / 10; } }

/* Chân trang */
.footer { background: #2b1d14; color: #e9dfd2; padding: 40px 0 28px; font-size: .92rem; }
.footer a { color: #fff; }
.footer h3 { color: #fff; font-size: 1.05rem; font-family: var(--font); font-weight: 600; }
.footer .grid { gap: 28px; }
@media (min-width: 800px) { .footer .grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer ul { list-style: none; padding: 0; }
.footer .legal { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 24px; padding-top: 16px; font-size: .82rem; color: #c9b9a6; }

/* Thanh nút cố định dưới đáy (điện thoại) */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(60, 30, 10, .1); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
.action-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border-radius: 12px; text-decoration: none; font-size: .82rem; font-weight: 600; }
.action-bar svg { width: 22px; height: 22px; }
.ab-call { background: var(--green-soft); color: var(--green); }
.ab-zalo { background: #e7f0ff; color: #0068ff; }
.ab-book { background: var(--red); color: #fff; }
.ab-book:hover { color: #fff; }
@media (min-width: 900px) {
  .action-bar { left: auto; right: 20px; bottom: 20px; grid-template-columns: 1fr; width: auto; background: none; border: 0; box-shadow: none; padding: 0; }
  .action-bar a { width: 64px; height: 64px; border-radius: 50%; font-size: .7rem; box-shadow: var(--shadow); }
  .action-bar .ab-book { display: none; }
}

@media print {
  .header, .action-bar, .footer, .topbar, .nav-toggle { display: none !important; }
  body { background: #fff; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.figure { max-width: 560px; }

/* Logo */
.seal { width: 44px; height: 44px; border-radius: 50%; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.footer-brand img { width: 88px; height: auto; border-radius: 8px; background: #fff; }
.slogan { font-family: var(--font-head); font-style: italic; color: #f3d08a; font-size: 1.05rem; margin: 0; }
.logo-card { text-align: center; }
.logo-card img { max-width: 240px; margin: 0 auto 8px; border-radius: 10px; }
@media (min-width: 900px) { .footer .wrap { padding-right: 100px; } }

/* Trang đích quảng cáo */
.header-call { margin-left: auto; padding: 8px 16px; min-height: 44px; font-size: .95rem; white-space: nowrap; }
.hero-logo { max-width: 360px; margin: 0 auto; }

/* Thông báo cookie */
.cookie { position: fixed; left: 12px; right: 12px; bottom: 84px; z-index: 70; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(60, 30, 10, .2); padding: 16px; font-size: .92rem; }
.cookie p { margin-bottom: 12px; }
.cookie .btn { min-height: 42px; padding: 8px 18px; }
@media (min-width: 900px) { .cookie { left: 20px; right: auto; bottom: 20px; max-width: 440px; } }
.header-call .so { display: none; }
@media (min-width: 420px) { .header-call .so { display: inline; } .header-call .goi { display: none; } }
