/* ==========================================================================
   Bơm Mực Máy In HT — style.css
   International Style: grid rõ, whitespace rộng, 1 primary + 1 accent.
   ========================================================================== */

/* Ngôn ngữ thiết kế lấy theo TemplateMo 565 "Onix Digital" (templatemo.com):
   cam san hô làm màu nhấn, xanh làm màu phụ, nền tối #2a2a2a, font Poppins,
   nút bo tròn hoàn toàn, bóng mềm. Viết lại bằng CSS thuần — KHÔNG kéo theo
   Bootstrap, jQuery, Owl Carousel, Isotope hay FontAwesome của bản gốc
   (~2 MB) vì tốc độ là lợi thế xếp hạng của site dịch vụ local. */
:root {
  --primary:        #14457f;
  --primary-dark:   #0e3360;
  --primary-light:  #eaf1f9;
  --accent:         #ff695f;
  --accent-dark:    #ef4e43;

  --ink:            #2a2a2a;
  --body:           #4a4a4a;
  --muted:          #8a8a8a;
  --line:           #e7e7e7;
  --bg:             #ffffff;
  --bg-alt:         #f7f7f7;
  --bg-dark:        #1e1e1e;

  --ok:             #1b7f4b;

  --font: "Poppins", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --gutter: 24px;
  --maxw:   1200px;
  --radius: 10px;
  --radius-pill: 100px;
  --shadow: 0 2px 6px rgba(42,42,42,.05), 0 8px 24px rgba(42,42,42,.06);
  --shadow-lg: 0 4px 10px rgba(42,42,42,.06), 0 18px 44px rgba(42,42,42,.12);
}

/* ---------- reset ---------- */
*, *::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(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.3em; }
table { border-collapse: collapse; width: 100%; }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.015em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(1.85rem, 4.2vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.8vw, 1.85rem); margin-top: 2.2em; }
h3 { font-size: clamp(1.12rem, 2vw, 1.28rem); margin-top: 1.6em; }
h4 { font-size: 1.03rem; margin-top: 1.3em; }
p  { margin: 0 0 1.1em; }
.lead { font-size: 1.14rem; }
small, .small { font-size: .875rem; }
strong { color: var(--ink); font-weight: 650; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 820px; }
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--muted); margin-bottom: 0; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar { background: var(--primary-dark); color: #d7e3f2; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; }
.topbar a { color: #fff; font-weight: 600; }
.topbar .topbar-addr { opacity: .85; }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: var(--radius);
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1rem; letter-spacing: -.02em;
}
.brand-text { line-height: 1.15; }
.brand-name { display: block; color: var(--ink); font-weight: 750; font-size: 1.02rem; }
.brand-sub  { display: block; color: var(--muted); font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; }
.brand:hover { text-decoration: none; }

.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list a {
  display: block; padding: 9px 13px; border-radius: var(--radius);
  color: var(--body); font-size: .95rem; font-weight: 550;
}
.nav-list a:hover { background: var(--bg-alt); color: var(--primary); text-decoration: none; }
.nav-list a[aria-current="page"] { color: var(--primary); background: var(--primary-light); }

.has-sub > a::after { content: "\25be"; margin-left: 5px; font-size: .75em; opacity: .6; }
.sub {
  position: absolute; left: 0; top: calc(100% + 4px); min-width: 236px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 6px; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .14s, transform .14s, visibility .14s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { font-size: .91rem; padding: 8px 11px; white-space: nowrap; }

.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  background: #fff; border-radius: var(--radius); cursor: pointer;
  font-size: 1.3rem; line-height: 1; color: var(--ink);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius);
  font-weight: 650; font-size: .97rem; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer; text-align: center;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-secondary { background: var(--primary); color: #fff; }
.btn-secondary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--primary); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); background: var(--primary-light); }
.btn-sm { padding: 8px 15px; font-size: .9rem; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(170deg, var(--primary-light) 0%, #fff 70%);
  border-bottom: 1px solid var(--line);
  padding: 60px 0 64px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: .5em; }
.hero .lead { margin-bottom: 1.6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 0; font-size: .93rem; }
.hero-trust li { display: flex; align-items: center; gap: 7px; }
.hero-trust li::before { content: "\2713"; color: var(--ok); font-weight: 800; }

.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-light);
  padding: 5px 11px; border-radius: 100px;
}

