/* ViVan Vet - trang giới thiệu & blog. Màu lấy theo logo và trang quản lý. */
:root {
  --primary: #1a5fd0;
  --primary-dark: #163f8f;
  --navy: #12295e;
  --sky: #6fa8ff;
  --tint: #eaf2ff;
  --bg: #ffffff;
  --soft: #f4f7fc;
  --text: #1f2937;
  --muted: #5b6474;
  --border: #e3e7ee;
  --warn-bg: #fff7e6;
  --warn: #b45309;
  --danger: #dc2626;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(18, 41, 94, .08);
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

/* Nút */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 99px; font-weight: 600; font-size: 15px;
  border: 2px solid var(--primary); background: var(--primary); color: #fff;
  cursor: pointer; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); text-decoration: none; transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--primary); }
.btn-outline:hover { background: var(--tint); color: var(--primary-dark); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--tint); border-color: var(--tint); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--navy); }
.logo:hover { text-decoration: none; }
.logo img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.logo span { color: var(--primary); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--text); font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a.active { color: var(--primary); text-decoration: none; }
.nav .btn { padding: 9px 18px; color: #fff; }
.nav .btn:hover { color: #fff; } /* .nav a:hover ở trên đổi chữ sang xanh, nút nền xanh đậm thì chữ phải giữ trắng */
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; color: var(--navy); cursor: pointer; padding: 4px 8px; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--tint) 0%, #fff 70%); padding: 64px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; background: #fff; color: var(--primary); font-weight: 600; font-size: 13px; padding: 6px 14px; border-radius: 99px; box-shadow: var(--shadow); margin-bottom: 18px; }
.hero h1 { font-size: clamp(32px, 5vw, 50px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-art { position: relative; }
.hero-art img { width: 100%; max-width: 420px; margin: 0 auto; border-radius: 50%; background: #fff; box-shadow: 0 20px 60px rgba(26,95,208,.18); }

/* Section */
section { padding: 72px 0; }
.section-soft { background: var(--soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 42px; }
.section-head h2 { font-size: clamp(26px, 3.5vw, 34px); }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.icon { width: 52px; height: 52px; border-radius: 14px; background: var(--tint); display: grid; place-items: center; font-size: 26px; margin-bottom: 16px; }

/* Quy trình */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; display: grid; place-items: center; }

/* Cam kết */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: 0 0 14px 34px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.quote-box { background: var(--navy); color: #dbe6fb; border-radius: 20px; padding: 36px; }
.quote-box h3 { color: #fff; font-size: 24px; }
.quote-box p { color: #c7d2e8; }

/* Blog cards */
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: inherit; transition: transform .15s, box-shadow .15s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(18,41,94,.12); text-decoration: none; }
.post-cover { height: 150px; display: grid; place-items: center; font-size: 64px; background: linear-gradient(135deg, var(--tint), #d5e5ff); }
.post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-tag { font-size: 12px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.post-card h3 { font-size: 18px; margin-bottom: 8px; }
.post-card p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.post-meta { margin-top: auto; font-size: 13px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { border: 1px solid var(--border); background: #fff; color: var(--text); border-radius: 99px; padding: 7px 16px; font: inherit; font-size: 14px; cursor: pointer; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.article img { border-radius: 12px; margin: 0 auto 1.2em; height: auto; }
.article figure { margin: 0 0 1.4em; }
.article figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: -.6em; }
.article blockquote { margin: 0 0 1.2em; padding: 4px 18px; border-left: 4px solid var(--border); color: var(--muted); }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--primary); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Liên hệ */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .icon { width: 42px; height: 42px; font-size: 20px; margin: 0; flex-shrink: 0; }
.contact-list b { display: block; color: var(--navy); }
.contact-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.contact-actions .btn { padding: 12px 10px; white-space: nowrap; }
.contact-actions .btn[hidden] { display: none; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 320px; background: var(--tint); display: grid; place-items: center; color: var(--muted); text-align: center; padding: 20px; }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

.cta-band { background: linear-gradient(135deg, var(--primary), var(--navy)); color: #fff; border-radius: 22px; padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #dbe6fb; }

/* Footer */
.site-footer { background: var(--navy); color: #c7d2e8; padding: 48px 0 28px; font-size: 14px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 15px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; font-size: 13px; }

/* Nút gọi nổi trên điện thoại */
.float-contact { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 60; flex-direction: column; align-items: center; gap: 10px; }
.float-call, .fc-btn { display: grid; place-items: center; border-radius: 50%; color: #fff; }
.float-call { width: 56px; height: 56px; background: var(--primary); font-size: 26px; box-shadow: 0 8px 20px rgba(26,95,208,.4); }
.fc-btn { width: 46px; height: 46px; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.fc-btn[hidden] { display: none; }
.fc-fb { background: #1877f2; }
.fc-fb svg { width: 20px; height: 20px; }
.fc-zalo { background: #0068ff; font-weight: 800; font-size: 13px; letter-spacing: -.2px; }
.float-call:hover, .fc-btn:hover { text-decoration: none; }

/* Trang blog & bài viết */
.page-hero { background: linear-gradient(160deg, var(--tint), #fff 80%); padding: 56px 0 40px; }
.page-hero h1 { font-size: clamp(28px, 4.5vw, 42px); }
.page-hero p { color: var(--muted); max-width: 640px; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }

.article { max-width: 760px; margin: 0 auto; padding: 44px 20px 64px; font-size: 17px; }
.article h2 { font-size: 24px; margin-top: 1.8em; }
.article h3 { font-size: 19px; margin-top: 1.4em; }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article li { margin-bottom: .45em; }
.article table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15px; display: block; overflow-x: auto; }
.article th, .article td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.article th { background: var(--tint); color: var(--navy); }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; color: var(--muted); }
.note { background: var(--tint); border-left: 4px solid var(--primary); border-radius: 8px; padding: 14px 18px; margin: 0 0 1.4em; font-size: 16px; }
.note.warn { background: var(--warn-bg); border-left-color: var(--warn); }
.note.danger { background: #fdecec; border-left-color: var(--danger); }
.disclaimer { font-size: 14px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 18px; margin-top: 36px; }
.article-cta { background: var(--soft); border-radius: var(--radius); padding: 26px; margin-top: 32px; text-align: center; }
.article-cta h3 { margin-top: 0; }
.related { margin-top: 36px; }
.related a { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); font-weight: 500; }

/* Responsive */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav .btn { margin-top: 12px; border-bottom: 0; }
  .hero { padding: 40px 0 52px; }
  .hero .wrap, .split, .contact { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 220px; }
  section { padding: 52px 0; }
  .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  /* Dịch vụ và Quy trình khám: 2 cột, thu gọn cho vừa màn hình nhỏ */
  [data-services], .steps { grid-template-columns: 1fr 1fr; gap: 12px; }
  [data-services] .card { padding: 16px 14px; }
  [data-services] .icon { width: 42px; height: 42px; font-size: 22px; border-radius: 12px; margin-bottom: 10px; }
  [data-services] .card h3 { font-size: 15.5px; margin-bottom: 6px; }
  [data-services] .card p { font-size: 13.5px; line-height: 1.5; }
  [data-services] .card .svc-price { font-size: 14px; margin-top: 8px; }
  .steps { gap: 22px 16px; }
  /* Số bước cùng hàng với tên bước, mô tả xuống dòng dùng hết chiều ngang */
  .step { padding-top: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
  .step::before { position: static; width: 32px; height: 32px; font-size: 15px; }
  .step h3 { font-size: 16.5px; margin: 0; }
  .step p { grid-column: 1 / -1; font-size: 14px; line-height: 1.5; margin: 8px 0 0; }
  /* Liên hệ: Gọi ngay cả hàng, Zalo + Facebook chia đôi */
  .contact-actions { grid-template-columns: 1fr 1fr; }
  .contact-actions .btn:first-child { grid-column: 1 / -1; }
  .cta-band { padding: 30px 24px; }
  .float-contact { display: flex; }
  .article { font-size: 16px; padding-top: 32px; }
}
.card .svc-price { margin-top: 12px; font-weight: 700; color: var(--primary); font-size: 15px; }
.map:has(iframe) { padding: 0; }
/* Biểu tượng điện thoại trong nút: cùng màu chữ (trắng trên nút xanh), thay emoji bị chìm */
.ico-phone { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.float-call .ico-phone { width: 26px; height: 26px; }
