/* =========================================================================
   NOXH Đại Thành — Sơn Đồng, Hoài Đức, Hà Nội — landing page
   Bảng màu: navy #12233f / vàng đồng #c9a227 / nền kem #f7f5f1
   ========================================================================= */

:root {
  --navy: #12233f;
  --navy-2: #1c3560;
  --navy-3: #2a4a7f;
  --gold: #c9a227;
  --gold-soft: #e5c869;
  --ink: #16202f;
  --muted: #6a7688;
  --line: #e3e1dc;
  --cream: #f7f5f1;
  --white: #fff;
  --ok: #16794a;
  --warn: #b26a00;
  --bad: #a3282f;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 3px rgba(18, 35, 63, .07), 0 6px 18px rgba(18, 35, 63, .05);
  --shadow: 0 10px 34px rgba(18, 35, 63, .12);
  --shadow-lg: 0 24px 60px rgba(18, 35, 63, .2);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --header-h: 76px;
  --wrap: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy-2); text-decoration: none; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

/* Chỉ dành cho trình đọc màn hình và bot tìm kiếm — không hiển thị */
.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;
}

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: #dfe6f2; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--gold); }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ------------------------------- BUTTONS -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 28px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s, color .18s, border-color .18s;
  white-space: nowrap; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--gold); color: #241c00; box-shadow: 0 8px 22px rgba(201, 162, 39, .35); }