/* ---------- cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: block; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card-link:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-2px); text-decoration: none; }
.card-icon { font-size: 1.6rem; line-height: 1; margin-bottom: 14px; }
.card-meta { color: var(--muted); font-size: .88rem; }
.card-price { color: var(--accent); font-weight: 750; }

/* ---------- process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0; }
.step { position: relative; padding-top: 52px; }
.step-number {
  position: absolute; top: 0; left: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center; font-weight: 750; font-size: .95rem;
}
.step h3 { margin: 0 0 .4em; font-size: 1.05rem; }
.step p { margin: 0; font-size: .95rem; color: var(--muted); }

/* ---------- pricing table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.table-wrap table { min-width: 580px; font-size: .96rem; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
thead th { background: var(--bg-alt); color: var(--ink); font-weight: 700; font-size: .89rem; letter-spacing: .02em; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--primary-light); }
td.price { color: var(--accent); font-weight: 700; white-space: nowrap; }
.table-note { font-size: .89rem; color: var(--muted); margin-top: 12px; }

/* ---------- CTA box ---------- */
.link-box {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: var(--primary-light); border: 1px solid #c9dcf2;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius); padding: 22px 24px; margin: 32px 0;
}
.link-box-icon { font-size: 1.7rem; line-height: 1; }
.link-box-content { flex: 1 1 260px; }
.link-box-content h4 { margin: 0 0 .25em; }
.link-box-content p { margin: 0; font-size: .94rem; }

