/* ==========================================================================
   Sửa Cửa Cuốn Namviet — hệ thống giao diện (namviet-ui)
   Bố cục: khung 1200px, nhịp xen kẽ khối nền sáng / navy, mobile-first từ 360px.
   Dùng chung cho bản xem trước và plugin WordPress (Blocksy).
   ========================================================================== */
:root {
  --nv-navy: #102A43;        /* chủ đạo */
  --nv-navy-2: #1B3A5B;      /* navy nhạt cho viền/hover trên nền tối */
  --nv-blue: #146EF5;        /* nhận diện, liên kết */
  --nv-blue-ink: #0F5AD0;    /* xanh đậm hơn cho chữ nhỏ (tương phản AA) */
  --nv-orange: #E30019;      /* chỉ dùng cho hành động gọi thợ */
  --nv-orange-ink: #B5001A;  /* cam đậm cho chữ cam trên nền sáng */
  --nv-orange-hover: #C10016;
  --nv-bg: #F4F4F4;
  --nv-surface: #FFFFFF;
  --nv-text: #172B4D;
  --nv-muted: #52627A;
  --nv-line: #DCE3EC;
  --nv-on-navy: #E6EDF5;
  --nv-on-navy-muted: #A9B8CA;
  --nv-note-bg: #FFF7E6;
  --nv-note-line: #E8B04B;
  --nv-note-text: #6B4A0B;
  --nv-ok: #137A3F;
  --nv-err: #B42318;

  --nv-font: "Be Vietnam Pro", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --nv-radius: 10px;
  --nv-radius-sm: 6px;
  --nv-shadow: 0 1px 2px rgba(16, 42, 67, .06), 0 4px 14px rgba(16, 42, 67, .06);
  --nv-max: 1200px;
  --nv-gutter: max(16px, env(safe-area-inset-left, 0px));
  --nv-gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --nv-bar-h: 64px;          /* thanh liên hệ dưới cùng trên điện thoại */

  /* thang chữ */
  --nv-fs-xs: .8125rem;
  --nv-fs-sm: .9375rem;
  --nv-fs-md: 1.0625rem;
  --nv-fs-lg: 1.25rem;
  --nv-fs-xl: clamp(1.375rem, 1.1rem + 1.2vw, 1.75rem);
  --nv-fs-2xl: clamp(1.75rem, 1.3rem + 2vw, 2.625rem);
  color-scheme: light;
}