.btn--primary:hover { background: var(--gold-soft); color: #241c00; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .08); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--sm { padding: 10px 20px; font-size: .87rem; }
.btn--block { width: 100%; }

/* ------------------------------- HEADER --------------------------------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 90; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s, background .25s;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 26px; width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.header__logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header__logo img { height: 42px; width: auto; }
.header__logo span { display: none; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 9px 13px; border-radius: 8px; font-size: .93rem; font-weight: 500; color: var(--ink);
}
.nav__link:hover, .nav__item.is-open > .nav__link { background: var(--cream); color: var(--navy); }
.nav__link .caret { font-size: .6rem; opacity: .6; transition: transform .2s; }
.nav__item.is-open .caret { transform: rotate(180deg); }

.nav__item { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 320px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 10px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s ease;
}
.nav__item.is-open .dropdown, .nav__item:hover .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink); }
.dropdown a:hover { background: var(--cream); }
.dropdown strong { display: block; font-weight: 600; font-size: .93rem; color: var(--navy); }
.dropdown small { color: var(--muted); font-size: .8rem; }

.header__cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header__phone { font-weight: 700; color: var(--navy); font-size: .95rem; white-space: nowrap; }
.header__phone small { display: block; font-weight: 500; font-size: .68rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; padding: 0; }
.burger span, .burger span::before, .burger span::after {
  display: block; width: 18px; height: 2px; background: var(--navy); margin-inline: auto; position: relative; border-radius: 2px;
}
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }

/* ------------------------------- HERO ----------------------------------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; overflow: hidden; background: var(--navy); }
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 8s linear; }
.hero__slide.is-active img { transform: scale(1); }
.hero__slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8, 18, 36, .88) 0%, rgba(8, 18, 36, .58) 45%, rgba(8, 18, 36, .18) 100%);
}

/* Banner dạng poster: ảnh đã có sẵn tiêu đề, số liệu và hotline.
   - contain thay vì cover: cover sẽ cắt mất tiêu đề trên và hotline dưới,
     vì hero cao hơn tỉ lệ 16:9 của ảnh trên màn hình rộng.
   - padding chừa chỗ cho header cố định phía trên và thanh dots phía dưới.
   - bỏ lớp phủ tối vì không có chữ của website đè lên nữa. */
/* padding-bottom 116px = chiều cao thanh dots/mũi tên (~66px) + padding đáy của
   .hero__inner (46px) + 4px dư, để poster không bị thanh điều hướng đè lên. */
.hero__slide--poster { padding: calc(var(--header-h) + 16px) 20px 116px; }
.hero__slide--poster img { object-fit: contain; transform: none; }
.hero__slide--poster.is-active img { transform: none; }
.hero__slide--poster::after { background: none; }

/* Slide ẩn vẫn nằm chồng lên slide đang hiện (opacity 0 chứ không phải display
   none) nên nếu không chặn con trỏ thì bấm vào slide 1 lại trúng slide 3. */
.hero__slide { pointer-events: none; }
.hero__slide.is-active { pointer-events: auto; }
.hero__slide.is-zoomable { cursor: zoom-in; }
.hero__slide.is-zoomable:focus-visible { outline: 3px solid var(--gold); outline-offset: -6px; }
.hero__inner { position: relative; z-index: 2; width: min(100% - 40px, var(--wrap)); margin-inline: auto; padding: calc(var(--header-h) + 60px) 0 46px; }
.hero__content { max-width: 660px; color: #fff; }
.hero__content .eyebrow { color: var(--gold-soft); }
/* Tiêu đề banner là H2 (tên dự án, xoay vòng) nhưng vẫn to như H1 —
   H1 thật của trang chủ là tiêu đề tĩnh .sr-only trong index.html. */
.hero__content h1,
.hero__content .hero__title { color: #fff; margin-bottom: 18px; text-shadow: 0 2px 30px rgba(0, 0, 0, .3); }
.hero__content .hero__title { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.hero__content p { font-size: clamp(1rem, 1.6vw, 1.16rem); color: #e2e8f3; max-width: 560px; }
.hero__content strong { color: var(--gold-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero__bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 22px; margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .2); }
.hero__dots { display: flex; gap: 10px; }
.hero__dot { width: 34px; height: 4px; border-radius: 3px; border: 0; padding: 0; background: rgba(255, 255, 255, .3); cursor: pointer; transition: background .2s; }
.hero__dot.is-active { background: var(--gold); }
.hero__count { color: rgba(255, 255, 255, .7); font-size: .85rem; font-variant-numeric: tabular-nums; }
.hero__arrows { margin-left: auto; display: flex; gap: 8px; }
.hero__arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; font-size: 1rem; transition: background .2s, color .2s; }
.hero__arrow:hover { background: #fff; color: var(--navy); }

/* --------------------------- QUICK STATS STRIP -------------------------- */
.strip { background: var(--navy); color: #fff; }
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip__item { padding: 30px 24px; border-left: 1px solid rgba(255, 255, 255, .12); }
.strip__item:first-child { border-left: 0; }
.strip__item b { display: block; font-family: var(--serif); font-size: 2rem; color: var(--gold-soft); line-height: 1.1; }
.strip__item span { font-size: .85rem; color: #b9c4d6; letter-spacing: .04em; }

/* ------------------------------- VIDEO ---------------------------------- */
.videoblock { display: grid; grid-template-columns: 1.15fr .85fr; gap: 46px; align-items: center; }
.videoblock__frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--navy); aspect-ratio: 16 / 9; }
.videoblock__frame img { width: 100%; height: 100%; object-fit: cover; }
.videoblock__frame iframe, .videoblock__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.videoblock__play {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(180deg, rgba(9, 19, 38, .25), rgba(9, 19, 38, .6)); border: 0; cursor: pointer; color: #fff;
}
.videoblock__play i {
  width: 78px; height: 78px; border-radius: 50%; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255, 255, 255, .6); display: grid; place-items: center; font-size: 1.4rem; font-style: normal;
  transition: transform .2s, background .2s;
}
.videoblock__play:hover i { transform: scale(1.08); background: var(--gold); border-color: var(--gold); color: #241c00; }
.videoblock__play em { font-style: normal; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; }
.videoblock__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 28px 0; }
.videoblock__stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.section--navy .videoblock__stat { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.videoblock__stat b { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--gold-soft); }
.videoblock__stat span { font-size: .84rem; color: #b9c4d6; }
.videoblock .btnrow { display: flex; flex-wrap: wrap; gap: 12px; }

/* ----------------------------- SERVICE CARDS ---------------------------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
}
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.service__icon { width: 54px; height: 54px; border-radius: 13px; background: var(--cream); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 18px; }
.service h3 { margin-bottom: 8px; }
.service p { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.service a { font-weight: 600; font-size: .9rem; color: var(--navy-2); }
.service a::after { content: ' →'; }

/* ---------------------------- PROJECT CARD ------------------------------ */
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 32px; }
.filter {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font: inherit; font-size: .88rem; font-weight: 500; color: var(--muted); cursor: pointer; transition: all .18s;
}
.filter:hover { border-color: var(--navy); color: var(--navy); }
.filter.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform .24s ease, box-shadow .24s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--navy); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.06); }
.card__tag {
  position: absolute; top: 14px; left: 14px; padding: 6px 13px; border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .04em; background: #fff; color: var(--navy);
}
.card__tag--hot { background: var(--bad); color: #fff; }
.card__tag--sale { background: var(--gold); color: #241c00; }
.card__tag--new { background: var(--ok); color: #fff; }
.card__tag--soon { background: var(--navy); color: #fff; }
.card__price {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 32px 16px 13px; color: #fff;
  background: linear-gradient(transparent, rgba(8, 18, 36, .85));
  font-family: var(--serif); font-size: 1.22rem;
}
.card__price small { display: block; font-family: var(--sans); font-size: .76rem; opacity: .82; font-weight: 500; }
.card__body { padding: 22px 22px 0; flex: 1; }
.card__loc { font-size: .84rem; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.card h3 { font-size: 1.35rem; margin-bottom: 8px; }
.card__short { font-size: .92rem; color: var(--muted); }
.card__specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius-sm); overflow: hidden; margin-top: 18px; }
.card__spec { background: var(--cream); padding: 11px 8px; text-align: center; }
.card__spec b { display: block; font-size: .9rem; color: var(--navy); }
.card__spec span { font-size: .72rem; color: var(--muted); }
.card__chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.chip { font-size: .76rem; padding: 5px 11px; border-radius: 999px; background: var(--cream); color: var(--navy-2); border: 1px solid var(--line); }
.card__foot { display: flex; gap: 10px; padding: 20px 22px 22px; }
.card__foot .btn { flex: 1; }

/* -------------------------------- TABLES -------------------------------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.tab {
  padding: 13px 22px; border: 0; background: none; font: inherit; font-weight: 600; font-size: .95rem;
  color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--navy); }
.tab.is-active { color: var(--navy); border-bottom-color: var(--gold); }
.tabpanel { display: none; }
.tabpanel.is-active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .93rem; }
table.data thead th {
  background: var(--navy); color: #fff; text-align: left; padding: 15px 18px; font-weight: 600; font-size: .84rem;
  letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
table.data tbody td { padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: middle; }
table.data tbody tr:nth-child(even) { background: #fbfaf8; }
table.data tbody tr:hover { background: #f2f6fd; }
table.data td:first-child { font-weight: 600; color: var(--navy); }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data .em { color: var(--bad); font-weight: 700; }
table.data .good { color: var(--ok); font-weight: 600; }
.tablenote { font-size: .84rem; color: var(--muted); margin-top: 12px; font-style: italic; }

.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .76rem; font-weight: 600; }
.badge--ok { background: #e6f4ec; color: var(--ok); }
.badge--hold { background: #fdf3e2; color: var(--warn); }
.badge--sold { background: #f2f3f5; color: #8b93a1; }

/* ------------------------------- GALLERY -------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery button { padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; }
.gallery button:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, filter .3s; }
.gallery button:hover img { transform: scale(1.05); filter: brightness(1.06); }

/* ------------------------------- ARTICLES ------------------------------- */
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .22s, box-shadow .22s; }
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post__media { aspect-ratio: 3 / 2; overflow: hidden; }
.post__media img { width: 100%; height: 100%; object-fit: cover; }
.post__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post__meta { display: flex; gap: 12px; font-size: .78rem; color: var(--muted); margin-bottom: 10px; }
.post__meta b { color: var(--gold); text-transform: uppercase; letter-spacing: .08em; }
.post h3 { font-size: 1.12rem; }
.post p { font-size: .91rem; color: var(--muted); flex: 1; }
.post a.more { font-weight: 600; font-size: .88rem; }

/* -------------------------------- BOOKING ------------------------------- */
.booking { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.booking__aside { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-3) 100%); color: #dfe6f2; padding: clamp(30px, 4vw, 48px); }
.booking__aside h2 { color: #fff; }
.booking__aside .eyebrow { color: var(--gold-soft); }
.booking__list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; }
.booking__list li { display: flex; gap: 13px; font-size: .93rem; }
.booking__list i { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: rgba(201, 162, 39, .22); color: var(--gold-soft); display: grid; place-items: center; font-style: normal; font-size: .8rem; }
.booking__contact { margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .92rem; }
.booking__contact a { color: var(--gold-soft); font-weight: 600; }

.booking__form { padding: clamp(30px, 4vw, 48px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field label .req { color: var(--bad); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: .95rem; color: var(--ink); background: #fff; transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(42, 74, 127, .12); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--bad); }
.field textarea { min-height: 92px; resize: vertical; }
.field .err { display: none; color: var(--bad); font-size: .8rem; margin-top: 5px; }
.field.has-err .err { display: block; }
.field .hint { font-size: .78rem; color: var(--muted); margin-top: 5px; }
.fieldrow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--muted); margin: 6px 0 20px; }
.check input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--navy); }
.formmsg { display: none; padding: 14px 16px; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 18px; }
.formmsg.is-on { display: block; }
.formmsg--ok { background: #e6f4ec; color: #0f5c37; border: 1px solid #bfe3ce; }
.formmsg--bad { background: #fdecec; color: #8f2027; border: 1px solid #f3c9cb; }
.formmsg--info { background: #eef3fc; color: #1c3560; border: 1px solid #cfdcf3; }

/* -------------------------------- FOOTER -------------------------------- */
.footer { background: #0d1a2e; color: #9fadc2; font-size: .92rem; padding: clamp(50px, 7vw, 80px) 0 0; }
.footer h4 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.footer__logo { background: #fff; border-radius: 10px; padding: 9px 12px; display: inline-block; margin-bottom: 18px; }
.footer__logo img { height: 38px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer a { color: #9fadc2; }
.footer a:hover { color: var(--gold-soft); }
.footer dl { margin: 0; display: grid; gap: 12px; }
.footer dt { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: #6c7c94; }
.footer dd { margin: 3px 0 0; color: #c6d1e0; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: .84rem; }
.footer__disclaimer { background: rgba(255, 255, 255, .04); border-radius: var(--radius-sm); padding: 16px 18px; font-size: .8rem; line-height: 1.6; margin-bottom: 26px; }

/* ------------------------------ LIGHTBOX -------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6, 12, 24, .93); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 88vh; object-fit: contain; border-radius: 8px; }
.lightbox__close { position: absolute; top: 22px; right: 24px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.3rem; cursor: pointer; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.2rem; cursor: pointer; }
.lightbox__nav--prev { left: 20px; } .lightbox__nav--next { right: 20px; }

/* --------------------------- DETAIL PAGE -------------------------------- */
.pagehero { position: relative; min-height: 480px; display: flex; align-items: flex-end; background: var(--navy); overflow: hidden; }
.pagehero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pagehero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 18, 36, .9), rgba(8, 18, 36, .45)); }
.pagehero__inner { position: relative; z-index: 2; width: min(100% - 40px, var(--wrap)); margin-inline: auto; padding: calc(var(--header-h) + 60px) 0 44px; color: #fff; }
.pagehero h1 { color: #fff; margin-bottom: 12px; }
.crumbs { font-size: .85rem; color: rgba(255, 255, 255, .75); margin-bottom: 16px; }
.crumbs a { color: rgba(255, 255, 255, .75); }
.crumbs a:hover { color: var(--gold-soft); }
.pagehero__meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 20px; font-size: .95rem; color: #dbe3f0; }
.pagehero__meta b { color: var(--gold-soft); }

.detail { display: grid; grid-template-columns: 1fr 360px; gap: 46px; align-items: start; }
.prose h2 { font-size: 1.7rem; margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: #43506a; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 26px 0; }
.specs > div { background: #fff; padding: 17px 20px; }
.specs dt { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 4px 0 0; font-weight: 600; color: var(--navy); }

.aside { position: sticky; top: calc(var(--header-h) + 22px); display: grid; gap: 20px; }
.pricebox { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; box-shadow: var(--shadow-sm); }
.pricebox .from { font-size: .8rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.pricebox .big { font-family: var(--serif); font-size: 2.1rem; color: var(--navy); line-height: 1.1; margin: 4px 0 2px; }
.pricebox .per { color: var(--gold); font-weight: 600; font-size: .95rem; }
.pricebox ul { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 11px; font-size: .9rem; }
.pricebox ul li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 9px; }
.pricebox ul li span { color: var(--muted); }
.pricebox ul li b { color: var(--navy); text-align: right; }
.pricebox .btn { margin-bottom: 10px; }

.plan { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.plan__img { background: var(--cream); padding: 18px; display: grid; place-items: center; }
.plan__info { padding: 26px; }
.plan__info h3 { margin-bottom: 6px; }
.plan__badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 16px; }
.plan__price { font-family: var(--serif); font-size: 1.5rem; color: var(--navy); }
.plan__note { font-size: .88rem; color: var(--muted); }

/* ---------------- TRANG CHI TIẾT CĂN HỘ THƯƠNG MẠI --------------------- */
/* Bản vẽ mặt bằng phải thấy đủ khung, không được crop — nên dùng
   height:auto thay cho object-fit:cover như ở .gallery. */
.layoutplan { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 16px; }
.layoutplan button { display: block; width: 100%; border: 0; padding: 0; background: none; cursor: zoom-in; }
.layoutplan img { width: 100%; height: auto; }

.unitgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.unitcard {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.unitcard:hover { box-shadow: var(--shadow); border-color: #d6d3cc; }
.unitcard__head { display: flex; align-items: baseline; gap: 12px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.unitcard__code { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--navy); }
.unitcard__type { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.unitcard__media { background: var(--cream); padding: 12px; }
.unitcard__media button { display: block; width: 100%; border: 0; padding: 0; background: none; cursor: zoom-in; }
.unitcard__media img { width: 100%; height: auto; border-radius: var(--radius-sm); background: #fff; }
.unitcard__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 20px 18px; }
.unitcard__area { margin-left: auto; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.unitcard.is-hidden { display: none; }

@media (max-width: 780px) { .unitgrid { grid-template-columns: 1fr; } }

.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 80; display: none;
  background: #fff; border-top: 1px solid var(--line); padding: 10px 16px;
  gap: 10px; box-shadow: 0 -6px 20px rgba(18, 35, 63, .1);
}
.sticky-cta .btn { flex: 1; }

/* ------------------------------ REVEAL ANIM ----------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ----------------------------- RESPONSIVE ------------------------------- */
/* khoảng 900 - 1200px: bỏ hotline chữ để thanh nav không bị xuống dòng */
@media (max-width: 1200px) {
  .header__phone { display: none; }
  .nav__link { padding: 9px 10px; font-size: .89rem; }
  .header__inner { gap: 16px; }
}

@media (max-width: 1080px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: 1fr; }
  .aside { position: static; grid-template-columns: repeat(2, 1fr); }
  .videoblock { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .header__phone { display: none; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px 20px 22px; box-shadow: var(--shadow); display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { padding: 13px 12px; justify-content: space-between; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 2px 0 8px 12px; padding: 0 0 0 8px; display: none; min-width: 0; }
  .nav__item.is-open .dropdown { display: block; }
  .strip__grid { grid-template-columns: repeat(2, 1fr); }
  .strip__item:nth-child(3) { border-left: 0; }
  .booking { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery button:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
  .plan { grid-template-columns: 1fr; }
  .sticky-cta { display: flex; }
  body.has-sticky { padding-bottom: 76px; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .specs, .videoblock__stats, .fieldrow, .aside { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .hero { min-height: 88vh; }
  .hero__actions .btn { width: 100%; }
  .card__foot { flex-direction: column; }
  .header__logo img { height: 34px; }
  .strip__item { padding: 22px 16px; }
  .strip__item b { font-size: 1.6rem; }
  .tab { padding: 11px 14px; font-size: .88rem; }
}
