/* NOX landing (nox.daugiatruongson.vn), in Trường Sơn's look. Requested by anh Thạch (Lucas) 11/11/2026. */
@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.ttf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Medium.ttf"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-SemiBold.ttf"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Bold.ttf"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Noto Serif"; src: url("fonts/NotoSerif-Bold.ttf"); font-weight: 700; font-display: swap; }
:root {
  --ink: #2a2a2a; --ink-soft: #5a5c66; --brand: #b41712; --brand-deep: #912314; --accent: #da0303;
  --soft: #fdf1f0; --gold: #ffb800; --paper: #ececec; --line: #ececec;
  --grad: linear-gradient(90deg, #c90000 0%, #ff4848 100%);
  --shadow: 0 6px 24px rgba(42, 42, 42, .08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: Inter, system-ui, sans-serif; color: var(--ink); background: #fff; font-size: 15px; line-height: 1.5; }
body.lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: "Noto Serif", Georgia, serif; color: var(--brand-deep); line-height: 1.25; }
h2 { font-size: 30px; margin-bottom: 6px; }
.muted, .sec-head p { color: var(--ink-soft); }
.rd { color: var(--accent); }

.topbar { background: var(--brand); color: #fff; font-size: 13px; }
.topbar .wrap { display: flex; gap: 28px; height: 36px; align-items: center; }
.topbar .right { margin-left: auto; opacity: .95; }

.nav { position: sticky; top: 0; z-index: 20; background: #fff; box-shadow: 0 1px 0 var(--line); }
.nav .wrap { display: flex; align-items: center; height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; }
.chip { background: var(--soft); color: var(--brand); font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.menu { display: flex; gap: 22px; margin-left: auto; font-weight: 600; font-size: 14px; }
.menu a:hover { color: var(--accent); }
.acts { display: flex; gap: 10px; }
.burger { display: none; margin-left: auto; background: none; border: 0; width: 36px; height: 36px; cursor: pointer; }
.burger span { display: block; height: 2px; margin: 6px 4px; background: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; padding: 10px 16px; font-weight: 700; font-size: 14px; cursor: pointer; border: 0; font-family: inherit; white-space: nowrap; }
.btn.red { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(210, 5, 5, .22); }
.btn.ghost { border: 1.5px solid var(--accent); color: var(--accent); background: #fff; }
.btn.white { background: #fff; color: var(--brand-deep); }
.btn.outline { border: 1.5px solid #fff; color: #fff; }
.btn.block { display: flex; width: 100%; }
.btn:hover { filter: brightness(1.05); }

.hero { position: relative; min-height: 520px; display: flex; align-items: center; color: #fff;
  background: url(img/hero-gia-dinh.jpg) right 28% / auto 125% no-repeat, linear-gradient(90deg, #912314 0%, #b41712 55%, #c0392b 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(145, 35, 20, 1) 0%, rgba(145, 35, 20, .92) 38%, rgba(145, 35, 20, 0) 62%); }
.hero .wrap { position: relative; width: 100%; }
.hero-text { max-width: 600px; padding: 56px 0; }
.pill { display: inline-block; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); padding: 5px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.hero h1 { color: #fff; font-size: 38px; margin: 18px 0 14px; }
.hero p { font-size: 16px; opacity: .95; }
.hero-cta { display: flex; gap: 12px; margin: 26px 0 30px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stats div { background: rgba(255, 255, 255, .12); border-radius: 12px; padding: 10px 12px; }
.stats b { display: block; font-size: 22px; }
.stats span { font-size: 12px; opacity: .9; }

.sec { padding: 64px 0; }
.sec.alt { background: #f6f6f7; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; background: #f1f1f3; padding: 4px; border-radius: 12px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 8px 14px; border-radius: 9px; font: 600 13.5px Inter, sans-serif; color: var(--ink-soft); cursor: pointer; }
.tabs button.on { background: #fff; color: var(--accent); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.search { display: flex; gap: 10px; margin-bottom: 20px; }
.search input, .search select { height: 44px; border: 1.5px solid #dcdde2; border-radius: 10px; padding: 0 14px; font: 14px Inter, sans-serif; background: #fff; }
.search input { flex: 1; }
.search input:focus, .search select:focus { outline: none; border-color: var(--accent); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: #fff; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.proj { cursor: pointer; transition: transform .15s; display: flex; flex-direction: column; }
.proj:hover { transform: translateY(-3px); }
.ph { height: 190px; background: center / cover; position: relative; }
.ph .tag, .mh .tag { position: absolute; top: 12px; left: 12px; }
.pb { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pb h3 { font-size: 17px; }
.loc { color: var(--ink-soft); font-size: 13px; }
.kv { display: flex; flex-wrap: wrap; gap: 6px; }
.kv span { background: #f4f4f6; border-radius: 8px; padding: 3px 8px; font-size: 12.5px; font-weight: 600; }
.when { font-size: 13.5px; }
.reg { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 6px; flex: 1; }
.empty { color: var(--ink-soft); padding: 30px 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.tg { background: #e5f6ec; color: #1f7a45; } .ty { background: #fff4d6; color: #8a5a00; }
.tn { background: #eef0f3; color: var(--ink-soft); } .tr { background: #fde8e7; color: #b41712; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.steps li { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 18px; position: relative; }
.steps i { font-style: normal; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.steps b { display: block; margin-bottom: 4px; }
.steps p { font-size: 13.5px; color: var(--ink-soft); }

.two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: start; }
.docs { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.docs li { display: flex; align-items: center; gap: 12px; border: 1px solid #ececf0; border-radius: 12px; padding: 12px 14px; }
.docs .ic { font-size: 22px; }
.docs small { display: block; color: var(--ink-soft); font-size: 12.5px; }
.docs li > div { flex: 1; }
.apt img { height: 230px; width: 100%; object-fit: cover; }
.apt-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.apt-body h3 { font-size: 19px; }
.apt-body p { color: var(--ink-soft); font-size: 14px; }

.table-wrap { overflow-x: auto; background: #fff; border-radius: 16px; box-shadow: var(--shadow); }
.results { width: 100%; border-collapse: collapse; font-size: 14px; }
.results th { text-align: left; background: #f6f6f7; padding: 12px 16px; font-weight: 600; color: var(--ink-soft); }
.results td { padding: 14px 16px; border-top: 1px solid var(--line); }
.lnk { color: var(--accent); font-weight: 600; }

.faq { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.faq details { border: 1px solid #ececf0; border-radius: 12px; padding: 14px 16px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin-top: 8px; color: var(--ink-soft); font-size: 14px; }
.cta-box { padding: 26px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; background: var(--soft); box-shadow: none; border: 1px solid #f6d3d0; }
.cta-box p { color: var(--ink-soft); }

.foot { background: #2a1512; color: #f0e3e1; padding: 40px 0 20px; font-size: 14px; }
.foot .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.foot .flogo { height: 40px; margin-bottom: 10px; }
.foot b { color: #fff; display: block; margin-bottom: 8px; }
.foot a:hover { text-decoration: underline; }
.foot .fine { display: block; margin-top: 26px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12px; opacity: .7; }

.modal { position: fixed; inset: 0; z-index: 50; background: rgba(20, 10, 8, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-box { background: #fff; border-radius: 18px; max-width: 560px; width: 100%; max-height: 92vh; overflow: auto; position: relative; }
.modal-box .x { position: absolute; top: 10px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); font-size: 22px; cursor: pointer; }
.mh { height: 200px; background: center / cover; position: relative; }
#modal-body h3 { font-size: 21px; padding: 18px 20px 6px; }
.kvt { width: calc(100% - 40px); margin: 0 20px; border-collapse: collapse; font-size: 14px; }
.kvt th { text-align: left; font-weight: 500; color: var(--ink-soft); padding: 7px 10px 7px 0; width: 38%; vertical-align: top; }
.kvt td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.note { margin: 14px 20px; background: var(--soft); border-left: 4px solid var(--brand-deep); padding: 10px 12px; border-radius: 6px; font-size: 13.5px; }
.mact { display: flex; gap: 10px; padding: 0 20px 20px; flex-wrap: wrap; }

@media (max-width: 1000px) {
  .menu { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 14px 24px; gap: 14px; box-shadow: var(--shadow); }
  .menu.show { display: flex; }
  .burger { display: block; }
  .acts .ghost { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .topbar .right { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hide-sm, .chip { display: none; }
  .acts { display: none; }
  .hero { background: linear-gradient(180deg, rgba(145,35,20,0) 55%, #912314 78%), url(img/hero-gia-dinh.jpg) center top / 100% auto no-repeat, #912314; min-height: 0; padding-top: 300px; }
  .hero .wrap { background: #912314; }
  .hero::before { display: none; }
  .hero h1 { font-size: 30px; }
  .hero-text { padding: 36px 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .grid, .steps { grid-template-columns: 1fr; }
  .search { flex-direction: column; }
  h2 { font-size: 24px; }
  .foot .wrap { grid-template-columns: 1fr; }
  .topbar .right { font-size: 12px; }
}

/* Mock sign-in / sign-up (anh Thạch 11/11: no link to /user/login). */
.auth { padding: 22px 20px 18px; }
.auth h3 { padding: 0 0 4px !important; }
.auth .sub { color: #666; font-size: 14px; margin-bottom: 14px; }
.auth .fl { display: block; margin-bottom: 12px; }
.auth .fl span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.auth .fl input { width: 100%; height: 44px; border: 1.5px solid #dcdde2; border-radius: 10px; padding: 0 14px; font: 14px Inter, sans-serif; }
.auth .fl input:focus { outline: none; border-color: var(--accent); }
.auth .btn.vneid { background: #fff; border: 1.5px solid #c8102e; color: #c8102e; }
.auth .or { text-align: center; color: #999; font-size: 13px; margin: 14px 0; border-top: 1px solid #eee; line-height: 0; }
.auth .or span { background: #fff; padding: 0 10px; }
.auth .sw { text-align: center; font-size: 14px; margin-top: 12px; }
.auth .sw a { color: var(--accent); font-weight: 700; }

/* Supervisor accounts, mock (anh Quyết 11/11/2026). */
.sup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sup-card { padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.sup-card ul { padding-left: 18px; color: var(--ink-soft); font-size: 14px; flex: 1; }
.sup-card li { margin-bottom: 6px; }
.sup-ic { font-size: 30px; width: 54px; height: 54px; border-radius: 14px; background: var(--soft); display: flex; align-items: center; justify-content: center; }
.auth select { width: 100%; height: 44px; border: 1.5px solid #dcdde2; border-radius: 10px; padding: 0 12px; font: 14px Inter, sans-serif; background: #fff; }
.btn.sm { padding: 6px 10px; font-size: 12.5px; border-radius: 8px; }
.sup-app { position: fixed; inset: 0; z-index: 60; background: #f4f4f6; overflow: auto; }
.sup-app[hidden] { display: none; }
.sp-top { background: var(--brand); color: #fff; position: sticky; top: 0; z-index: 2; }
.sp-top .wrap { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.sp-top img { height: 34px; }
.sp-who { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.sp-who small { opacity: .85; font-size: 12px; }
.sp-main { padding-top: 18px; padding-bottom: 30px; }
.sp-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.sp-tabs button { border: 1.5px solid #dcdde2; background: #fff; border-radius: 20px; padding: 7px 14px; font: 600 13px Inter, sans-serif; cursor: pointer; }
.sp-tabs button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.sp-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.sp-kpi div, .sp-box { background: #fff; border-radius: 14px; box-shadow: var(--shadow); }
.sp-kpi div { padding: 14px 16px; }
.sp-kpi b { display: block; font-size: 24px; color: var(--brand-deep); }
.sp-kpi span { font-size: 13px; color: var(--ink-soft); }
.sp-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.sp-box { padding: 16px; }
.sp-box .table-wrap { box-shadow: none; border: 1px solid var(--line); }
.sp-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.sp-act { white-space: nowrap; }
.sp-act .btn { margin-right: 4px; }
.sp-no { background: #eef0f3; color: var(--ink-soft); }
.sp-room { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.sp-room div { background: var(--soft); border-radius: 10px; padding: 10px; text-align: center; }
.sp-room b { display: block; font-size: 18px; color: var(--brand-deep); }
.sp-room span { font-size: 11.5px; color: var(--ink-soft); }
.sp-log { list-style: none; padding: 0; margin: 0 0 12px; font-size: 13px; border-left: 2px solid var(--line); }
.sp-log li { padding: 5px 0 5px 12px; }
.sp-log time { font-weight: 700; color: var(--brand); margin-right: 8px; }
.sp-signed { display: block; text-align: center; padding: 10px; }
@media (max-width: 860px) {
  .sup-grid, .sp-cols { grid-template-columns: 1fr; }
  .sp-kpi { grid-template-columns: 1fr 1fr; }
  .sp-top img { display: none; }
}
.sp-box .results td, .sp-box .results th { white-space: nowrap; padding: 10px 12px; }
.sp-top .btn.outline { background: transparent; }
.menu a { white-space: nowrap; }
.sp-cols > * { min-width: 0; }
@media (max-width: 860px) { .sp-cols { grid-template-columns: minmax(0, 1fr); } }

/* Slogan: each line kept whole, opening quote hung so both lines start flush (anh Quyết 11/11/2026). */
.hero h1.slogan { font-size: clamp(22px, 5.4vw, 38px); }
.slogan span { display: block; white-space: nowrap; }
.slogan span:first-child { text-indent: -.42em; }
