/* Phần dùng chung cho mọi trang */
html, body { overflow-x: clip; }
body { font-family: var(--nh-font); line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .h1, .h2, .h3, .h4, .h5, .h6, .nh-h { font-weight: 800; color: var(--nh-navy-dam); letter-spacing: -.01em; line-height: 1.25; text-wrap: balance; }
p { text-wrap: pretty; }
img { max-width: 100%; height: auto; }
a { text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--nh-cam); outline-offset: 2px; }
.nh-skip { position: absolute; left: 12px; top: 8px; z-index: 2000; background: #fff; padding: 8px 14px; border-radius: 8px; }

/* Nút */
.nh-btn-cam { --bs-btn-bg: var(--nh-cam-nut); --bs-btn-border-color: var(--nh-cam-nut); --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--nh-cam-nut-hover); --bs-btn-hover-border-color: var(--nh-cam-nut-hover); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--nh-cam-nut-hover); --bs-btn-active-color: #fff; font-weight: 700; border-radius: 10px; padding: .6rem 1.1rem; }
.nh-btn-navy { --bs-btn-bg: var(--nh-navy); --bs-btn-border-color: var(--nh-navy); --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--nh-navy-dam); --bs-btn-hover-border-color: var(--nh-navy-dam); --bs-btn-hover-color: #fff; font-weight: 700; border-radius: 10px; padding: .6rem 1.1rem; }
.nh-btn-vien { --bs-btn-color: var(--nh-navy); --bs-btn-border-color: var(--nh-navy); --bs-btn-hover-bg: var(--nh-navy); --bs-btn-hover-color: #fff; font-weight: 700; border-radius: 10px; padding: .6rem 1.1rem; }
.nh-btn-trang { --bs-btn-bg: #fff; --bs-btn-color: var(--nh-navy-dam); --bs-btn-hover-bg: var(--nh-cam-nhat); --bs-btn-hover-color: var(--nh-navy-dam); font-weight: 700; border-radius: 10px; padding: .6rem 1.1rem; }

/* Thanh trên cùng */
.nh-topbar { background: var(--nh-navy-dam); color: #d6e0ea; font-size: .875rem; padding: 6px 0; }
.nh-topbar a { color: #fff; text-decoration: none; }
.nh-topbar a:hover { color: var(--nh-cam-sang); }
.nh-topbar i { color: var(--nh-cam-sang); margin-right: 4px; }

/* Header */
.nh-header { background: #fff; border-bottom: 1px solid var(--nh-vien); z-index: 1050; } /* trên lớp nền mờ của menu điện thoại */
.nh-header .navbar { padding: 8px 0; }
.nh-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nh-brand-chu { display: flex; flex-direction: column; line-height: 1.1; }
.nh-brand-ten { font-weight: 800; font-size: 1.3rem; color: var(--nh-navy); letter-spacing: .02em; }
.nh-brand-phu { font-size: .74rem; color: var(--nh-cam-chu); font-weight: 600; letter-spacing: .03em; }
.nh-header .nav-link { white-space: nowrap; font-weight: 600; color: var(--nh-chu); padding: .5rem .7rem !important; border-radius: 8px; }
.nh-header .nav-link:hover, .nh-header .nav-link:focus { color: var(--nh-navy); background: var(--nh-navy-nhat); }
.nh-header .dropdown-menu { border: 1px solid var(--nh-vien); border-radius: 12px; box-shadow: var(--nh-bong); padding: 6px; }
.nh-header .dropdown-item { border-radius: 8px; font-weight: 500; padding: .5rem .8rem; }
.nh-header .dropdown-item:active { background: var(--nh-navy); }
@media (max-width: 1199.98px) {
  .nh-header .offcanvas { max-width: 86vw; }
  .nh-header .nav-link { font-size: 1.05rem; }
}

/* Dải 3 nút báo giá */
.nh-dai-bao-gia { background: var(--nh-navy); padding: 14px 0; }
.nh-cta { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .22); color: #fff; text-decoration: none; font-size: 1.02rem; transition: background .15s, transform .15s; }
.nh-cta span { flex: 1; }
.nh-cta i:first-child { font-size: 1.35rem; color: var(--nh-cam-sang); }
.nh-cta:hover { background: rgba(255, 255, 255, .16); color: #fff; transform: translateY(-1px); }
.nh-cta-cam { background: var(--nh-cam-nut); border-color: var(--nh-cam-nut); }
.nh-cta-cam i:first-child { color: #fff; }
.nh-cta-cam:hover { background: var(--nh-cam-nut-hover); }

/* Khối nội dung */
.nh-khoi { padding: 72px 0; }
.nh-khoi-be { background: var(--nh-be); }
.nh-khoi-toi { background: var(--nh-navy-dam); color: #d6e0ea; }
.nh-khoi-toi h2, .nh-khoi-toi h3 { color: #fff; }
.nh-nhan { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--nh-cam-chu); margin-bottom: .5rem; }
.nh-khoi-toi .nh-nhan { color: var(--nh-cam-sang); }
.nh-tieu-de { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); margin-bottom: .6rem; }
.nh-dan { color: var(--nh-chu-phu); font-size: 1.05rem; max-width: 46rem; }
.nh-khoi-toi .nh-dan { color: #c3d0dd; }
@media (max-width: 767.98px) { .nh-khoi { padding: 52px 0; } }

/* Thẻ */
.nh-the { background: #fff; border: 1px solid var(--nh-vien); border-radius: var(--nh-bo); padding: 24px; height: 100%; }
.nh-the-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; background: var(--nh-cam-nhat); color: var(--nh-cam-chu); margin-bottom: 14px; }

/* Footer */
.nh-footer { background: var(--nh-navy-dam); color: #c3d0dd; padding: 56px 0 24px; font-size: .95rem; }
.nh-footer a { color: #fff; text-decoration: none; }
.nh-footer a:hover { color: var(--nh-cam-sang); }
.nh-footer-ten { color: #fff; font-weight: 800; line-height: 1.3; }
.nh-footer-phu { font-size: .8rem; }
.nh-footer-ttin li { margin-bottom: 8px; display: flex; gap: 8px; }
.nh-footer-ttin i { color: var(--nh-cam-sang); }
.nh-footer-h { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.nh-footer-menu li { margin-bottom: 7px; }
.nh-mxh { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); font-size: 1.1rem; }
.nh-footer-cuoi { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 36px; padding-top: 18px; font-size: .85rem; }

/* Nút nổi (máy tính) */
.nh-noi { position: fixed; right: 18px; bottom: 22px; z-index: 1030; flex-direction: column; gap: 10px; }
.nh-noi-nut { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.3rem; box-shadow: 0 6px 18px rgba(0, 0, 0, .22); text-decoration: none; transition: transform .15s; }
.nh-noi-nut:hover { transform: scale(1.08); color: #fff; }
.nh-noi-zalo { background: #0068FF; }
.nh-noi-goi { background: #1E8E3E; }
.nh-noi-baogia { background: var(--nh-cam-nut); }

/* Thanh dưới (điện thoại) */
.nh-thanh-duoi { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: grid; grid-template-columns: 1fr 1fr 1.4fr;
  background: #fff; border-top: 1px solid var(--nh-vien); box-shadow: 0 -4px 16px rgba(0, 0, 0, .08); padding-bottom: env(safe-area-inset-bottom); }
.nh-thanh-duoi a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; font-size: .8rem; font-weight: 700; color: var(--nh-navy); text-decoration: none; }
.nh-thanh-duoi i { font-size: 1.2rem; }
.nh-thanh-duoi-chinh { background: var(--nh-cam-nut); color: #fff !important; }
@media (max-width: 767.98px) { body { padding-bottom: 64px; } }

/* Form */
.form-control, .form-select { border-radius: 10px; padding: .65rem .85rem; border-color: #d3ccc3; }
.form-control:focus, .form-select:focus { border-color: var(--nh-navy); box-shadow: 0 0 0 .2rem rgba(19, 82, 133, .18); }
.form-label { font-weight: 600; font-size: .92rem; }

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

/* Thông báo sau khi gửi form */
.nh-form-tb { border-radius: 10px; padding: 12px 14px; background: var(--nh-cam-nhat); color: var(--nh-chu); font-weight: 500; }
.nh-form-tb.nh-tb-ok { background: #E6F4EA; color: #0D4F22; }
.nh-form-tb a { color: inherit; }
/* Ô bẫy chống bot: người thật không thấy */
.nh-bay { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Thẻ công trình + nút lọc (trang chủ, /cong-trinh/) */
.nh-loc { display: flex; flex-wrap: wrap; gap: 6px; }
.nh-loc-nut { border: 1px solid var(--nh-vien); background: #fff; border-radius: 99px; padding: 6px 14px; font-weight: 600; font-size: .9rem; color: var(--nh-chu); }
.nh-loc-nut[aria-pressed="true"] { background: var(--nh-navy); border-color: var(--nh-navy); color: #fff; }
.nh-ct { border-radius: 16px; overflow: hidden; border: 1px solid var(--nh-vien); background: #fff; height: 100%; transition: box-shadow .2s, transform .2s; }
.nh-ct:hover { box-shadow: var(--nh-bong); transform: translateY(-2px); }
.nh-ct-than { padding: 16px 18px 18px; }
.nh-ct-loai { font-size: .75rem; font-weight: 700; color: var(--nh-cam-chu); text-transform: uppercase; letter-spacing: .05em; }
.nh-ct-link { display: block; color: inherit; text-decoration: none; }
.nh-ct-link:hover { color: inherit; }
.nh-ct-link:focus-visible .nh-ct { outline: 3px solid var(--nh-cam); outline-offset: 2px; }
.nh-ct-hinh { aspect-ratio: 4 / 3; overflow: hidden; background: var(--nh-be); position: relative; }
.nh-ct-hinh img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.nh-ct-link:hover .nh-ct-hinh img { transform: scale(1.04); }
.nh-ct-so { position: absolute; right: 10px; bottom: 10px; background: rgba(11, 46, 79, .85); color: #fff; font-size: .78rem; font-weight: 700; border-radius: 99px; padding: 3px 10px; }
@media (prefers-reduced-motion: reduce) { .nh-ct-hinh img { transition: none; } }
[data-loai][hidden] { display: none !important; }
