/* TỐT-TIỆN-LỢI (TTL) - giao diện công khai. Không phụ thuộc framework. */
:root {
  --black: #111;
  --gray: #5f5f5f;
  --gray-dark: #4b4b4b;
  --light: #f6f8fb;
  --border: #e2e7ee;
  /* Màu nhấn: ghi đè bằng assets/theme.css khi đổi "Màu chủ đạo" trong trang quản trị */
  --accent: #0b5cad;
  --accent-dark: #094b8e;
  --accent-soft: #ebf2f8;
  --accent-text: #0b5cad;
  --on-accent: #ffffff;
  --radius: 12px;
  --green: #16a34a;
  --red: #b91c1c;
  --max: 1280px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--font); color: var(--black); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.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; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--black); color: #fff; padding: 10px 16px; font-size: 13px; }
.skip-link:focus { top: 12px; }
html:not(.js) .js-only { display: none !important; }
.ic { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.17em; }

/* ---------- Khung ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 56rem; }
.section { padding-top: 64px; padding-bottom: 64px; }
.band { background: var(--light); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 80px 0; }
.page { padding-top: 24px; padding-bottom: 80px; }
.center { text-align: center; }
.muted { color: var(--gray); }
.small { font-size: 12px; }
.strong { font-weight: 700; color: var(--black); }
.more { margin-top: 40px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.center .more, .more.center { justify-content: center; }

/* ---------- Tiêu đề ---------- */
.eyebrow { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gray); }
.eyebrow.dark { color: var(--black); text-decoration: none; }
.section-head { text-align: center; max-width: 52rem; margin: 0 auto 40px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.section-head.left { text-align: left; align-items: flex-start; margin-left: 0; max-width: 56rem; margin-bottom: 32px; }
.section-title { font-size: clamp(1.5rem, 3.4vw, 2.25rem); font-weight: 300; letter-spacing: .04em; text-transform: uppercase; line-height: 1.25; }
.home-title { font-size: clamp(1.4rem, 2.8vw, 1.9rem); font-weight: 300; letter-spacing: .04em; text-transform: uppercase; line-height: 1.3; }
.page-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 400; line-height: 1.3; letter-spacing: .01em; }
.h2-plain { font-size: 1.35rem; font-weight: 500; margin-bottom: 20px; }
.rule { width: 48px; height: 2px; background: var(--black); display: block; }
.section-intro { font-size: 14px; color: var(--gray); font-weight: 300; line-height: 1.8; max-width: 48rem; }
.lead { font-size: 15px; color: var(--gray-dark); line-height: 1.8; }

/* ---------- Nút ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--black); background: transparent; color: var(--black); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: 13px 24px; transition: background .2s, color .2s; }
.btn:hover { background: var(--black); color: #fff; }
.btn-primary { background: var(--black); color: #fff; }
.btn-primary:hover { background: #333; border-color: #333; }
.btn-sm { padding: 8px 16px; letter-spacing: .1em; }
.btn-block { display: flex; width: 100%; }
.btn-icon { padding: 13px 16px; }
.icon-btn { background: none; border: 0; padding: 10px; font-size: 20px; line-height: 0; color: var(--black); display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { opacity: .6; }
.link-more { font-size: 12px; color: var(--gray); text-decoration: underline; text-align: center; display: block; margin-top: 12px; }
.link-more:hover { color: var(--black); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.menu-btn { display: none; }
.main-nav { display: flex; gap: 24px; align-items: center; flex: 1; }
.nav-link { font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; transition: color .2s; white-space: nowrap; }
.nav-link:hover, .nav-link[aria-current] { color: var(--gray); }
.brand { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.brand-text { font-size: 20px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.brand-logo { height: 48px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: flex-end; }
.call-icon { display: none; }
.mobile-nav { border-top: 1px solid var(--border); background: #fff; padding: 8px 24px 16px; }
.mobile-nav[hidden] { display: none; }
.mobile-link { display: block; padding: 12px 0; font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid #f1f1f1; }

/* ---------- Hero ---------- */
.hero-wrap { padding-top: 16px; }
.hero { position: relative; height: clamp(220px, 32vw, 420px); background: var(--light); overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .7s ease-in-out; }
.slide.is-active { opacity: 1; pointer-events: auto; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .85); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); z-index: 2; }
.slider-btn:hover { background: #fff; }
.slider-btn.prev { left: 16px; }
.slider-btn.next { right: 16px; }
.slider-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.dot { width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; background: rgba(255, 255, 255, .55); transition: width .3s, background .3s; }
.dot.is-active { width: 32px; background: #fff; }

/* ---------- Lọc ---------- */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; border-bottom: 1px solid var(--border); padding-bottom: 20px; margin-bottom: 40px; }
.filter-btn { position: relative; background: none; border: 0; padding: 0 0 4px; font-size: 14px; font-weight: 500; color: var(--gray); }
.filter-btn::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1.5px; background: var(--black); transition: width .3s; }
.filter-btn:hover, .filter-btn.is-active { color: var(--black); }
.filter-btn:hover::after, .filter-btn.is-active::after { width: 100%; }