.nv, .nv * { box-sizing: border-box; }
.nv {
  font-family: var(--nv-font);
  font-size: var(--nv-fs-md);
  line-height: 1.65;
  color: var(--nv-text);
  background: var(--nv-bg);
  -webkit-text-size-adjust: 100%;
}
.nv [hidden] { display: none !important; }
.nv img { max-width: 100%; height: auto; display: block; }
.nv a { color: var(--nv-blue-ink); text-underline-offset: 3px; }
.nv a:hover { color: var(--nv-navy); }
.nv :focus-visible { outline: 3px solid var(--nv-blue); outline-offset: 2px; border-radius: 4px; }
.nv h1, .nv h2, .nv h3, .nv h4 { color: var(--nv-navy); line-height: 1.25; text-wrap: balance; margin: 0; font-weight: 700; letter-spacing: -.01em; }
.nv h1 { font-size: var(--nv-fs-2xl); font-weight: 800; }
.nv h2 { font-size: var(--nv-fs-xl); }
.nv h3 { font-size: var(--nv-fs-lg); }
.nv p { margin: 0; }
.nv ul, .nv ol { margin: 0; padding: 0; }
.nv-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nv-skip { position: absolute; left: 8px; top: -60px; background: var(--nv-navy); color: #fff !important; padding: 10px 14px; border-radius: var(--nv-radius-sm); z-index: 100; }
.nv-skip:focus { top: 8px; }

/* ---------- khung ---------- */
.nv-wrap { max-width: var(--nv-max); margin-inline: auto; padding-left: var(--nv-gutter); padding-right: var(--nv-gutter-r); }
.nv-section { padding-block: 56px; }
.nv-section--white { background: var(--nv-surface); }
.nv-section--navy { background: var(--nv-navy); color: var(--nv-on-navy); }
.nv-section--navy h2, .nv-section--navy h3 { color: #fff; }
.nv-section--tight { padding-block: 40px; }
.nv-head { display: grid; gap: 10px; max-width: 720px; margin-bottom: 28px; }
.nv-head p { color: var(--nv-muted); }
.nv-section--navy .nv-head p { color: var(--nv-on-navy-muted); }
.nv-eyebrow { font-size: var(--nv-fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--nv-blue-ink); }
.nv-section--navy .nv-eyebrow { color: #8DB8FF; }
.nv-stack { display: grid; gap: 16px; }
.nv-muted { color: var(--nv-muted); }

/* ---------- nút ---------- */
.nv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 20px; border-radius: var(--nv-radius-sm);
  font: 700 var(--nv-fs-md)/1.2 var(--nv-font); text-decoration: none !important;
  border: 2px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.nv-btn svg { width: 20px; height: 20px; flex: none; }
.nv-btn--call { background: var(--nv-orange); color: #fff !important; }
.nv-btn--call:hover { background: var(--nv-orange-hover); }
.nv-btn--zalo { background: var(--nv-blue); color: #fff !important; }
.nv-btn--zalo:hover { background: var(--nv-blue-ink); }
.nv-btn--ghost { background: transparent; border-color: var(--nv-line); color: var(--nv-navy) !important; }
.nv-btn--ghost:hover { border-color: var(--nv-navy); }
.nv-section--navy .nv-btn--ghost { color: #fff !important; border-color: var(--nv-navy-2); }
.nv-btn--block { width: 100%; }
.nv-btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- ghi chú bản xem trước (chỉ hiện trong preview) ---------- */
.nv-note {
  display: block; border: 1px dashed var(--nv-note-line); background: var(--nv-note-bg); color: var(--nv-note-text);
  font-size: var(--nv-fs-xs); line-height: 1.5; padding: 8px 10px; border-radius: var(--nv-radius-sm);
}
.nv-note b { font-weight: 700; }
.nv-hide-notes .nv-note { display: none !important; }

/* ---------- header ---------- */
.nv-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--nv-surface); border-bottom: 1px solid var(--nv-line); }
.nv-header__in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.nv-brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; color: var(--nv-navy) !important; min-width: 0; }
.nv-brand__mark { width: 38px; height: 38px; flex: none; }
.nv-brand__name { display: grid; line-height: 1.15; min-width: 0; }
.nv-brand__name b { font-size: 1.0625rem; font-weight: 800; }
@media (max-width: 400px) { .nv-brand__name b { font-size: .95rem; } .nv-brand__name small { display: none; } .nv-brand__mark { width: 34px; height: 34px; } }
.nv-brand__name small { font-size: .75rem; color: var(--nv-muted); font-weight: 500; white-space: nowrap; }
.nv-nav { display: none; margin-left: auto; }
.nv-nav ul { list-style: none; display: flex; gap: 2px; }
.nv-nav a { display: block; padding: 10px 12px; border-radius: var(--nv-radius-sm); color: var(--nv-text); font-weight: 600; font-size: var(--nv-fs-sm); text-decoration: none; }
.nv-nav a:hover, .nv-nav a[aria-current="page"] { color: var(--nv-blue-ink); background: var(--nv-bg); }
.nv-header__cta { display: none; }
.nv-header__tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nv-iconbtn { width: 46px; height: 46px; display: inline-grid; place-items: center; border-radius: var(--nv-radius-sm); border: 1px solid var(--nv-line); background: var(--nv-surface); color: var(--nv-navy); cursor: pointer; }
.nv-iconbtn svg { width: 22px; height: 22px; }
.nv-iconbtn--call { background: var(--nv-orange); border-color: var(--nv-orange); color: #fff !important; }
.nv-drawer { border-top: 1px solid var(--nv-line); background: var(--nv-surface); }
.nv-drawer ul { list-style: none; display: grid; padding-block: 8px; }
.nv-drawer a { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 4px; color: var(--nv-navy); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--nv-line); }
.nv-drawer li:last-child a { border-bottom: 0; }
.nv-drawer__call { padding-block: 4px 16px; }
@media (min-width: 1024px) {
  .nv-nav { display: block; }
  .nv-header__cta { display: inline-flex; }
  .nv-header__tools { display: none; }
  .nv-drawer { display: none !important; }
  .nv-header__in { min-height: 76px; }
}

/* ---------- hero ---------- */
.nv-hero { background: var(--nv-surface); padding-block: 28px 40px; border-bottom: 1px solid var(--nv-line); }
.nv-hero__grid { display: grid; gap: 28px; align-items: center; }
.nv-hero__copy { display: grid; gap: 16px; min-width: 0; }
.nv-hero__lead { font-size: var(--nv-fs-md); color: var(--nv-muted); max-width: 56ch; }
.nv-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.nv-hero__actions .nv-btn { flex: 1 1 220px; }
.nv-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: var(--nv-fs-sm); color: var(--nv-text); font-weight: 600; }
.nv-points li { display: inline-flex; align-items: center; gap: 8px; }
.nv-points svg { width: 18px; height: 18px; color: var(--nv-blue); flex: none; }
.nv-hero__media { position: relative; border-radius: var(--nv-radius); overflow: hidden; background: var(--nv-bg); max-height: 300px; }
.nv-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.nv-hero__tag { position: absolute; left: 12px; bottom: 12px; background: rgba(16, 42, 67, .88); color: #fff; font-size: var(--nv-fs-xs); padding: 6px 10px; border-radius: 999px; }
@media (min-width: 900px) {
  .nv-hero { padding-block: 56px; }
  .nv-hero__grid { grid-template-columns: 1.1fr .9fr; gap: 48px; }
  .nv-hero__media { max-height: none; aspect-ratio: 5 / 5.4; }
  .nv-hero__actions .nv-btn { flex: 0 0 auto; }
}

/* ---------- chọn nhanh sự cố ---------- */
.nv-issues { display: grid; grid-template-columns: 1fr; gap: 10px; }
.nv-issue {
  display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  min-height: 64px; padding: 12px 14px; background: var(--nv-surface); border: 1px solid var(--nv-line);
  border-radius: var(--nv-radius); color: var(--nv-navy) !important; font: 600 var(--nv-fs-md)/1.35 var(--nv-font);
  text-decoration: none !important; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.nv-issue:hover { border-color: var(--nv-blue); box-shadow: var(--nv-shadow); }
.nv-issue__ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 8px; background: #E8F0FE; color: var(--nv-blue-ink); }
.nv-issue__ic svg { width: 22px; height: 22px; }
.nv-issue__go { margin-left: auto; color: var(--nv-muted); flex: none; }
.nv-issue__go svg { width: 18px; height: 18px; }
@media (min-width: 640px) { .nv-issues { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .nv-issues { grid-template-columns: repeat(3, 1fr); } }

/* ---------- thẻ dịch vụ ---------- */
.nv-cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .nv-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .nv-cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.nv-card { display: grid; grid-template-rows: auto 1fr; background: var(--nv-surface); border: 1px solid var(--nv-line); border-radius: var(--nv-radius); overflow: hidden; }
.nv-card__img { aspect-ratio: 16 / 10; background: var(--nv-bg); overflow: hidden; }
.nv-card__img img { width: 100%; height: 100%; object-fit: cover; }
.nv-card__body { display: grid; gap: 8px; padding: 16px 18px 18px; align-content: start; }
.nv-card__body p { color: var(--nv-muted); font-size: var(--nv-fs-sm); }
.nv-card__link { font-weight: 700; font-size: var(--nv-fs-sm); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; }
.nv-card__link svg { width: 16px; height: 16px; }
.nv-card h3 a { color: inherit; text-decoration: none; }
.nv-card h3 a:hover { color: var(--nv-blue-ink); }

/* ---------- lý do (nền navy) ---------- */
.nv-reasons { list-style: none; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .nv-reasons { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .nv-reasons { grid-template-columns: repeat(4, 1fr); } }
.nv-reason { display: grid; gap: 8px; padding: 18px; border: 1px solid var(--nv-navy-2); border-radius: var(--nv-radius); }
.nv-reason svg { width: 28px; height: 28px; color: #8DB8FF; }
.nv-reason h3 { font-size: var(--nv-fs-md); }
.nv-reason p { color: var(--nv-on-navy-muted); font-size: var(--nv-fs-sm); }

/* ---------- quy trình ---------- */
.nv-steps { list-style: none; display: grid; gap: 12px; counter-reset: nvstep; grid-template-columns: 1fr; }
@media (min-width: 900px) { .nv-steps { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.nv-step { counter-increment: nvstep; display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; align-items: start; padding: 16px; background: var(--nv-surface); border: 1px solid var(--nv-line); border-radius: var(--nv-radius); }
.nv-step::before { content: counter(nvstep); grid-row: span 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--nv-navy); color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
.nv-step h3 { font-size: var(--nv-fs-md); }
.nv-step p { color: var(--nv-muted); font-size: var(--nv-fs-sm); }
@media (min-width: 900px) { .nv-step { grid-template-columns: 1fr; } .nv-step::before { grid-row: auto; margin-bottom: 6px; } }

/* ---------- bảng chi phí ---------- */
.nv-table-wrap { overflow-x: auto; border: 1px solid var(--nv-line); border-radius: var(--nv-radius); background: var(--nv-surface); }
.nv-table { width: 100%; border-collapse: collapse; font-size: var(--nv-fs-sm); }
.nv-table th, .nv-table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--nv-line); }
.nv-table thead th { background: var(--nv-navy); color: #fff; font-weight: 700; font-size: var(--nv-fs-xs); text-transform: uppercase; letter-spacing: .05em; }
.nv-table tbody tr:last-child > * { border-bottom: 0; }
.nv-table tbody th { color: var(--nv-navy); font-weight: 700; }
/* điện thoại: bảng chuyển thành thẻ, không tràn ngang */
@media (max-width: 719px) {
  .nv-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nv-table--stack, .nv-table--stack tbody, .nv-table--stack tr, .nv-table--stack th, .nv-table--stack td { display: block; width: 100%; }
  .nv-table--stack tr { padding: 14px 16px; border-bottom: 1px solid var(--nv-line); }
  .nv-table--stack tbody tr:last-child { border-bottom: 0; }
  .nv-table--stack th, .nv-table--stack td { padding: 0; border: 0; }
  .nv-table--stack tbody th { font-size: var(--nv-fs-md); margin-bottom: 6px; }
  .nv-table--stack td { display: grid; gap: 2px; margin-top: 8px; }
  .nv-table--stack td::before { content: attr(data-label); font-size: var(--nv-fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--nv-muted); }
}
.nv-callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--nv-radius); background: #E8F0FE; color: var(--nv-navy); font-size: var(--nv-fs-sm); }
.nv-callout svg { width: 22px; height: 22px; flex: none; color: var(--nv-blue-ink); margin-top: 1px; }

/* ---------- công trình ---------- */
.nv-projects { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .nv-projects { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .nv-projects { grid-template-columns: repeat(3, 1fr); } }
.nv-project { background: var(--nv-surface); border: 1px solid var(--nv-line); border-radius: var(--nv-radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.nv-project figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--nv-bg); }
.nv-project img { width: 100%; height: 100%; object-fit: cover; }
.nv-project__body { padding: 14px 16px 16px; display: grid; gap: 8px; align-content: start; }
.nv-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: var(--nv-fs-sm); }
.nv-meta dt { color: var(--nv-muted); }
.nv-meta dd { margin: 0; font-weight: 600; color: var(--nv-navy); }
.nv-tbd { color: var(--nv-note-text) !important; font-weight: 500 !important; font-style: italic; }

/* ---------- khu vực ---------- */
.nv-area { display: grid; gap: 20px; }
@media (min-width: 900px) { .nv-area { grid-template-columns: 1fr 1fr; align-items: start; } }
.nv-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.nv-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px; background: var(--nv-surface); border: 1px solid var(--nv-line); color: var(--nv-navy) !important; font-size: var(--nv-fs-sm); font-weight: 600; text-decoration: none !important; }
a.nv-chip:hover { border-color: var(--nv-blue); }
.nv-chip--on { background: var(--nv-navy); color: #fff !important; border-color: var(--nv-navy); }
.nv-addr { display: grid; gap: 12px; padding: 18px; background: var(--nv-surface); border: 1px solid var(--nv-line); border-radius: var(--nv-radius); }
.nv-addr p { display: flex; gap: 10px; font-size: var(--nv-fs-sm); }
.nv-addr svg { width: 20px; height: 20px; flex: none; color: var(--nv-blue-ink); margin-top: 2px; }

/* ---------- FAQ ---------- */
.nv-faq { display: grid; gap: 10px; }
.nv-faq details { background: var(--nv-surface); border: 1px solid var(--nv-line); border-radius: var(--nv-radius); }
.nv-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; font-weight: 700; color: var(--nv-navy); min-height: 56px; }
.nv-faq summary::-webkit-details-marker { display: none; }
.nv-faq summary::after { content: ""; width: 10px; height: 10px; flex: none; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .15s; }
.nv-faq details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.nv-faq details > div { padding: 0 18px 16px; color: var(--nv-muted); display: grid; gap: 8px; }
.nv-split { display: grid; gap: 32px; }
@media (min-width: 1024px) { .nv-split { grid-template-columns: 1.15fr .85fr; gap: 48px; } }

/* ---------- bài kiến thức ---------- */
.nv-posts { list-style: none; display: grid; gap: 12px; }
.nv-post { display: grid; gap: 6px; padding: 16px 18px; background: var(--nv-surface); border: 1px solid var(--nv-line); border-radius: var(--nv-radius); }
.nv-post a.nv-post__t { font-weight: 700; color: var(--nv-navy); text-decoration: none; font-size: var(--nv-fs-md); line-height: 1.4; }
.nv-post a.nv-post__t:hover { color: var(--nv-blue-ink); text-decoration: underline; }
.nv-post p { color: var(--nv-muted); font-size: var(--nv-fs-sm); }
.nv-post__cat { font-size: var(--nv-fs-xs); font-weight: 700; color: var(--nv-blue-ink); text-transform: uppercase; letter-spacing: .06em; }
.nv-posts--grid { grid-template-columns: 1fr; }
@media (min-width: 720px) { .nv-posts--grid { grid-template-columns: 1fr 1fr; } }

/* ---------- liên hệ + biểu mẫu ---------- */
.nv-contact { display: grid; gap: 24px; }
@media (min-width: 960px) { .nv-contact { grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; } }
.nv-form { display: grid; gap: 16px; padding: 20px; background: var(--nv-surface); border: 1px solid var(--nv-line); border-radius: var(--nv-radius); box-shadow: var(--nv-shadow); color: var(--nv-text); }
.nv-form h2, .nv-form h3 { color: var(--nv-navy); }
.nv-field { display: grid; gap: 6px; }
.nv-field label { font-weight: 700; font-size: var(--nv-fs-sm); color: var(--nv-navy); }
.nv-field label small { font-weight: 500; color: var(--nv-muted); }
.nv-field input, .nv-field select, .nv-field textarea {
  width: 100%; min-height: 48px; padding: 11px 12px; font: 400 16px/1.4 var(--nv-font); color: var(--nv-text);
  background: var(--nv-surface); border: 1px solid #B9C5D4; border-radius: var(--nv-radius-sm);
}
.nv-field textarea { min-height: 104px; resize: vertical; }
.nv-field input:focus, .nv-field select:focus, .nv-field textarea:focus { border-color: var(--nv-blue); outline: 3px solid rgba(20, 110, 245, .25); outline-offset: 0; }
.nv-field [aria-invalid="true"] { border-color: var(--nv-err); }
.nv-field__err { color: var(--nv-err); font-size: var(--nv-fs-xs); font-weight: 600; }
.nv-field__hint { color: var(--nv-muted); font-size: var(--nv-fs-xs); }
.nv-row2 { display: grid; gap: 16px; }
@media (min-width: 560px) { .nv-row2 { grid-template-columns: 1fr 1fr; } }
.nv-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.nv-status { padding: 12px 14px; border-radius: var(--nv-radius-sm); font-size: var(--nv-fs-sm); font-weight: 600; }
.nv-status--ok { background: #E7F6EC; color: var(--nv-ok); }
.nv-status--err { background: #FDECEA; color: var(--nv-err); }
.nv-status--info { background: var(--nv-note-bg); color: var(--nv-note-text); }
.nv-privacy { font-size: var(--nv-fs-xs); color: var(--nv-muted); }
.nv-panel { display: grid; gap: 16px; padding: 22px; border-radius: var(--nv-radius); background: var(--nv-navy); color: var(--nv-on-navy); }
.nv-panel h2, .nv-panel h3 { color: #fff; }
.nv-panel p { color: var(--nv-on-navy-muted); font-size: var(--nv-fs-sm); }
.nv-panel .nv-num { font-size: 1.5rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: .01em; }

/* ---------- footer ---------- */
.nv-footer { background: #0B1F33; color: var(--nv-on-navy-muted); font-size: var(--nv-fs-sm); padding-block: 44px 24px; }
.nv-footer a { color: var(--nv-on-navy); text-decoration: none; }
.nv-footer a:hover { color: #fff; text-decoration: underline; }
.nv-footer h2 { color: #fff; font-size: var(--nv-fs-sm); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.nv-footer__grid { display: grid; gap: 28px; }
@media (min-width: 720px) { .nv-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .nv-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.nv-footer ul { list-style: none; display: grid; gap: 8px; }
.nv-footer__brand { display: grid; gap: 10px; }
.nv-footer__brand b { color: #fff; font-size: var(--nv-fs-md); }
.nv-footer__hot { font-size: 1.25rem; font-weight: 800; color: #fff !important; }
.nv-footer__bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--nv-navy-2); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: var(--nv-fs-xs); }

/* ---------- thanh liên hệ cố định (điện thoại) ---------- */
.nv-mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; gap: 8px;
  padding: 8px var(--nv-gutter-r) calc(8px + env(safe-area-inset-bottom, 0px)) var(--nv-gutter);
  background: var(--nv-surface); border-top: 1px solid var(--nv-line); box-shadow: 0 -4px 14px rgba(16, 42, 67, .08);
}
.nv-mbar .nv-btn { flex: 1 1 0; min-height: 48px; padding-inline: 10px; }
.nv-has-mbar { padding-bottom: calc(var(--nv-bar-h) + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1024px) { .nv-mbar { display: none; } .nv-has-mbar { padding-bottom: 0; } }

/* ---------- trang con: breadcrumb, tiêu đề trang ---------- */
.nv-pagehead { background: var(--nv-surface); border-bottom: 1px solid var(--nv-line); padding-block: 24px 28px; }
.nv-pagehead__in { display: grid; gap: 12px; }
.nv-pagehead p { color: var(--nv-muted); max-width: 64ch; }
.nv-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: var(--nv-fs-xs); color: var(--nv-muted); }
.nv-crumbs li + li::before { content: "›"; margin-right: 6px; color: #9AA8B9; }
.nv-crumbs a { color: var(--nv-muted); }
.nv-crumbs [aria-current] { color: var(--nv-text); font-weight: 600; }

/* bố cục nội dung + cột phụ */
.nv-layout { display: grid; gap: 28px; }
@media (min-width: 1024px) { .nv-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; } .nv-aside { position: sticky; top: 96px; } }
.nv-aside { display: grid; gap: 16px; }

/* nội dung văn bản (bài viết, dịch vụ) */
.nv-prose { min-width: 0; font-size: var(--nv-fs-md); }
.nv-prose > * + * { margin-top: 1em; }
.nv-prose h2 { margin-top: 1.8em; font-size: var(--nv-fs-xl); scroll-margin-top: 96px; }
.nv-prose h3 { margin-top: 1.4em; scroll-margin-top: 96px; }
.nv-prose p, .nv-prose li { max-width: 70ch; }
.nv-prose ul, .nv-prose ol { padding-left: 1.3em; display: grid; gap: 6px; }
.nv-prose figure { margin: 1.4em 0; }
.nv-prose figure img { border-radius: var(--nv-radius); }
.nv-prose figcaption { font-size: var(--nv-fs-xs); color: var(--nv-muted); margin-top: 6px; }
.nv-checklist { list-style: none !important; padding: 0 !important; display: grid; gap: 10px; }
.nv-checklist li { display: flex; gap: 10px; align-items: flex-start; }
.nv-checklist svg { width: 20px; height: 20px; flex: none; color: var(--nv-blue); margin-top: 3px; }
.nv-warn { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--nv-radius); background: #FFF1E7; color: #7A2E0B; font-size: var(--nv-fs-sm); }
.nv-warn svg { width: 22px; height: 22px; flex: none; color: var(--nv-orange-ink); }
.nv-toc { background: var(--nv-surface); border: 1px solid var(--nv-line); border-radius: var(--nv-radius); padding: 14px 18px; }
.nv-toc summary { font-weight: 700; color: var(--nv-navy); cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.nv-toc ol { margin-top: 8px; padding-left: 1.3em; display: grid; gap: 6px; font-size: var(--nv-fs-sm); }
.nv-byline { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--nv-fs-xs); color: var(--nv-muted); }
.nv-cta-box { display: grid; gap: 12px; padding: 20px; border-radius: var(--nv-radius); background: var(--nv-navy); color: var(--nv-on-navy); }
.nv-cta-box h2, .nv-cta-box h3 { color: #fff; margin: 0 !important; font-size: var(--nv-fs-lg); }
.nv-cta-box p { color: var(--nv-on-navy-muted); font-size: var(--nv-fs-sm); }
.nv-cta-box .nv-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.nv-cta-box .nv-btn { flex: 1 1 200px; }
.nv-box { background: var(--nv-surface); border: 1px solid var(--nv-line); border-radius: var(--nv-radius); padding: 18px; display: grid; gap: 10px; }
.nv-box h2, .nv-box h3 { font-size: var(--nv-fs-md); }

/* tìm kiếm */
.nv-search { display: flex; gap: 8px; max-width: 560px; }
.nv-search input { flex: 1; min-width: 0; min-height: 48px; padding: 10px 12px; font: 16px var(--nv-font); border: 1px solid #B9C5D4; border-radius: var(--nv-radius-sm); }
.nv-search button { min-height: 48px; padding: 0 18px; border: 0; border-radius: var(--nv-radius-sm); background: var(--nv-navy); color: #fff; font: 700 var(--nv-fs-sm) var(--nv-font); cursor: pointer; }
.nv-pager { display: flex; gap: 8px; flex-wrap: wrap; }

/* 404 */
.nv-404 { text-align: left; display: grid; gap: 16px; max-width: 680px; }
.nv-404__code { font-size: clamp(3rem, 8vw, 5rem); font-weight: 800; color: var(--nv-line); line-height: 1; letter-spacing: -.03em; }

@media (prefers-reduced-motion: reduce) { .nv * { transition: none !important; scroll-behavior: auto !important; } }

/* chống tràn ngang cho nội dung dài (email, địa chỉ) */
.nv-split > *, .nv-contact > *, .nv-layout > *, .nv-area > *, .nv-footer__grid > * { min-width: 0; }
.nv-meta dd, .nv-addr span, .nv-footer p { overflow-wrap: anywhere; }

/* ---------- nút nổi Zalo + gọi điện, góc dưới bên phải ---------- */
.nv-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.nv-float__btn { position: relative; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; color: #fff !important; text-decoration: none !important; box-shadow: 0 6px 18px rgba(16, 42, 67, .28); transition: transform .15s ease; }
.nv-float__btn:hover, .nv-float__btn:focus-visible { transform: scale(1.06); }
.nv-float__btn:focus-visible { outline: 3px solid #FFC107; outline-offset: 3px; }
.nv-float__btn--zalo { background: #0068FF; }
.nv-float__zalo { font: 800 15px/1 "Be Vietnam Pro", system-ui, sans-serif; letter-spacing: -.2px; }
.nv-float__btn--call { background: #E30019; }
.nv-float__btn--call svg { width: 26px; height: 26px; position: relative; z-index: 1; animation: nv-shake 1.6s ease-in-out infinite; }
.nv-float__ring { position: absolute; inset: 0; border-radius: 50%; background: #E30019; opacity: .45; animation: nv-ring 1.6s ease-out infinite; }
.nv-float__tip { position: absolute; right: 66px; top: 50%; transform: translateY(-50%); white-space: nowrap; background: #102A43; color: #fff; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .15s; }
.nv-float__btn:hover .nv-float__tip, .nv-float__btn:focus-visible .nv-float__tip { opacity: 1; }
.nv-float__tip--num { opacity: 1; background: #E30019; }
@keyframes nv-ring { 0% { transform: scale(1); opacity: .45; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes nv-shake { 0%, 60%, 100% { transform: rotate(0); } 10%, 30%, 50% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(14deg); } }
@media (prefers-reduced-motion: reduce) { .nv-float__ring, .nv-float__btn--call svg { animation: none; } }
/* có thanh liên hệ dưới cùng trên điện thoại thì đẩy nút nổi lên trên thanh */
@media (max-width: 1023px) { .nv-has-mbar .nv-float { bottom: calc(var(--nv-bar-h) + 12px + env(safe-area-inset-bottom, 0px)); } .nv-float__tip--num { display: none; } }
/* nút "lên đầu trang" của Blocksy dời sang trái để không đè nút nổi */
body.nv-has-float .ct-back-to-top { right: auto !important; left: 16px !important; }
