/* =========================================================
   TRUONG NGHIA ARCHITECTURE
   Hệ thiết kế: đen tuyền, chữ trắng, tối giản, uppercase.
   ========================================================= */

:root {
  --black: #000000;
  --ink: #0b0b0b;
  --ink-2: #141413;
  --line: rgba(255, 255, 255, 0.2);
  --line-strong: rgba(255, 255, 255, 0.42);
  --white: #ffffff;
  --grey: #a9a9a9;
  --grey-2: #e2e0db;
  --sand: #c9bfa9; /* nhấn rất tiết chế, dùng cho gạch chân & số liệu */

  /* Libertinus Math chỉ có một trọng lượng (400) và không có italic —
     mọi khai báo font-weight nhẹ hơn sẽ hiển thị ở 400. */
  --serif: "Libertinus Math", "Linux Libertine", "Times New Roman", Times, serif;
  --sans: "Libertinus Math", "Linux Libertine", "Times New Roman", Times, serif;

  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1320px;
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.85;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

p {
  margin: 0 0 1.2em;
}

p:last-child {
  margin-bottom: 0;
}

::selection {
  background: var(--white);
  color: var(--black);
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow {
  max-width: 980px;
}

/* ---------- Typographic helpers ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey);
}

.eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--line-strong);
}

.eyebrow--center::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--line-strong);
}

.display {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.lede {
  color: var(--grey-2);
  font-size: 17.5px;
  line-height: 2;
}

.muted {
  color: var(--grey);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 34px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--white);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.45s var(--ease), color 0.45s var(--ease),
    border-color 0.45s var(--ease);
}

.btn:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

.btn--ghost {
  padding: 0 0 8px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
}

.btn--ghost:hover {
  background: transparent;
  color: var(--white);
  border-bottom-color: var(--white);
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.5s var(--ease), height 0.5s var(--ease),
    border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck {
  height: 62px;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.header-inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo chữ */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font-family: var(--serif);
  font-size: 18.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.brand__sub {
  margin-top: 5px;
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--grey);
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap; /* không cho mục dài xuống 2 dòng */
  color: var(--grey-2);
  transition: color 0.35s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.45s var(--ease);
}

.nav__item:hover .nav__link,
.nav__link.is-active {
  color: var(--white);
}

.nav__item:hover .nav__link::after,
.nav__link.is-active::after {
  width: 100%;
}

.nav__caret {
  width: 7px;
  height: 7px;
  opacity: 0.6;
}

/* Dropdown */
.subnav {
  position: absolute;
  top: 100%;
  left: -22px;
  min-width: 246px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  background: rgba(0, 0, 0, 0.96);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
    visibility 0.35s;
}

.nav__item:hover .subnav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.subnav a {
  display: block;
  padding: 11px 24px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  transition: color 0.3s var(--ease), background 0.3s var(--ease),
    padding-left 0.3s var(--ease);
}

.subnav a:hover,
.subnav a.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  padding-left: 30px;
}

/* Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--grey);
}

.lang a {
  transition: color 0.3s var(--ease);
}

.lang a.is-active {
  color: var(--white);
}

.lang a:hover {
  color: var(--white);
}

.lang span {
  opacity: 0.35;
}

/* Nút menu mobile */
.burger {
  display: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 24px;
  height: 1px;
  margin: 6px auto;
  background: var(--white);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}

.burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menu tràn màn hình cho mobile */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px var(--gutter) 40px;
  background: var(--black);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 27px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mobile-nav .sub a {
  padding: 9px 0 9px 20px;
  border: 0;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--grey);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__media,
.bg-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img,
.bg-media img,
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media::after,
.bg-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.4) 45%,
    rgba(0, 0, 0, 0.78) 100%
  );
}

/* Biến thể AB — video nền cần lớp phủ tối hơn để chữ dễ đọc trên nền chuyển động */
.hero--video .hero__media::after {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.74) 0%,
    rgba(0, 0, 0, 0.55) 45%,
    rgba(0, 0, 0, 0.86) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding: var(--header-h) var(--gutter) 0;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 4.8vw, 60px);
  letter-spacing: 0.24em;
  line-height: 1.2;
  text-indent: 0.24em; /* bù letter-spacing để cân giữa */
}