.cta-band { background: var(--primary); color: #fff; padding: 52px 0; text-align: center; }
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #cfe0f4; max-width: 620px; margin: 0 auto 26px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------- breadcrumb ---------- */
.breadcrumb { background: var(--bg-alt); border-bottom: 1px solid var(--line); font-size: .88rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 11px 0; }
.breadcrumb li + li::before { content: "/"; color: var(--muted); margin-right: 6px; }
.breadcrumb [aria-current="page"] { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 0 20px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; padding: 16px 0; font-weight: 650; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.35rem; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .faq-body { padding: 15px 0 4px; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- prose / article ---------- */
.prose { max-width: 760px; }
.prose img { border-radius: var(--radius); border: 1px solid var(--line); margin: 28px 0; }
.prose blockquote {
  margin: 28px 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent); color: var(--ink); font-size: 1.05rem;
}
.prose ul li, .prose ol li { margin-bottom: .5em; }
.toc { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 32px; }
.toc h2 { margin: 0 0 .6em; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.toc ol { margin: 0; font-size: .95rem; }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; padding: 0; margin: 0; }
.chips a {
  display: block; padding: 7px 14px; font-size: .9rem;
  background: #fff; border: 1px solid var(--line); border-radius: 100px; color: var(--body);
}
.chips a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); text-decoration: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-dark); color: #99a3b0; font-size: .94rem; padding: 54px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.site-footer h3 { color: #fff; font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; margin: 0 0 16px; }
.site-footer a { color: #b9c2cf; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-brand .brand-mark { background: var(--accent); }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: #808b99; }
.footer-brand p { margin: 16px 0 0; max-width: 34ch; }
.footer-contact strong { color: #fff; }
.footer-bottom {
  border-top: 1px solid #242c36; padding: 18px 0;
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between;
  font-size: .86rem;
}

/* ---------- sticky mobile call bar ---------- */
.callbar { display: none; }

/* ---------- utilities ---------- */
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- footer: dải khu vực ---------- */
.footer-areas { border-top: 1px solid #242c36; padding: 26px 0 8px; }
.footer-areas h3 { margin-bottom: 14px; }
.footer-areas .chips a { background: #1a222c; border-color: #2b3440; color: #b9c2cf; }
.footer-areas .chips a:hover { background: #222c38; border-color: #3a4654; color: #fff; }

/* ==========================================================================
   Lớp phủ giao diện theo TemplateMo "Onix Digital" — ghi đè các khối phía trên.
   Đặt cuối file để dễ gỡ nếu đổi hướng thiết kế.
   ========================================================================== */

/* nút bo tròn hoàn toàn, kiểu pill của template gốc */
.btn { border-radius: var(--radius-pill); font-weight: 600; letter-spacing: .01em; }
.btn-primary { background: var(--accent); box-shadow: 0 6px 16px rgba(255,105,95,.28); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 8px 22px rgba(255,105,95,.36); }
.btn-secondary { background: var(--primary); box-shadow: 0 6px 16px rgba(3,164,237,.26); }
.btn-secondary:hover { background: var(--primary-dark); }

/* tiêu đề đậm hơn, sát chữ hơn — đúng nhịp của template */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }

/* gạch nhấn ngắn dưới tiêu đề mục */
.section-head h2 { position: relative; padding-bottom: 16px; }
.section-head h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 54px; height: 3px; border-radius: 3px; background: var(--accent);
}
.cta-band h2::after, .text-center .section-head h2::after { left: 50%; transform: translateX(-50%); }

/* eyebrow kiểu pill cam nhạt */
.eyebrow { background: #fff0ef; color: var(--accent); }

/* card bo tròn, viền mảnh, nhấc lên khi rê chuột */
.card { border-radius: var(--radius); border-color: var(--line); }
.card-link:hover { border-color: var(--accent); transform: translateY(-4px); }
.card-icon { color: var(--accent); }

/* số bước: tròn, gradient cam như template */
.step-number {
  background: linear-gradient(135deg, var(--accent) 0%, #ff8a6e 100%);
  box-shadow: 0 6px 16px rgba(255,105,95,.3);
  width: 46px; height: 46px; font-size: 1rem;
}
.step { padding-top: 62px; }

/* hero: nền sáng, khối xanh rất nhạt */
.hero { background: linear-gradient(160deg, var(--primary-light) 0%, #fff 65%); }

/* thanh trên cùng và header */
.topbar { background: var(--ink); color: #cfcfcf; }
.site-header { background: rgba(255,255,255,.97); }
.nav-list a { font-weight: 500; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--accent); background: #fff0ef; }
.brand-mark { background: var(--accent); border-radius: var(--radius); }
.brand-sub { color: var(--muted); }

/* dải CTA: nền tối thay vì xanh đậm */
.cta-band { background: var(--ink); }
.cta-band p { color: #c9c9c9; }

/* hộp liên kết nhấn: viền trái màu cam */
.link-box {
  background: var(--bg-alt); border-color: var(--line);
  border-left: 4px solid var(--accent); border-radius: var(--radius);
}

/* bảng: bo góc, hàng hover nhạt */
.table-wrap { border-radius: var(--radius); }
tbody tr:hover { background: #fff7f6; }
td.price { color: var(--accent); }

/* FAQ: bo góc, dấu cộng màu cam */
.faq details { border-radius: var(--radius); }
.faq summary::after { color: var(--accent); }

/* chips bo tròn hẳn */
.chips a { border-radius: var(--radius-pill); }
.chips a:hover { border-color: var(--accent); color: var(--accent); background: #fff0ef; }

/* footer tối, tiêu đề cột có gạch cam */
.site-footer { background: var(--bg-dark); color: #a8a8a8; }
.site-footer h3 { position: relative; padding-bottom: 12px; }
.site-footer h3::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 32px; height: 2px; background: var(--accent); border-radius: 2px;
}
.footer-bottom { border-top-color: #2e2e2e; }
.footer-areas { border-top-color: #2e2e2e; }
.footer-areas .chips a { background: #272727; border-color: #383838; color: #b4b4b4; }
.footer-areas .chips a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* thanh gọi cố định trên mobile */
.callbar a { font-weight: 600; }

/* logo: .brand-mark nay là ảnh chữ lồng, không còn là ô vuông chữ HT */
.brand-mark { width: auto; height: 40px; background: none; border-radius: 0; }
.site-footer .brand-mark { height: 38px; }

/* ---------- ảnh ---------- */
.fig { margin: 0; }
.fig picture { display: block; }
.fig img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--bg-alt);
}
.fig figcaption {
  margin-top: 10px; font-size: .9rem; line-height: 1.55; color: var(--muted);
  padding-left: 12px; border-left: 3px solid var(--accent);
}
.fig-wide { margin: 0 0 36px; }
.fig-wide img { max-height: 420px; object-fit: cover; }

/* ảnh dán sát mép trong card bài viết */
.card-post { padding: 0; overflow: hidden; }
.card-post .fig-flush img { border: 0; border-radius: 0; aspect-ratio: 16/10; object-fit: cover; }
.card-post h3, .card-post p { padding-inline: 22px; }
.card-post h3 { margin-top: 20px; }
.card-post p { padding-bottom: 22px; }

/* hero: ảnh bên phải */
.hero-media .fig img { box-shadow: var(--shadow-lg); border-color: transparent; }

/* đảo thứ tự cột để ảnh không phải lúc nào cũng nằm bên phải */
.split-rev > :first-child { order: 2; }
.split-rev > :last-child { order: 1; }

/* lưới 3 ảnh trong trang bảng giá */
.grid-3 > .fig { margin: 0; }