/* ---------- Lưới & thẻ ---------- */
.grid { display: grid; gap: 40px 24px; grid-template-columns: 1fr; }
.grid-3 { gap: 32px; }
@media (min-width: 560px) { .grid-products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-3.grid-svc4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-products { grid-template-columns: repeat(4, 1fr); } }
.card [hidden], .card[hidden] { display: none !important; }
.card { position: relative; }
.card-media { display: block; position: relative; overflow: hidden; background: var(--light); }
.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.card-media img, .pd-media img, .article-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.16, 1, .3, 1); }
.card:hover .card-media img { transform: scale(1.06); }
.card-cta { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, .95); text-align: center; padding: 14px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; border-top: 1px solid var(--border); transform: translateY(100%); transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.card:hover .card-cta, .card:focus-within .card-cta { transform: translateY(0); }
@media (hover: none) { .card-cta { display: none; } }
.product-card .card-body { margin-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.card-title { font-size: 14px; font-weight: 400; line-height: 1.45; }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--gray-dark); }
.price { font-size: 13px; font-weight: 600; }
.blog-card { border: 1px solid var(--border); display: flex; flex-direction: column; background: #fff; transition: box-shadow .2s; }
.blog-card:hover { box-shadow: 0 6px 24px rgba(0, 0, 0, .08); }
.blog-card .card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.blog-card .card-title { font-size: 16px; font-weight: 500; }
.card-text { font-size: 12px; line-height: 1.8; color: var(--gray); font-weight: 300; }
.blog-card .card-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--gray); }
.blog-card .meta { justify-content: space-between; }
.read-more { margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
.read-more:hover .ic { transform: translateX(4px); }
.read-more .ic { transition: transform .2s; }
.service-card { background: #fff; border: 1px solid var(--border); padding: 32px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); transition: box-shadow .2s; }
.service-card:hover { box-shadow: 0 6px 24px rgba(0, 0, 0, .08); }
.service-card.is-featured { border-color: var(--black); box-shadow: 0 6px 24px rgba(0, 0, 0, .1); }
.service-card .card-title { font-size: 18px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.service-card .check-list { border-top: 1px solid var(--border); padding-top: 14px; }
.service-actions { margin-top: auto; padding-top: 16px; }
.badge { position: absolute; top: -12px; right: 24px; background: var(--black); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; padding: 4px 12px; }
.service-icon { width: 48px; height: 48px; background: var(--light); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.service-icon.sm { width: 32px; height: 32px; font-size: 16px; }
.is-featured .service-icon { background: var(--black); color: #fff; }
.check-list { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 500; }
.check-list li { display: flex; gap: 8px; align-items: flex-start; }
.check-list .ic { color: var(--green); margin-top: 3px; }

/* ---------- Quy trình, FAQ, liên hệ ---------- */
.process { background: #fff; border: 1px solid var(--border); padding: 48px 32px; margin-top: 64px; }
.process-title { text-align: center; font-size: 1.2rem; font-weight: 300; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 40px; }
.process-grid { display: grid; gap: 52px; grid-template-columns: 1fr; max-width: 30rem; margin: 0 auto; }
.process-grid li { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.process-grid li { position: relative; }
/* Mũi tên nối các bước, vẽ bằng CSS (không cần xuất lại trang HTML): chỉ xuống dưới trên điện thoại / máy tính bảng, sang phải trên máy tính */
.process-grid li:not(:last-child)::before, .process-grid li:not(:last-child)::after { content: ""; position: absolute; width: 28px; height: 28px; left: 50%; margin-left: -14px; bottom: -40px; }
.process-grid li:not(:last-child)::before { border-radius: 50%; background: var(--accent-soft); }
.process-grid li:not(:last-child)::after { background-color: var(--accent-text); transform: rotate(90deg); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") center / 16px 16px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") center / 16px 16px no-repeat; }
.process-arrow { display: none; } /* thẻ cũ do bản dựng trước tạo ra, nếu còn thì ẩn đi */
@media (min-width: 1024px) {
  .process-grid { grid-template-columns: repeat(4, 1fr); gap: 40px; max-width: none; }
  .process-grid li:not(:last-child)::before, .process-grid li:not(:last-child)::after { left: calc(100% + 6px); margin-left: 0; bottom: auto; top: 2px; }
  .process-grid li:not(:last-child)::after { transform: none; }
}
.process-num { font-size: 2rem; font-weight: 300; color: #cfcfcf; line-height: 1; }
.process-grid h3 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.process-grid p { font-size: 12px; color: var(--gray); }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq { background: #fff; border: 1px solid var(--border); padding: 20px; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; font-size: 14px; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq-chevron { color: var(--gray); transition: transform .2s; }
.faq[open] .faq-chevron { transform: rotate(180deg); }
.faq p { margin-top: 12px; padding-top: 12px; border-top: 1px solid #f1f1f1; font-size: 13px; color: var(--gray-dark); line-height: 1.8; }
.contact-cards { display: grid; gap: 16px; grid-template-columns: 1fr; text-align: left; border: 1px solid var(--border); background: var(--light); padding: 24px; margin: 0 auto 8px; max-width: 42rem; font-size: 13px; }
@media (min-width: 640px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } .contact-cards > div + div { border-left: 1px solid var(--border); padding-left: 16px; } }
.contact-cards > div { display: flex; flex-direction: column; gap: 4px; }
.contact-cards h3 { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.contact-cards a { color: var(--gray-dark); text-decoration: none; word-break: break-all; }
.contact-cards a:hover { color: var(--black); text-decoration: underline; }
.contact-grid { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info { font-style: normal; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.contact-info p { display: flex; gap: 10px; align-items: flex-start; }
.contact-info .ic { margin-top: 4px; color: var(--gray); }
.map { margin-top: 24px; border: 1px solid var(--border); }
.map iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { margin-bottom: 24px; font-size: 12px; color: var(--gray); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #bbb; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--black); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--black); }

/* ---------- Trang sản phẩm / bài viết ---------- */
.pd-grid { display: grid; gap: 40px; grid-template-columns: 1fr; margin-bottom: 56px; }
@media (min-width: 768px) { .pd-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; } }
.pd-media { background: var(--light); overflow: hidden; position: relative; }
.pd-info { display: flex; flex-direction: column; gap: 16px; }
.sku { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; background: var(--light); border: 1px solid var(--border); padding: 2px 8px; color: var(--black); text-transform: none; letter-spacing: 0; }
.pd-price { font-size: 1.4rem; font-weight: 500; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.pd-body { max-width: 52rem; display: flex; flex-direction: column; gap: 48px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; border: 1px solid var(--border); }
.spec-table th, .spec-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-table th { width: 38%; font-weight: 600; background: var(--light); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.related { margin-top: 72px; }
.article { max-width: 52rem; margin: 0 auto; }
.article-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.article-head .meta span, .article-head .meta time { display: inline-flex; gap: 6px; align-items: center; }
.article-cover { aspect-ratio: 1200 / 630; background: var(--light); overflow: hidden; margin-bottom: 32px; }
.toc { background: var(--light); border: 1px solid var(--border); padding: 20px 24px; margin-bottom: 32px; font-size: 14px; }
.toc-title { font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.toc ol { list-style: decimal; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.toc a { color: var(--gray-dark); }
.tags { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag { font-size: 11px; background: var(--light); border: 1px solid var(--border); padding: 3px 10px; }
.cta-box { margin-top: 40px; padding: 20px; background: var(--light); border: 1px solid var(--border); display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-box strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.cta-actions { display: flex; gap: 8px; }

/* Nội dung bài viết (cả trình soạn thảo trong /admin dùng chung) */
.prose { font-size: 15px; line-height: 1.85; color: #333; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: 1.35rem; font-weight: 700; color: var(--black); margin-top: 36px; padding-bottom: 8px; border-bottom: 1px solid var(--border); line-height: 1.35; }
.prose h3 { font-size: 1.1rem; font-weight: 700; color: var(--black); margin-top: 28px; line-height: 1.4; }
.prose ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose ol { list-style: decimal; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose a { color: var(--black); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--black); }
.prose figure { margin: 24px 0; }
.prose figure img { width: 100%; height: auto; border: 1px solid var(--border); }
.prose figcaption { margin-top: 8px; font-size: 12px; color: var(--gray); text-align: center; font-style: italic; }
.prose blockquote { border-left: 3px solid var(--black); padding: 4px 0 4px 16px; color: var(--gray-dark); font-style: italic; }
.prose img { height: auto; }

/* ---------- Chân trang ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0; font-size: 12px; color: var(--gray); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1.2fr 1fr; } }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col address { font-style: normal; line-height: 1.8; }
.footer-col a { text-decoration: none; }
.footer-col .brand { align-self: flex-start; justify-content: flex-start; } /* logo sát lề trái, thẳng hàng với chữ bên dưới */
.footer-col address a:hover, .footer-links a:hover, .footer-social a:hover { text-decoration: underline; }
.footer-links, .footer-social { text-transform: uppercase; letter-spacing: .1em; font-weight: 500; color: var(--black); }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }

/* ---------- Hộp thoại ---------- */
dialog.modal { border: 0; padding: 32px; width: calc(100% - 32px); max-width: 28rem; max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); color: var(--black); }
dialog.modal::backdrop { background: rgba(0, 0, 0, .6); }
.modal-close { position: absolute; top: 12px; right: 12px; }
.modal-icon { width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 50%; background: var(--black); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.modal-title { font-size: 1.1rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-align: center; margin: 4px 0 8px; }
.modal .center { text-align: center; }
.call-list { margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.call-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid var(--border); text-decoration: none; transition: border-color .2s, background .2s; }
.call-row:hover { border-color: var(--black); background: var(--light); }
.call-row-strong { border-color: var(--black); background: var(--light); }
.call-row .eyebrow { display: block; font-size: 10px; }
.call-num { display: block; font-size: 15px; font-weight: 600; }
/* ---------- Tìm kiếm ---------- */
.search-trigger { display: inline-flex; align-items: center; gap: 10px; height: 42px; min-width: 15.5rem; margin-right: 8px; padding: 0 9px 0 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--light); color: var(--gray); font-size: 13.5px; font-weight: 500; text-align: left; transition: border-color .15s, background .15s, color .15s, box-shadow .15s; }
.search-trigger .ic { font-size: 18px; color: var(--accent-text); }
.search-trigger:hover { border-color: var(--accent); background: #fff; color: var(--black); box-shadow: 0 0 0 3px var(--accent-soft); }
.st-text { flex: 1; white-space: nowrap; }
.st-kbd, .sd-foot kbd { font: inherit; font-size: 11px; font-weight: 700; line-height: 1; padding: 4px 7px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; background: #fff; color: var(--gray); }
@media (max-width: 1099px) {
  .search-trigger, .call-icon { width: 44px; height: 44px; min-width: 0; margin: 0; padding: 0; justify-content: center; border: 0; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); }
  .call-icon { font-size: 18px; }
  .search-trigger .ic { font-size: 20px; }
  .search-trigger:hover, .call-icon:hover { background: var(--accent-soft); box-shadow: none; opacity: 1; }
  .st-text, .st-kbd { display: none; }
}
@media (max-width: 1099px) and (hover: hover) {
  .search-trigger:hover, .call-icon:hover { background: var(--accent); color: var(--on-accent); }
  .search-trigger:hover .ic { color: var(--on-accent); }
}

dialog.modal-search { width: min(44rem, calc(100% - 24px)); max-width: none; height: fit-content; bottom: auto; max-height: min(40rem, calc(100vh - 14vh)); max-height: min(40rem, calc(100dvh - 14vh)); margin: 10vh auto auto; padding: 0; overflow: hidden; background: #fff; box-shadow: 0 30px 90px rgba(8, 25, 50, .4); }
dialog.modal-search[open] { display: flex; flex-direction: column; animation: sd-in .16s ease-out; }
dialog.modal-search::backdrop { background: rgba(8, 22, 44, .55); backdrop-filter: blur(4px); }
@keyframes sd-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.sd-bar { flex: none; display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 20px; border-bottom: 1px solid var(--border); }
.sd-bar:focus-within { border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.sd-ic { display: flex; font-size: 22px; color: var(--accent-text); }
.search-input { flex: 1; min-width: 0; margin: 0; padding: 18px 0; border: 0; background: transparent; text-align: left; font-size: 18px; font-weight: 500; }
.search-input::placeholder { color: #667085; font-weight: 400; opacity: 1; }
.search-input:focus { outline: none; }
.search-input::-webkit-search-cancel-button, .search-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.sd-clear { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: var(--light); color: var(--gray); font-size: 14px; }
.sd-clear[hidden] { display: none; }
.sd-clear:hover { background: var(--accent-soft); color: var(--accent-text); }
.sd-close { flex: none; padding: 10px 12px; border: 0; border-radius: 8px; background: none; color: var(--gray); font-size: 14px; font-weight: 600; }
.sd-close:hover { background: var(--light); color: var(--black); }
.sd-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 8px 12px; }
.sd-label { padding: 12px 12px 6px; font-size: 12.5px; font-weight: 700; color: var(--gray); }
.sd-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 12px 10px; }
.sd-chip { padding: 9px 15px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--black); font-size: 13.5px; font-weight: 600; transition: border-color .15s, background .15s, color .15s; }
.sd-chip:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.search-results { display: flex; flex-direction: column; margin: 0; padding: 0; text-align: left; }
.sd-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; padding: 8px 12px; border-radius: 12px; color: inherit; text-decoration: none; }
.sd-item:hover, .sd-item.is-active { background: var(--accent-soft); }
.sd-thumb { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; overflow: hidden; border-radius: 10px; background: var(--light); color: var(--accent-text); font-size: 22px; }
.sd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sd-item.is-active .sd-thumb { background: #fff; }
.sd-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.sd-sub { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--gray); font-size: 12.5px; }
.search-results mark { padding: 0 1px; border-radius: 3px; background: var(--accent-soft); background: color-mix(in srgb, var(--accent) 18%, #fff); color: inherit; }
.sd-more { display: block; margin-top: 4px; padding: 13px 12px; border-radius: 12px; color: var(--accent-text); font-size: 13.5px; font-weight: 700; text-align: center; text-decoration: none; }
.sd-more:hover, .sd-more.is-active { background: var(--accent-soft); }
.sd-empty { padding: 28px 16px 20px; text-align: center; }
.sd-empty strong { display: block; font-size: 15px; overflow-wrap: anywhere; }
.sd-empty p { margin: 6px auto 0; max-width: 28rem; color: var(--gray); font-size: 13.5px; line-height: 1.6; }
.sd-empty .sd-call { margin-top: 16px; }
.sd-foot { flex: none; display: flex; gap: 20px; padding: 10px 20px; border-top: 1px solid var(--border); background: var(--light); color: var(--gray); font-size: 12px; }
.sd-foot kbd { margin-right: 4px; padding: 2px 6px; }
@media (hover: none), (max-width: 700px) { .sd-foot { display: none; } }
@media (max-width: 600px) {
  dialog.modal-search { width: calc(100% - 16px); margin-top: 8px; max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
  .sd-bar { padding-left: 16px; gap: 8px; }
  .search-input { font-size: 16px; }
  .sd-item { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 8px; }
  .sd-thumb { width: 48px; height: 48px; }
}

/* ---------- Form ---------- */
.form { display: flex; flex-direction: column; gap: 14px; font-size: 12px; margin-top: 20px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.form input, .form textarea { border: 1px solid var(--border); padding: 12px 14px; font-size: 14px; font-weight: 400; text-transform: none; letter-spacing: 0; border-radius: 0; width: 100%; background: #fff; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--black); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Thông báo ---------- */
.toast { position: fixed; top: 96px; right: 16px; z-index: 200; max-width: 22rem; background: var(--black); color: #fff; font-size: 13px; padding: 12px 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); border-left: 4px solid #34d399; }
.toast[hidden] { display: none; }
.toast.is-error { border-left-color: #f87171; }
.notfound { padding-top: 96px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-flex; flex: 1; justify-content: flex-start; margin-left: -10px; }
  .call-btn { display: none; }
  .call-icon { display: inline-flex; }
  .header-actions { flex: 1; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .section { padding-top: 48px; padding-bottom: 48px; }
  .brand-text { font-size: 16px; letter-spacing: .08em; }
  .service-card { padding: 24px; }
  .process { padding: 32px 20px; }
}
/* ---------- Làm mới giao diện: màu nhấn, chữ dễ đọc, bo góc ---------- */
/* Chữ: cỡ lớn hơn, nét đậm vừa, bớt VIẾT HOA giãn chữ (khó đọc với dấu tiếng Việt) */
.eyebrow { font-size: 12px; letter-spacing: .1em; color: var(--accent-text); }
.eyebrow.dark { color: var(--black); }
.section-title, .home-title { font-weight: 700; text-transform: none; letter-spacing: -.01em; line-height: 1.2; text-wrap: balance; }
.process-title { font-weight: 700; text-transform: none; letter-spacing: 0; font-size: 1.3rem; }
.service-card .card-title { font-size: 18px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.modal-title { text-transform: none; letter-spacing: 0; }
.rule { background: var(--accent); }
.section-intro { font-size: 16px; font-weight: 400; color: var(--gray-dark); line-height: 1.75; }
.lead { font-size: 16px; }
.nav-link, .mobile-link { font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: .01em; }
.nav-link:hover, .nav-link[aria-current] { color: var(--accent-text); }
.filter-btn { font-size: 15px; font-weight: 600; }
.filter-btn::after { background: var(--accent); }
.filter-btn:hover, .filter-btn.is-active { color: var(--accent-text); }
.card-title { font-size: 15px; font-weight: 600; }
.card-title a:hover { color: var(--accent-text); }
.price { font-size: 15px; font-weight: 700; color: var(--accent-text); }
.card-text { font-size: 14px; font-weight: 400; line-height: 1.7; }
.blog-card .card-title { font-size: 17px; font-weight: 600; }
.meta { font-size: 12px; }
.read-more { font-size: 12px; letter-spacing: .1em; color: var(--accent-text); }
.check-list { font-size: 14px; }
.process-num { color: var(--accent); opacity: .35; }
.process-grid h3 { font-size: 13px; }
.process-grid p { font-size: 14px; }
.faq summary { font-size: 16px; }
.faq p { font-size: 15px; }
.contact-cards { font-size: 14px; }
.breadcrumb { font-size: 13px; }
.spec-table { font-size: 14px; }
.site-footer { font-size: 13px; }
.prose { font-size: 16px; }
.prose a { color: var(--accent-text); }
.prose blockquote { border-left-color: var(--accent); background: var(--accent-soft); padding: 14px 18px; font-style: normal; color: var(--black); border-radius: 0 10px 10px 0; }

/* Nút & màu nhấn */
.btn { border-radius: 8px; border-color: var(--accent); color: var(--accent-text); font-size: 13px; font-weight: 700; letter-spacing: .03em; text-transform: none; }
.btn:hover { background: var(--accent); color: var(--on-accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--on-accent); }
.service-card.is-featured { border-color: var(--accent); }
.badge { background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 4px 14px; }
.service-icon { background: var(--accent-soft); color: var(--accent-text); border-radius: 12px; }
.is-featured .service-icon { background: var(--accent); color: var(--on-accent); }
.modal-icon { background: var(--accent); color: var(--on-accent); }
.call-row { border-radius: 10px; }
.call-row:hover { border-color: var(--accent); }
.call-row-strong { border-color: var(--accent); background: var(--accent-soft); }
.form input:focus, .form textarea:focus { border-color: var(--accent); }
.form input, .form textarea { border-radius: 8px; }
.tag { border-radius: 999px; }
.sku { border-radius: 6px; }

/* Bo góc & bóng nhẹ */
.header-inner { height: 72px; }
.hero, .card-media, .pd-media, .article-cover, .map { border-radius: var(--radius); }
.blog-card, .service-card, .faq, .process, .contact-cards, .toc, .cta-box { border-radius: var(--radius); }
.blog-card { overflow: hidden; }
.blog-card:hover, .service-card:hover { box-shadow: 0 10px 30px rgba(11, 36, 71, .1); }
dialog.modal { border-radius: 16px; }

/* Banner: khung chữ + 2 nút nổi trên ảnh (trên điện thoại nằm ngay dưới ảnh) */
.hero-shell { position: relative; }
.hero-panel { position: absolute; left: 28px; bottom: 28px; z-index: 3; max-width: 27rem; background: rgba(255, 255, 255, .96); border-radius: var(--radius); padding: 22px 24px; box-shadow: 0 14px 40px rgba(11, 36, 71, .22); display: flex; flex-direction: column; gap: 10px; }
.hero-title { font-size: clamp(1.1rem, 2vw, 1.45rem); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; text-wrap: balance; }
.hero-text { font-size: 14px; color: var(--gray-dark); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.has-panel .slider-btn { top: auto; bottom: 20px; transform: none; width: 36px; height: 36px; }
.has-panel .slider-btn.prev { left: auto; right: 64px; }
.has-panel .slider-btn.next { right: 20px; }
.has-panel .slider-dots { left: auto; right: 116px; bottom: 30px; transform: none; }

/* Banner tắt khung chữ: ảnh hiện trọn, nút chuyển slide về vị trí mặc định (chỉ trên máy tính; trên điện thoại khung nằm dưới ảnh nên không che) */
.hero-panel { transition: opacity .5s ease, transform .5s ease, visibility .5s; }
.hero-shell.panel-off .hero-panel { opacity: 0; visibility: hidden; transform: translateY(10px); pointer-events: none; }
.hero-shell.panel-off .slider-btn { top: 50%; bottom: auto; transform: translateY(-50%); width: 40px; height: 40px; }
.hero-shell.panel-off .slider-btn.prev { left: 16px; right: auto; }
.hero-shell.panel-off .slider-btn.next { right: 16px; left: auto; }
.hero-shell.panel-off .slider-dots { left: 50%; right: auto; bottom: 14px; transform: translateX(-50%); }

/* Dải tin cậy dưới banner */
.trust-wrap { margin-top: 16px; }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--accent-soft); border-radius: var(--radius); padding: 18px 12px; }
.trust li { display: flex; align-items: center; gap: 12px; padding: 4px 14px; }
.trust li + li { border-left: 1px solid rgba(0, 0, 0, .08); }
.trust-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.trust-body { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.trust-body strong { font-size: 14px; font-weight: 700; }
.trust-body span { font-size: 13px; color: var(--gray-dark); }

/* Thanh liên hệ nhanh (chỉ hiện trên màn hình nhỏ) */
.quick-bar { display: none; }
@media (max-width: 900px) {
  .trust { grid-template-columns: repeat(2, 1fr); gap: 12px 4px; }
  .trust li:nth-child(odd) { border-left: 0; }
  .quick-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(11, 36, 71, .1); }
  .qb { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 10px; border: 1px solid var(--accent); background: #fff; color: var(--accent-text); font-size: 15px; font-weight: 700; text-decoration: none; }
  .qb-call { background: var(--accent); color: var(--on-accent); }
  .qb-quote { font-family: inherit; }
  body { padding-bottom: 68px; }
  .toast { top: 84px; }
}
@media (max-width: 700px) {
  .hero-panel, .hero-shell.panel-off .hero-panel { transition: none; opacity: 1; visibility: visible; transform: none; pointer-events: auto; } /* điện thoại: khung nằm dưới ảnh, luôn hiện để trang không giật khi banner tự chuyển */
  .hero-shell.panel-off .slider-btn.prev { left: 12px; }
  .hero-shell.panel-off .slider-btn.next { right: 12px; }
  .hero-panel { position: static; max-width: none; margin-top: 12px; box-shadow: none; border: 1px solid var(--border); background: #fff; }
  .hero-actions { display: none; } /* đã có thanh Gọi ngay / Báo giá cố định ở đáy màn hình */
  .has-panel .slider-btn { top: 50%; bottom: auto; transform: translateY(-50%); width: 40px; height: 40px; }
  .has-panel .slider-btn.prev { left: 12px; right: auto; }
  .has-panel .slider-btn.next { right: 12px; }
  .has-panel .slider-dots { left: 50%; right: auto; bottom: 14px; transform: translateX(-50%); }
}
@media (max-width: 520px) {
  .trust { grid-template-columns: 1fr; padding: 12px 8px; }
  .trust li, .trust li + li { border-left: 0; }
}

/* Viết hoa kiểu câu: chỉ viết hoa đầu câu và tên riêng. Nhãn, tiêu đề phụ, mục chân trang không IN HOA; chỉ tên thương hiệu giữ chữ in hoa. */
.eyebrow, .meta, .read-more, .card-cta, .badge, .toc-title, .cta-box strong, .process-grid h3, .footer-links, .footer-social, .form label { text-transform: none; letter-spacing: 0; }
.eyebrow { font-size: 13px; }
.meta { font-size: 13px; }
.read-more { font-size: 13px; }
.card-cta { font-size: 13px; font-weight: 700; }
.badge { font-size: 12px; }
.toc-title { font-size: 14px; }
.cta-box strong { font-size: 14px; }
.process-grid h3 { font-size: 15px; }
.footer-links, .footer-social { font-size: 13px; font-weight: 600; }
.form label { font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