.hero__rule {
  width: 1px;
  height: 62px;
  margin: 34px auto;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--line-strong),
    transparent
  );
}

.hero__tagline {
  font-size: clamp(12px, 1.5vw, 15px);
  font-weight: 300;
  letter-spacing: 0.52em;
  text-transform: uppercase;
  color: var(--grey-2);
  text-indent: 0.52em;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--grey);
}

.hero__scroll i {
  display: block;
  width: 1px;
  height: 46px;
  background: var(--line-strong);
  overflow: hidden;
  position: relative;
}

.hero__scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--white);
  animation: scrollDot 2.4s var(--ease) infinite;
}

@keyframes scrollDot {
  0% {
    transform: translateY(-100%);
  }
  60%,
  100% {
    transform: translateY(100%);
  }
}

/* =========================================================
   SECTION CHUNG
   ========================================================= */

.section {
  position: relative;
  padding-top: clamp(18px, 2.5vw, 35px);
  padding-bottom: clamp(72px, 10vw, 140px);
}

.section--tight {
  padding-top: clamp(14px, 1.75vw, 24px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

.section--dark {
  background: var(--ink);
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head__title {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 46px);
  font-weight: 300;
  letter-spacing: 0.2em;
}

.section-head__text {
  margin-top: 26px;
}

/* Khối tuyên ngôn có ảnh nền (Tầm nhìn / Sứ mệnh) */
.statement {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 520px;
  padding: clamp(64px, 8vw, 110px) 0;
  overflow: hidden;
}

.statement__inner {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.statement--right .statement__inner {
  margin-left: auto;
}

.statement__title {
  margin: 20px 0 26px;
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 300;
  letter-spacing: 0.24em;
}

.statement .bg-media img {
  transform: scale(1.04);
  transition: transform 1.6s var(--ease);
}

.statement:hover .bg-media img {
  transform: scale(1);
}

/* =========================================================
   LƯỚI DỰ ÁN
   ========================================================= */

.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.project {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  background: var(--ink);
  overflow: hidden;
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease), opacity 0.8s var(--ease);
}

.project::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.86) 0%,
    rgba(0, 0, 0, 0.18) 52%,
    rgba(0, 0, 0, 0.34) 100%
  );
  transition: opacity 0.7s var(--ease);
}

.project:hover img {
  transform: scale(1.09);
}

.project:hover::after {
  opacity: 0.72;
}

.project__body {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(24px, 3vw, 42px);
}

.project__cat {
  font-size: 11px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--grey);
}

.project__name {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(18px, 2.1vw, 27px);
  font-weight: 300;
  letter-spacing: 0.18em;
}

.project__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--grey-2);
  opacity: 0;
  transition: max-height 0.6s var(--ease), opacity 0.5s var(--ease),
    margin-top 0.6s var(--ease);
}

.project:hover .project__meta {
  max-height: 40px;
  margin-top: 14px;
  opacity: 1;
}

.project__meta span:not(:last-child)::after {
  content: "/";
  margin-left: 14px;
  opacity: 0.4;
}

/* =========================================================
   DỊCH VỤ
   ========================================================= */

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.services--three {
  grid-template-columns: repeat(3, 1fr);
}

.service {
  padding: clamp(32px, 4vw, 52px) clamp(22px, 2.6vw, 38px);
  background: var(--black);
  transition: background 0.55s var(--ease);
}

.service:hover {
  background: var(--ink-2);
}

.service__no {
  font-family: var(--serif);
  font-size: 14.5px;
  letter-spacing: 0.2em;
  color: var(--sand);
}

.service__title {
  margin: 20px 0 16px;
  font-size: 13.5px;
  letter-spacing: 0.26em;
}

.service__text {
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--grey);
}

/* =========================================================
   SỐ LIỆU
   ========================================================= */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.stat {
  padding: clamp(34px, 4vw, 54px) 20px;
  background: var(--black);
  text-align: center;
}

.stat__num {
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1;
}

.stat__num sup {
  font-size: 0.42em;
  vertical-align: super;
  color: var(--sand);
}

.stat__label {
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey);
}

/* =========================================================
   QUY TRÌNH
   ========================================================= */

.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(20px, 2.4vw, 34px);
}

.step {
  padding-top: 26px;
  border-top: 1px solid var(--line);
  transition: border-color 0.5s var(--ease);
}

.step:hover {
  border-top-color: var(--white);
}

.step__no {
  font-size: 11.5px;
  letter-spacing: 0.3em;
  color: var(--sand);
}

.step__title {
  margin: 16px 0 12px;
  font-size: 13px;
  letter-spacing: 0.22em;
}

.step__text {
  font-size: 15px;
  line-height: 1.9;
  color: var(--grey);
}

/* =========================================================
   CTA
   ========================================================= */

.cta {
  position: relative;
  padding: clamp(80px, 10vw, 150px) 0;
  text-align: center;
  overflow: hidden;
}

.cta__inner {
  position: relative;
  z-index: 2;
}

.cta__title {
  margin: 22px 0 34px;
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 50px);
  font-weight: 300;
  letter-spacing: 0.2em;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--black);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  padding: clamp(56px, 7vw, 92px) 0 clamp(40px, 5vw, 64px);
}

.footer-col__title {
  margin-bottom: 24px;
  font-size: 11.5px;
  letter-spacing: 0.32em;
  color: var(--grey);
}

.footer-col p,
.footer-col a {
  font-size: 15.5px;
  line-height: 2.05;
  color: var(--grey-2);
}

.footer-col a {
  display: block;
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-brand .brand {
  margin-bottom: 24px;
}

.footer-hotline {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 0.12em;
  color: var(--white);
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.socials a:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

.socials svg {
  width: 15px;
  height: 15px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 30px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}

/* =========================================================
   TRANG NỘI DUNG (page header)
   ========================================================= */

.page-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 56vh;
  padding: calc(var(--header-h) + 30px) 0 clamp(22px, 2.5vw, 36px);
  overflow: hidden;
}

.page-head__inner {
  position: relative;
  z-index: 2;
}

.page-head__title {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 62px);
  font-weight: 300;
  letter-spacing: 0.2em;
}

.crumbs {
  margin-top: 22px;
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--grey);
}

.crumbs a:hover {
  color: var(--white);
}

.crumbs span {
  margin: 0 10px;
  opacity: 0.45;
}

/* Bố cục 2 cột nội dung */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 84px);
  align-items: center;
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* =========================================================
   TRANG CHI TIẾT DỰ ÁN
   ========================================================= */

.page-head--project {
  min-height: 78vh;
}

/* Dải thông tin nhanh */
.facts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 2.6vw, 34px);
  background: var(--black);
}

.fact__label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey);
}

.fact__value {
  font-family: var(--serif);
  font-size: clamp(17px, 1.8vw, 21px);
  letter-spacing: 0.08em;
}

/* Bộ ảnh công trình */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(8px, 1vw, 14px);
}

.shot {
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}

.shot--wide {
  grid-column: 1 / -1;
}

.shot img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 1.4s var(--ease);
}

.shot--wide img {
  aspect-ratio: 16 / 7;
}

.shot:hover img {
  transform: scale(1.06);
}

.process--three {
  grid-template-columns: repeat(3, 1fr);
}

/* Chuyển dự án trước / sau */
.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.pager__link {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(28px, 3.4vw, 44px);
  background: var(--black);
  transition: background 0.5s var(--ease);
}

.pager__link--next {
  align-items: flex-end;
  text-align: right;
}

.pager__link:hover {
  background: var(--ink-2);
}

.pager__dir {
  font-size: 11.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey);
}

.pager__name {
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 25px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Bộ lọc danh mục */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.filter {
  padding: 11px 24px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--grey);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease),
    background 0.4s var(--ease);
}

.filter:hover {
  color: var(--white);
  border-color: var(--line-strong);
}

.filter.is-active {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

.projects--three {
  grid-template-columns: repeat(3, 1fr);
}

.project.is-hidden {
  display: none;
}

/* =========================================================
   TIN TỨC — DANH SÁCH BÀI VIẾT
   ========================================================= */

.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.post {
  display: flex;
  flex-direction: column;
  background: var(--black);
}

.post__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--ink);
}

.post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease);
}

.post:hover .post__media img {
  transform: scale(1.08);
}

.post__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
}

.post__meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--grey);
}

.post__meta-row span:not(:last-child)::after {
  content: "/";
  margin: 0 12px;
  opacity: 0.4;
}

.post__title {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.45;
  transition: color 0.35s var(--ease);
}

.post:hover .post__title {
  color: var(--grey-2);
}

.post__excerpt {
  flex: 1;
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--grey);
}

.post__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
}

.post__more svg {
  width: 13px;
  height: 13px;
  transition: transform 0.4s var(--ease);
}

.post:hover .post__more svg {
  transform: translateX(5px);
}

.post.is-hidden {
  display: none;
}

/* Bài viết nổi bật đầu trang */
.post--feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 48px;
}

.post--feature .post__media {
  aspect-ratio: auto;
}

.post--feature .post__body {
  justify-content: center;
  padding: clamp(30px, 4vw, 54px);
}

.post--feature .post__title {
  margin-top: 20px;
  font-size: clamp(22px, 2.8vw, 34px);
  letter-spacing: 0.08em;
}

.post--feature .post__excerpt {
  font-size: 15.5px;
}

/* Phân trang (Laravel pagination mặc định) */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-item .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--grey);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.page-item:not(.disabled):not(.active) .page-link:hover {
  color: var(--white);
  border-color: var(--line-strong);
}

.page-item.active .page-link {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

.page-item.disabled .page-link {
  color: var(--line-strong);
  border-color: var(--line);
  cursor: default;
}

/* =========================================================
   TIN TỨC — TRANG CHI TIẾT BÀI VIẾT
   ========================================================= */

.facts--article {
  grid-template-columns: repeat(4, 1fr);
}

.article-body {
  max-width: 760px;
  margin-inline: auto;
}

.article-body p {
  font-size: 17px;
  line-height: 2;
  color: var(--grey-2);
  margin-bottom: 1.5em;
}

.article-body h2 {
  margin: 58px 0 20px;
  font-family: var(--serif);
  font-size: clamp(21px, 2.6vw, 28px);
  font-weight: 300;
  letter-spacing: 0.1em;
}

.article-body h3 {
  margin: 40px 0 14px;
  font-size: 13.5px;
  letter-spacing: 0.2em;
  color: var(--white);
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.5em;
  padding-left: 22px;
  color: var(--grey-2);
  font-size: 16.5px;
  line-height: 1.95;
}

.article-body li {
  margin-bottom: 10px;
}

.article-body li::marker {
  color: var(--sand);
}

.article-body blockquote {
  margin: 40px 0;
  padding-left: 24px;
  border-left: 1px solid var(--line-strong);
  color: var(--grey-2);
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.03em;
}

.article-body figure {
  margin: 46px 0;
}

.article-body figure img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-body figcaption {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--grey);
  text-align: center;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.article-share__label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--grey);
}

.article-share a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}

.article-share a:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

.article-share svg {
  width: 15px;
  height: 15px;
}

/* Thẻ chuyên mục */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags a {
  padding: 9px 20px;
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.tags a:hover,
.tags a.is-active {
  color: var(--white);
  border-color: var(--line-strong);
}

/* Bảng giá */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}

.price-table th,
.price-table td {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.price-table th {
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--grey);
}

.price-table td:last-child,
.price-table th:last-child {
  text-align: right;
  white-space: nowrap;
}

.price-table tbody tr {
  transition: background 0.4s var(--ease);
}

.price-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

.table-scroll {
  overflow-x: auto;
}

/* Form liên hệ */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field--full {
  grid-column: 1 / -1;
}

/* Nút trong ô form không kéo giãn theo chiều ngang của grid */
.field .btn {
  align-self: flex-start;
}

.field label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--grey);
}

.field input,
.field textarea,
.field select {
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.04em;
  transition: border-color 0.4s var(--ease);
}

.field select option {
  background: var(--ink);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--white);
}

/* Liên hệ nổi — nâng lên, chừa khoảng trống tách khỏi nút "lên đầu trang" */
.floating {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

.floating a:hover {
  background: var(--white);
  color: var(--black);
}

.floating svg {
  width: 17px;
  height: 17px;
}

/* Logo thương hiệu là nét đặc nên cần chỉnh cỡ riêng để cân thị giác với
   các icon nét mảnh: chữ "Zalo" nằm ngang cần rộng, Messenger là khối tròn
   đặc nên phải nhỏ hơn mới không lấn át cả cột. */
.floating__brand--zalo svg {
  width: 21px;
  height: 21px;
}

.floating__brand--messenger svg {
  width: 17.5px;
  height: 17.5px;
}

/* Lên đầu trang — hình tròn, tách khỏi cụm nút liên hệ vuông phía trên */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease),
    background 0.4s var(--ease), color 0.4s var(--ease);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  background: var(--white);
  color: var(--black);
}

.back-to-top svg {
  width: 17px;
  height: 17px;
}

/* Modal liên hệ nhanh (mở từ các nút CTA) */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 48px 40px;
  background: var(--ink);
  border: 1px solid var(--line);
  transform: translateY(18px);
  transition: transform 0.45s var(--ease);
}

.modal-overlay.is-open .modal {
  transform: none;
}

.modal .form {
  grid-template-columns: 1fr;
  margin-top: 28px;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

.modal-close:hover {
  background: var(--white);
  color: var(--black);
}

.modal-close svg {
  width: 15px;
  height: 15px;
}

.modal-link {
  display: inline-block;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--grey);
  border-bottom: 1px solid var(--line);
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.modal-link:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

/* =========================================================
   HIỆU ỨNG XUẤT HIỆN KHI CUỘN
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__scroll i::after {
    animation: none;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Dải hẹp trước khi chuyển sang menu mobile: siết nav lại cho vừa một hàng */
@media (max-width: 1150px) {
  .nav {
    gap: 22px;
  }
  .nav__link {
    letter-spacing: 0.14em;
  }
  .header-inner {
    gap: 20px;
  }
}

@media (max-width: 1100px) {
  .services,
  .services--three,
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .process {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .projects--three,
  .posts {
    grid-template-columns: repeat(2, 1fr);
  }
  .facts,
  .facts--article {
    grid-template-columns: repeat(3, 1fr);
  }
  .process--three {
    grid-template-columns: repeat(3, 1fr);
  }
  .post--feature {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav,
  .header-actions .lang {
    display: none;
  }
  .burger {
    display: block;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .split__media img {
    aspect-ratio: 3 / 2;
  }
  .statement__inner {
    max-width: none;
  }
  .facts,
  .facts--article {
    grid-template-columns: repeat(2, 1fr);
  }
  .process--three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }
  .projects,
  .projects--three,
  .services,
  .services--three,
  .stats,
  .process,
  .footer-top,
  .form,
  .facts,
  .facts--article,
  .gallery,
  .pager,
  .posts {
    grid-template-columns: 1fr;
  }
  .pager__link--next {
    align-items: flex-start;
    text-align: left;
  }
  .project {
    aspect-ratio: 4 / 3;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .hero__title {
    letter-spacing: 0.16em;
    text-indent: 0.16em;
  }
  /* Cột nút nổi có tới 5 ô — thu nhỏ lại để bớt che nội dung trên màn hẹp */
  .floating a,
  .back-to-top {
    width: 40px;
    height: 40px;
  }
  .floating {
    right: 12px;
    bottom: 76px;
    gap: 8px;
  }
  .back-to-top {
    right: 12px;
    bottom: 12px;
  }
  .modal {
    padding: 44px 24px 32px;
  }
}
