/* Public website design system (VNM Constructions)
   Tokens are overridden at runtime from Website & Brand Settings (see layouts/site.php). */
:root {
  --vnm-orange: #F47721;
  --vnm-orange-rgb: 244, 119, 33;
  --vnm-orange-600: #d9620f;
  --vnm-navy: #102746;
  --vnm-navy-700: #0b1c33;
  --vnm-steel: #646B73;
  --vnm-ink: #18202b;
  --vnm-line: #e3e7ec;
  --vnm-bg: #ffffff;
  --vnm-soft: #f4f6f9;
  --radius: 12px;
  --btn-radius: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 39, 70, .06), 0 2px 8px rgba(16, 39, 70, .05);
  --shadow-md: 0 10px 30px -12px rgba(16, 39, 70, .25);
  --font-head: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font-family: var(--font-body); color: var(--vnm-ink); background: var(--vnm-bg); line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, .display { font-family: var(--font-head); color: var(--vnm-navy); letter-spacing: -.02em; line-height: 1.15; font-weight: 800; }
p { color: #3c4652; }
a { color: var(--vnm-navy); text-underline-offset: 3px; }
a:hover { color: var(--vnm-orange-600); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--vnm-orange); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 2000; background: var(--vnm-navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 12px; color: #fff; }
.text-steel { color: var(--vnm-steel) !important; }
.text-orange { color: var(--vnm-orange) !important; }
.bg-navy { background: var(--vnm-navy) !important; }
.bg-soft { background: var(--vnm-soft) !important; }

/* Buttons */
.btn { border-radius: var(--btn-radius); font-weight: 600; padding: .7rem 1.25rem; letter-spacing: .01em; transition: transform .15s ease, box-shadow .15s ease, background .15s; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.02rem; }
.btn-orange { background: var(--vnm-orange); color: #fff; border: 0; box-shadow: 0 8px 18px -8px rgba(var(--vnm-orange-rgb), .7); }
.btn-orange:hover, .btn-orange:focus { background: var(--vnm-orange-600); color: #fff; transform: translateY(-1px); }
.btn-navy { background: var(--vnm-navy); color: #fff; border: 0; }
.btn-navy:hover { background: var(--vnm-navy-700); color: #fff; }
.btn-outline-navy { border: 1.5px solid var(--vnm-navy); color: var(--vnm-navy); background: transparent; }
.btn-outline-navy:hover { background: var(--vnm-navy); color: #fff; }
.btn-ghost-light { border: 1.5px solid rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px); }
.btn-ghost-light:hover { background: #fff; color: var(--vnm-navy); }

/* Top strips */
.announce { background: var(--ann-bg, var(--vnm-orange)); color: var(--ann-fg, #fff); font-size: .9rem; font-weight: 500; position: relative; z-index: 1031; }
.announce[hidden] { display: none; }
.announce-in { display: flex; align-items: center; justify-content: center; gap: .75rem; min-height: 40px; padding-top: .4rem; padding-bottom: .4rem; position: relative; }
.announce-msg { margin: 0; color: inherit; text-align: center; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem .6rem; line-height: 1.4; padding: 0 2rem; }
.announce-msg .bi { font-size: 1rem; }
.announce-link { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.announce-link:hover { color: inherit; opacity: .85; }
.announce-close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: transparent; border: 0; color: inherit; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; opacity: .85; }
.announce-close:hover { background: rgba(255, 255, 255, .18); opacity: 1; }
/* Scrolling ticker */
.announce.is-scroll { padding-right: 44px; }
.ann-viewport { overflow: hidden; min-height: 40px; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%); }
.ann-track { display: flex; width: max-content; animation: ann-scroll var(--ann-dur, 30s) linear infinite; will-change: transform; }
.ann-group { display: flex; align-items: center; flex-shrink: 0; }
.ann-item { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; padding: .45rem 0; }
.ann-item .bi { font-size: 1rem; }
.ann-item .announce-link { margin-left: .35rem; }
.ann-sep { margin: 0 1.6rem; opacity: .6; }
.announce.is-scroll:hover .ann-track, .announce.is-scroll:focus-within .ann-track { animation-play-state: paused; }
@keyframes ann-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ann-track { animation: none !important; width: auto; }
  .ann-viewport { -webkit-mask-image: none; mask-image: none; }
  .ann-group { flex-wrap: wrap; justify-content: center; padding: 0 1rem; }
  .ann-group + .ann-group, .ann-group .ann-item ~ .ann-item, .ann-group .ann-sep { display: none; }
  .ann-item { white-space: normal; }
}
@media (max-width: 575.98px) { .announce { font-size: .82rem; } .announce-msg { display: block; padding: 0 1.8rem 0 0; text-align: left; } .announce-msg .bi { margin-right: .3rem; } .announce-link { margin-left: .4rem; } }
.contact-strip { background: var(--vnm-navy-700); color: #cfd6df; font-size: .85rem; }
.contact-strip a { color: #e7ebf0; text-decoration: none; }
.contact-strip a:hover { color: #fff; }

/* Header */
.site-header { background: rgba(255, 255, 255, .96); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--vnm-line); z-index: 1030; }
.site-header.is-sticky { position: sticky; top: 0; }
.site-header .navbar { min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { height: var(--logo-h, 44px); width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); color: var(--vnm-navy); font-size: 1.12rem; letter-spacing: -.01em; }
.brand-text small { color: var(--vnm-steel); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.brand-text strong { white-space: nowrap; font-weight: 800; font-size: 1.22rem; }
.brand-text strong em { font-style: normal; color: var(--vnm-orange); }
.brand-text small { margin-top: 3px; white-space: nowrap; }
.brand-text.on-dark strong { color: #fff; }
.brand-text.on-dark small { color: #9fb0c3; }
@media (max-width: 575.98px) {
  .brand { gap: .5rem; min-width: 0; }
  .brand-text strong { font-size: 1.02rem; }
  .brand-text small { font-size: .62rem; letter-spacing: .05em; }
}
.site-nav .nav-link { font-weight: 600; color: var(--vnm-navy); padding: .55rem .9rem !important; border-radius: 8px; font-size: .96rem; }
.site-nav .nav-link:hover { background: var(--vnm-soft); color: var(--vnm-navy); }
.site-nav .nav-link.active { color: var(--vnm-orange-600); }
.navbar-toggler { border: 0; padding: .5rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(var(--vnm-orange-rgb), .35); }

/* Hero */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--vnm-navy); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 28, 51, .2) 0%, rgba(11, 28, 51, .55) 45%, rgba(11, 28, 51, .92) 100%); }
.hero .container { position: relative; z-index: 2; padding-top: 7rem; padding-bottom: 4.5rem; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.2vw, 4.1rem); max-width: 16ch; }
.hero p.lead { color: #dbe2ea; max-width: 58ch; font-size: clamp(1.02rem, 1.6vw, 1.2rem); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--vnm-orange); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.hero .eyebrow { color: color-mix(in srgb, var(--vnm-orange) 55%, #fff); }
.demo-tag { position: absolute; z-index: 3; right: 12px; bottom: 12px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .7rem; padding: .2rem .5rem; border-radius: 6px; letter-spacing: .02em; }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin: .4rem 0 .8rem; }
.section-intro { color: var(--vnm-steel); max-width: 62ch; font-size: 1.05rem; }
.page-hero { background: linear-gradient(120deg, var(--vnm-navy) 0%, #183a66 100%); color: #fff; padding: 3.6rem 0 3rem; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; border: 40px solid rgba(var(--vnm-orange-rgb), .14); border-radius: 50%; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); }
.page-hero p { color: #cfd8e3; max-width: 60ch; }
.crumbs { font-size: .85rem; margin-bottom: .8rem; }
.crumbs a { color: #cfd8e3; text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span { color: #8fa1b7; margin: 0 .4rem; }

/* Cards */
.card-x { background: #fff; border: 1px solid var(--vnm-line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; height: 100%; transition: transform .2s ease, box-shadow .2s ease; }
.card-x:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.project-card .thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--vnm-soft); }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover .thumb img { transform: scale(1.04); }
.project-card .body { padding: 1.2rem 1.25rem 1.35rem; }
.project-card h3 { font-size: 1.18rem; margin: 0 0 .3rem; }
.project-card h3 a { text-decoration: none; color: var(--vnm-navy); }
.project-card h3 a::after { content: ""; position: absolute; inset: 0; }
.project-card { position: relative; }
.chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; background: var(--vnm-soft); color: var(--vnm-navy); letter-spacing: .02em; }
.chip-status { position: absolute; top: 12px; left: 12px; z-index: 2; background: #fff; box-shadow: var(--shadow-sm); }
.chip-status.completed { background: #e7f6ee; color: #136c3e; }
.chip-status.in_progress { background: #fff3e9; color: #a24b0c; }
.chip-status.upcoming { background: #e9f0fb; color: #1d4a8a; }
.meta-row { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--vnm-steel); font-size: .88rem; }
.progress-thin { height: 6px; border-radius: 99px; background: #e9edf2; overflow: hidden; }
.progress-thin > span { display: block; height: 100%; background: var(--vnm-orange); border-radius: 99px; }

.service-card { padding: 1.6rem; }
.icon-tile { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--vnm-orange-rgb), .12); color: var(--vnm-orange-600); font-size: 1.45rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.12rem; }

.process-step { position: relative; padding-left: 3.6rem; }
.process-step .num { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--vnm-navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--font-head); }
.process-step h3 { font-size: 1.05rem; margin-bottom: .25rem; }

/* About split */
.about-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; background: var(--vnm-soft); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-badge { position: absolute; left: 16px; bottom: 16px; background: var(--vnm-orange); color: #fff; padding: .9rem 1.1rem; border-radius: 12px; font-weight: 700; font-family: var(--font-head); box-shadow: var(--shadow-md); }

/* Stats */
.stat { text-align: center; }
.stat .v { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: #fff; }
.stat .l { color: #b8c4d3; font-size: .9rem; }

/* Gallery grid + lightbox */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery-item { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--vnm-soft); border: 0; padding: 0; cursor: zoom-in; width: 100%; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .cap { position: absolute; inset: auto 0 0 0; padding: .6rem .7rem; font-size: .78rem; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); text-align: left; }
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(8, 16, 28, .94); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 2rem 1rem; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 78vh; max-width: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox .lb-cap { color: #e3e8ee; margin-top: 1rem; text-align: center; max-width: 70ch; font-size: .95rem; }
.lightbox .lb-cap small { color: #9fb0c3; display: block; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; }
.lb-next { right: 16px; top: 50%; }

/* Project page */
.project-hero { position: relative; min-height: 460px; display: flex; align-items: flex-end; color: #fff; background: var(--vnm-navy); overflow: hidden; }
.project-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 28, 51, .1), rgba(11, 28, 51, .88)); }
.project-hero .container { position: relative; z-index: 2; padding: 6rem 1rem 2.5rem; }
.project-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.3rem); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); border: 1px solid var(--vnm-line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.facts > div { padding: 1rem 1.1rem; box-shadow: 1px 0 0 var(--vnm-line), 0 1px 0 var(--vnm-line); }
.facts small { display: block; color: var(--vnm-steel); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.facts strong { font-family: var(--font-head); color: var(--vnm-navy); font-size: 1.08rem; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.check-list li { position: relative; padding-left: 1.8rem; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 0; color: var(--vnm-orange); font-weight: 700; }
.timeline { position: relative; padding-left: 1.6rem; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--vnm-line); }
.timeline .t-item { position: relative; padding-bottom: 1.25rem; }
.timeline .t-item::before { content: ""; position: absolute; left: -1.6rem; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--vnm-steel); }
.timeline .t-item.done::before { border-color: #1f9d55; background: #1f9d55; }
.timeline .t-item.active::before { border-color: var(--vnm-orange); }
.sticky-aside { position: sticky; top: calc(var(--header-h) + 16px); }

/* Forms */
.form-control, .form-select { border-radius: 10px; border-color: #d3d9e0; padding: .7rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--vnm-orange); box-shadow: 0 0 0 .2rem rgba(var(--vnm-orange-rgb), .18); }
.form-label { font-weight: 600; font-size: .9rem; color: var(--vnm-navy); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.enquiry-panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md); padding: clamp(1.4rem, 3vw, 2.2rem); border: 1px solid var(--vnm-line); }

/* FAQ */
.accordion-button { font-weight: 600; color: var(--vnm-navy); font-family: var(--font-head); }
.accordion-button:not(.collapsed) { color: var(--vnm-navy); background: #fff6ef; box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(var(--vnm-orange-rgb), .25); }
.accordion-item { border-color: var(--vnm-line); }

/* App section */
.app-band { background: linear-gradient(120deg, var(--vnm-navy) 0%, #1b406f 100%); color: #fff; border-radius: calc(var(--radius) + 6px); padding: clamp(1.8rem, 4vw, 3rem); position: relative; overflow: hidden; }
.app-band h2 { color: #fff; }
.app-band p { color: #cbd5e1; }
.store-btn { display: inline-flex; align-items: center; gap: .6rem; background: #000; color: #fff; padding: .6rem 1rem; border-radius: 10px; text-decoration: none; font-weight: 600; border: 1px solid rgba(255, 255, 255, .25); }
.store-btn:hover { color: #fff; background: #111; }
.store-btn.disabled { opacity: .55; pointer-events: none; }
.qr-box { background: #fff; padding: 10px; border-radius: 12px; display: inline-block; }

/* Team */
.team-card .photo { aspect-ratio: 1 / 1; background: var(--vnm-soft); display: grid; place-items: center; overflow: hidden; }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card .team-text { padding: 1rem; }
.team-card .team-bio { font-size: .92rem; line-height: 1.65; color: #475569; margin: .7rem 0 .3rem; }
/* one or two leaders: photo beside the text */
.team-card.team-wide { display: grid; grid-template-columns: minmax(220px, 34%) 1fr; height: auto; }
.team-card.team-wide .photo { aspect-ratio: auto; min-height: 280px; height: 100%; }
.team-card.team-wide .team-text { padding: 1.6rem 1.8rem; align-self: center; }
.team-card.team-wide h3 { font-size: 1.35rem; }
.team-card.team-wide .team-bio { font-size: 1rem; }
@media (max-width: 767.98px) { .team-card.team-wide { grid-template-columns: 1fr; } .team-card.team-wide .photo { aspect-ratio: 1 / 1; min-height: 0; } .team-card.team-wide .team-text { padding: 1.1rem; } }
.team-card .initials { font-family: var(--font-head); font-size: 2.6rem; color: var(--vnm-navy); font-weight: 800; opacity: .35; }

/* Footer */
.site-footer { background: var(--vnm-navy-700); color: #b7c3d1; padding: 4rem 0 0; font-size: .95rem; }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.site-footer a { color: #d5dde7; text-decoration: none; }
.site-footer a:hover { color: var(--vnm-orange); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer .bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 3rem; padding: 1.3rem 0; font-size: .85rem; color: #8ea0b5; }
.social a { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); margin-right: .4rem; font-size: 1.05rem; }
.social a:hover { background: var(--vnm-orange); color: #fff; }

/* Floating actions */
.fab-stack { position: fixed; right: 16px; bottom: 16px; z-index: 1040; display: flex; flex-direction: column; gap: 10px; }
.fab { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.4rem; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45); text-decoration: none; border: 0; }
.fab:hover { color: #fff; transform: translateY(-2px); }
.fab-wa { background: #1fa855; }
.fab-call { background: var(--vnm-orange); }
.fab-top { background: var(--vnm-navy); opacity: 0; pointer-events: none; transition: opacity .2s; }
.fab-top.show { opacity: 1; pointer-events: auto; }

.preview-bar { position: sticky; top: 0; z-index: 1100; background: #fff3cd; color: #664d03; text-align: center; padding: .5rem; font-size: .9rem; font-weight: 600; border-bottom: 1px solid #ffe69c; }
.demo-note { font-size: .78rem; color: var(--vnm-steel); }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--vnm-steel); border: 1px dashed var(--vnm-line); border-radius: var(--radius); }
.empty-state i { font-size: 2.2rem; color: #b6c0cc; display: block; margin-bottom: .6rem; }

/* Reveal animation (only when enabled & motion allowed) */
.js-anim .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js-anim .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-anim .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; animation: none !important; }
}

@media (max-width: 991.98px) {
  :root { --header-h: 64px; }
  .site-nav { padding: .5rem 0 1rem; }
  .site-nav .nav-link { padding: .75rem .5rem !important; }
  .hero { min-height: 78vh; }
}
@media (max-width: 575.98px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .fab { width: 48px; height: 48px; font-size: 1.2rem; }
  .brand img { height: min(var(--logo-h, 44px), 38px); }
}
@media print {
  .site-header, .site-footer, .fab-stack, .contact-strip, .announce { display: none !important; }
}

/* ───────── Homepage v2 (reference-inspired corporate layout) ───────── */
.section-sm { padding: clamp(2.6rem, 5vw, 4rem) 0; }
.bg-tint { background: #f2f5fa; }
.h-sec { font-size: clamp(1.55rem, 2.6vw, 2rem); margin: 0 0 .45rem; }
.sec-sub { color: #5a6573; max-width: 56ch; font-size: .98rem; }
.link-more { font-weight: 700; color: var(--vnm-navy); text-decoration: none; font-size: .95rem; white-space: nowrap; }
.link-more:hover { color: var(--vnm-orange-600); }
.link-more i { font-size: .8rem; margin-left: .2rem; }

/* Header refinements */
.site-nav .nav-link { position: relative; font-weight: 600; white-space: nowrap; }
@media (max-width: 1199.98px) { .site-nav { padding: .5rem 0 1rem; } .site-nav .nav-link { padding: .7rem .5rem !important; } }
.site-nav .nav-link:hover { background: transparent; color: var(--vnm-orange-600); }
@media (min-width: 1200px) {
  .site-nav .nav-link.active::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: -2px; height: 3px; border-radius: 3px; background: var(--vnm-orange); }
}
.btn-login { background: var(--vnm-navy); color: #fff; border-radius: 10px; padding: .6rem 1.1rem; font-weight: 700; border: 0; }
.btn-login:hover { background: var(--vnm-navy-700); color: #fff; }

/* Hero slider */
.hx { position: relative; background: var(--vnm-navy); }
.hx-slide { position: relative; min-height: clamp(440px, 62vh, 600px); display: flex; align-items: center; overflow: hidden; }
.hx-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--hx-photo, center); }
/* darkness is set by admin (--hx-dark 0–0.9); the dark side follows the text position */
.hx-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 22, 42, calc(var(--hx-dark, .6) + .3)) 0%, rgba(8, 22, 42, var(--hx-dark, .6)) 40%, rgba(8, 22, 42, calc(var(--hx-dark, .6) * .3)) 78%, rgba(8, 22, 42, calc(var(--hx-dark, .6) * .15)) 100%); }
.hx-right .hx-slide::after { background: linear-gradient(270deg, rgba(8, 22, 42, calc(var(--hx-dark, .6) + .3)) 0%, rgba(8, 22, 42, var(--hx-dark, .6)) 40%, rgba(8, 22, 42, calc(var(--hx-dark, .6) * .3)) 78%, rgba(8, 22, 42, calc(var(--hx-dark, .6) * .15)) 100%); }
.hx-center .hx-slide::after { background: rgba(8, 22, 42, var(--hx-dark, .6)); }
.hx-right .hx-inner { margin-left: auto; text-align: right; } .hx-right .hx-inner .d-flex { justify-content: flex-end; } .hx-right .hx-title, .hx-right .hx-lead { margin-left: auto; }
.hx-center .hx-inner { margin: 0 auto; text-align: center; } .hx-center .hx-inner .d-flex { justify-content: center; } .hx-center .hx-title, .hx-center .hx-lead { margin-left: auto; margin-right: auto; }
.hx-inner { max-width: 640px; }
.hx-btns-only { position: relative; top: clamp(140px, 22vh, 220px); }   /* poster photo: buttons sit low, clear of the poster's own words */
.hx-boxed .hx-inner { background: rgba(8, 22, 42, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 1.6rem 1.8rem; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .1); }
.hx-title, .hx-lead { text-shadow: 0 2px 14px rgba(0, 0, 0, .45); }
/* change effect speed set by admin */
.hx .carousel-item { transition-duration: var(--hx-fx, .8s); }
.hx .carousel-fade .carousel-item { transition: opacity var(--hx-fx, .8s) ease-in-out; }
.hx .carousel-fade .active.carousel-item-start, .hx .carousel-fade .active.carousel-item-end { transition: opacity 0s var(--hx-fx, .8s); }   /* old slide stays until the new one is fully in — no dark flash */
.hx-content { position: relative; z-index: 2; padding-top: 3rem; padding-bottom: 3.5rem; }
.hx-title { color: #fff; font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; max-width: 16ch; margin-bottom: 1rem; letter-spacing: -.01em; }
.hx-title span { display: block; color: var(--vnm-orange); margin-top: .2rem; }
.hx-lead { color: #e2e8f0; font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 46ch; margin-bottom: 1.8rem; }
.hx-chip { display: inline-block; background: rgba(var(--vnm-orange-rgb), .18); color: color-mix(in srgb, var(--vnm-orange) 55%, #fff); border: 1px solid rgba(var(--vnm-orange-rgb), .45); padding: .3rem .8rem; border-radius: 99px; font-size: .8rem; font-weight: 700; margin-bottom: 1rem; }
.hx-arrow { width: 52px; height: 52px; top: 50%; transform: translateY(-50%); bottom: auto; border-radius: 50%; background: rgba(255, 255, 255, .14); opacity: 1; margin: 0 18px; font-size: 1.3rem; color: #fff; backdrop-filter: blur(4px); }
.hx-arrow:hover { background: rgba(255, 255, 255, .3); }
.hx-dots { margin-bottom: 1.2rem; }
.hx-dots [data-bs-target] { width: 26px; height: 4px; border-radius: 4px; border: 0; }
.hx-dots .active { background-color: var(--vnm-orange); }
.hx .demo-tag { z-index: 3; }

/* Value strip */
.values { background: #fff; border-bottom: 1px solid var(--vnm-line); }
.values-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.value-item { text-align: center; padding: 2rem 1rem 1.8rem; position: relative; }
.value-item + .value-item::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--vnm-line); }
.value-item i { font-size: 2.1rem; color: var(--vnm-navy); display: block; margin-bottom: .6rem; }
.value-item h3 { font-size: 1rem; margin: 0 0 .3rem; }
.value-item p { font-size: .86rem; color: #5a6573; margin: 0; max-width: 20ch; margin-inline: auto; }

/* Project cards (compact) */
.pcard { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(16, 39, 70, .08); height: 100%; position: relative; transition: transform .2s ease, box-shadow .2s ease; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -14px rgba(16, 39, 70, .35); }
.pcard-img { aspect-ratio: 16 / 10.5; overflow: hidden; background: #e6ebf2; position: relative; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pcard:hover .pcard-img img { transform: scale(1.05); }
.pcard-body { padding: 1rem 1.1rem 1.15rem; }
.pcard h3 { font-size: 1.02rem; margin: 0 0 .35rem; }
.pcard h3 a { color: var(--vnm-navy); text-decoration: none; }
.pcard h3 a::after { content: ""; position: absolute; inset: 0; }
.pcard-loc { font-size: .83rem; color: #5a6573; margin: 0 0 .7rem; }
.pcard-loc i { color: var(--vnm-navy); margin-right: .3rem; }
.st { display: inline-block; font-size: .74rem; font-weight: 700; padding: .22rem .6rem; border-radius: 6px; }
.st-completed { background: #d9f5e3; color: #11703c; }
.st-in_progress { background: #dbe8ff; color: #1d4ed8; }
.st-upcoming { background: #ffe7d4; color: #b4500d; }
.st-on_hold { background: #eceff3; color: #4a5462; }

/* About split */
.about-x { position: relative; background: #fff; overflow: hidden; }
.about-x-media { position: absolute; left: 0; top: 0; bottom: 0; width: 50%; }
.about-x-media img { width: 100%; height: 100%; object-fit: cover; }
.about-x-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0) 55%, #fff 100%); }
.about-x-media .demo-tag { right: auto; left: 12px; z-index: 2; }
.about-x-text { padding: clamp(2.6rem, 5vw, 4.2rem) 0 clamp(2.6rem, 5vw, 4.2rem) 2rem; }
.about-x-text p { color: #4a5563; }

/* Stats band */
.stats-band { background: var(--vnm-navy); color: #fff; padding: 2.2rem 0 1.6rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-x { text-align: center; padding: .4rem 1rem; position: relative; }
.stat-x + .stat-x::before { content: ""; position: absolute; left: 0; top: 10%; bottom: 10%; width: 1px; background: rgba(255, 255, 255, .18); }
.stat-x i { font-size: 1.7rem; display: block; margin-bottom: .35rem; color: #fff; }
.stat-x strong { display: block; font-family: var(--font-head); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; line-height: 1.1; }
.stat-x span { color: #c9d4e2; font-size: .92rem; }
.stats-note { text-align: center; color: #8ea0b6; font-size: .75rem; margin: 1rem 0 0; }

/* Testimonials */
.tcard { background: #fff; border: 1px solid var(--vnm-line); border-radius: 12px; box-shadow: 0 2px 10px rgba(16, 39, 70, .06); padding: 1.3rem 1.2rem 1.1rem; height: 100%; margin: 0; display: flex; flex-direction: column; }
.tq { font-size: 2rem; color: var(--vnm-orange); line-height: 1; }
.tcard blockquote { font-size: .9rem; color: #4a5563; margin: .4rem 0 1rem; flex: 1; }
.tcard figcaption { display: flex; align-items: center; gap: .6rem; }
.tcard figcaption strong { display: block; font-size: .88rem; color: var(--vnm-navy); }
.tcard figcaption small { color: #6b7684; font-size: .78rem; }
.tav { width: 38px; height: 38px; border-radius: 50%; background: #e6ebf2; display: grid; place-items: center; font-weight: 800; color: var(--vnm-navy); overflow: hidden; flex-shrink: 0; }
.tav img { width: 100%; height: 100%; object-fit: cover; }

/* Compact footer */
.site-footer.compact { padding: 2.2rem 0 0; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: .3rem 0; list-style: none; padding: 0; margin: 0; }   /* beats the generic .site-footer ul grid */
.footer-links li + li::before { content: "|"; color: #4c6382; margin: 0 .9rem; }
.footer-links a { color: #dbe3ec; font-weight: 500; }
.footer-contact { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; font-size: .88rem; padding: 1.2rem 0; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 1.6rem; }
.footer-contact i { color: var(--vnm-orange); margin-right: .4rem; }
.site-footer.compact .bottom { margin-top: 0; }

@media (max-width: 991.98px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .value-item:nth-child(4)::before { display: none; }
  .about-x-media { position: relative; width: 100%; height: 280px; }
  .about-x-media::after { background: linear-gradient(180deg, rgba(255,255,255,0) 60%, #fff 100%); }
  .about-x-text { padding: 1.5rem 0 2.8rem; }
  .hx-slide::after, .hx-right .hx-slide::after, .hx-center .hx-slide::after { background: linear-gradient(180deg, rgba(8, 22, 42, calc(var(--hx-dark, .6) * .8)) 0%, rgba(8, 22, 42, calc(var(--hx-dark, .6) + .3)) 100%); }
  /* phones/tablets: smaller arrows at the edges, still usable */
  .hx-arrow { width: 40px; height: 40px; margin: 0 6px; font-size: 1rem; top: auto; bottom: 14px; transform: none; }
  .hx-dots { margin-bottom: 1.6rem; }
}
@media (max-width: 575.98px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .value-item::before { display: none; }
  .value-item { padding: 1.3rem .5rem; }
  .value-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 1.2rem; }
  .stat-x:nth-child(3)::before { display: none; }
  .footer-links li + li::before { margin: 0 .5rem; }
}

/* Long values (emails, addresses) wrap inside cards instead of overflowing */
.card-x dd { overflow-wrap: anywhere; }

/* ---- Phones: "show the whole photo" hero (Website & Brand → Homepage → On mobile phones) ---- */
@media (max-width: 767.98px) {
  .hx-mfull .hx-slide { display: block; min-height: 0; background: var(--vnm-navy); }
  .hx-mfull .hx-slide picture { display: block; }
  .hx-mfull .hx-bg { position: relative; inset: auto; height: auto; max-height: 75vh; object-fit: contain; display: block; background: var(--vnm-navy); }
  .hx-mfull .hx-slide::after { display: none; }
  .hx-mfull .hx-content { padding-top: 1.1rem; padding-bottom: 3.2rem; }
  .hx-mfull .hx-inner { background: none; border: 0; padding: 0; backdrop-filter: none; text-align: left; margin: 0; }
  .hx-mfull .hx-inner .d-flex { justify-content: flex-start; }
  .hx-mfull .hx-title { font-size: 1.65rem; max-width: none; margin-bottom: .5rem; text-shadow: none; }
  .hx-mfull .hx-lead { font-size: .98rem; margin-bottom: 1.1rem; text-shadow: none; }
  .hx-mfull .hx-chip { margin-bottom: .6rem; }
  .hx-mfull .hx-btns-only { top: 0; }
  .hx-mfull .hx-inner .btn-lg { padding: .6rem 1.1rem; font-size: 1rem; }
  /* arrows sit on the photo, dots under the buttons */
  .hx-mfull .hx-arrow { top: 26vw; bottom: auto; transform: translateY(-50%); background: rgba(8, 22, 42, .45); }
  .hx-mfull .hx-dots { margin-bottom: 1rem; }
}

/* ---- Computers & laptops: auto-fit hero (Website & Brand → Homepage → On computers & laptops) ----
   The slider takes the main photo's shape (--hx-ar = width ÷ height) so nothing is cut; on short screens the
   height is capped and any spare space shows a soft blurred copy of the photo instead of empty bars. */
@media (min-width: 768px) {
  .hx-dauto .hx-slide { width: 100%; min-height: 360px; height: min(calc(100vw / var(--hx-ar, 1.7778)), calc(100vh - 120px)); }
  .hx-dauto .hx-bg { object-fit: contain; z-index: 0; }
  .hx-dauto .hx-slide::before { content: ""; position: absolute; inset: -40px; background: var(--hx-img) center / cover no-repeat; filter: blur(28px) brightness(.55); transform: scale(1.05); }
  .hx-dauto .hx-slide::after { z-index: 1; }
}
/* keep hero text clear of the ◀ ▶ arrows on tablets and small laptops */
@media (min-width: 768px) and (max-width: 1399.98px) { .hx .hx-content { padding-left: 80px; padding-right: 80px; } }

/* Embedded Google map (footer + Contact page) */
.map-embed { position: relative; border-radius: 14px; overflow: hidden; background: #e5e7eb; }
.map-embed iframe { display: block; width: 100%; border: 0; }
.map-embed .map-open { position: absolute; left: 10px; bottom: 10px; background: #fff; color: var(--vnm-navy) !important; font-size: .8rem; font-weight: 700; padding: .35rem .7rem; border-radius: 99px; box-shadow: 0 2px 8px rgba(0,0,0,.2); text-decoration: none; }
.map-embed .map-open i { color: var(--vnm-orange); }
.footer-contact-map { display: grid; grid-template-columns: 1fr minmax(280px, 40%); gap: 1.6rem; align-items: center; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 1.6rem; padding: 1.2rem 0; }
.footer-contact-map .footer-contact { border-top: 0; margin-top: 0; padding: 0; flex-direction: column; gap: .7rem; }
@media (max-width: 767.98px) { .footer-contact-map { grid-template-columns: 1fr; } }

/* ═════════ Premium polish: animations & cards ═════════ */
/* Smoother, slightly richer entrance (fade + rise + tiny scale); stagger delay is set per card by site.js */
.js-anim .reveal { opacity: 0; transform: translateY(26px) scale(.985); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.js-anim .reveal.in { opacity: 1; transform: none; }

/* Section titles: short orange underline that draws in */
.h-sec { position: relative; padding-bottom: .55rem; }
.h-sec::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 54px; border-radius: 3px; background: linear-gradient(90deg, var(--vnm-orange), color-mix(in srgb, var(--vnm-orange) 40%, #fff)); transform-origin: left; transition: transform .8s .2s cubic-bezier(.2, .7, .2, 1); }
.js-anim .h-sec.reveal::after { transform: scaleX(0); }
.js-anim .h-sec.reveal.in::after { transform: scaleX(1); }
.text-center .h-sec::after, .h-sec.text-center::after { left: 50%; margin-left: -27px; }

/* Premium cards: soft layered shadow, lift + accent line + photo zoom on hover */
.pcard, .card-x, .tcard { border: 1px solid rgba(16, 39, 70, .07); box-shadow: 0 1px 2px rgba(16, 39, 70, .05), 0 8px 24px -12px rgba(16, 39, 70, .18); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .35s ease; }
.pcard:hover, .card-x:hover, .tcard:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(16, 39, 70, .05), 0 22px 40px -16px rgba(16, 39, 70, .32); border-color: rgba(var(--vnm-orange-rgb), .35); }
.pcard::before, .card-x::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 3; background: linear-gradient(90deg, var(--vnm-orange), color-mix(in srgb, var(--vnm-orange) 35%, #ffd8b8)); transform: scaleX(0); transform-origin: left; transition: transform .45s ease; }
.card-x { position: relative; }
.pcard:hover::before, .card-x:hover::before { transform: scaleX(1); }
.pcard-img img, .project-card .thumb img, .team-card .photo img { transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.pcard:hover .pcard-img img, .project-card:hover .thumb img, .team-card:hover .photo img { transform: scale(1.07); }
.pcard-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8, 22, 42, .35)); opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.pcard:hover .pcard-img::after { opacity: 1; }
.icon-tile { transition: transform .4s cubic-bezier(.2, .7, .2, 1), background .3s ease, color .3s ease; }
.card-x:hover .icon-tile { transform: translateY(-2px) rotate(-6deg); background: var(--vnm-orange); color: #fff; }
.value-item i { transition: transform .4s cubic-bezier(.2, .7, .2, 1), color .3s ease; }
.value-item:hover i { transform: translateY(-4px) scale(1.08); color: var(--vnm-orange); }

/* Buttons: soft shine sweep on the main orange button */
.btn-orange { position: relative; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.btn-orange::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); transition: left .6s ease; }
.btn-orange:hover::after { left: 120%; }
.btn-orange:hover { box-shadow: 0 14px 26px -10px rgba(var(--vnm-orange-rgb), .75); }

/* Hero: text glides in on every slide */
@keyframes hxIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hx .carousel-item.active .hx-inner > * { animation: hxIn .8s cubic-bezier(.2, .7, .2, 1) both; }
.hx .carousel-item.active .hx-inner > *:nth-child(2) { animation-delay: .12s; }
.hx .carousel-item.active .hx-inner > *:nth-child(3) { animation-delay: .24s; }
.hx .carousel-item.active .hx-inner > *:nth-child(4) { animation-delay: .36s; }

/* Figures band: icons pop slightly */
.stat-x i { transition: transform .4s ease; } .stat-x:hover i { transform: scale(1.12); }

/* Latest Site Progress — photo cards */
.prog .gallery-item { border-radius: 14px; box-shadow: 0 8px 22px -14px rgba(16, 39, 70, .45); }
.prog .gallery-item img { transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.prog .gallery-item:hover img { transform: scale(1.08); }
.prog .gallery-item .cap { display: flex; flex-direction: column; gap: 2px; padding: 2.2rem .85rem .75rem; font-size: .86rem; background: linear-gradient(transparent, rgba(8, 22, 42, .88)); }
.prog .gallery-item .cap b { font-weight: 700; line-height: 1.25; }
.prog .gallery-item .cap small { opacity: .85; font-size: .74rem; }
.prog .gallery-item .zoom { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--vnm-navy); font-size: .85rem; opacity: 0; transform: scale(.8); transition: opacity .3s ease, transform .3s ease; }
.prog .gallery-item:hover .zoom { opacity: 1; transform: none; }
.strip-nav { display: none; }

/* Phones: swipe strip — big cards that snap one by one, next card peeking in */
@media (max-width: 767.98px) {
  .prog-strip { display: flex; grid-template-columns: none; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
                padding: 6px 12px 14px; margin: 0 -12px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .prog-strip::-webkit-scrollbar { display: none; }
  .prog-strip .gallery-item { flex: 0 0 80%; aspect-ratio: 4 / 5; scroll-snap-align: center; border-radius: 18px; box-shadow: 0 14px 30px -16px rgba(16, 39, 70, .55); }
  .prog-strip .gallery-item .zoom { opacity: 1; transform: none; }
  .prog-strip .gallery-item .cap { font-size: .95rem; padding: 3rem 1rem .95rem; }
  .strip-nav { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
  .strip-btn { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; border: 1px solid var(--vnm-line); background: #fff; color: var(--vnm-navy); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
  .strip-btn:active { transform: scale(.94); background: var(--vnm-soft); }
  .strip-track { flex: 1; height: 4px; border-radius: 4px; background: #e3e8ef; overflow: hidden; }
  .strip-fill { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--vnm-orange); transition: width .35s ease; }
  .strip-count { font-size: .85rem; color: #5a6573; min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
  .strip-count b { color: var(--vnm-navy); }
  /* on phones cards rise less and nothing lifts on tap */
  .pcard:hover, .card-x:hover, .tcard:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js-anim .reveal, .js-anim .h-sec.reveal::after { opacity: 1; transform: none; transition: none; }
  .hx .carousel-item.active .hx-inner > * { animation: none; }
}

/* ═════════ Projects page: compact filters + premium project cards ═════════ */
.pfilter { display: grid; gap: 12px; }
.st-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; margin: 0 -2px; }
.st-chips::-webkit-scrollbar { display: none; }
.st-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .95rem; border-radius: 999px; border: 1px solid var(--vnm-line); background: #fff; color: var(--vnm-navy); font-weight: 600; font-size: .9rem; text-decoration: none; box-shadow: var(--shadow-sm); transition: all .25s ease; white-space: nowrap; }
.st-chip span { background: var(--vnm-soft); color: var(--vnm-navy); border-radius: 99px; padding: 0 .5rem; font-size: .78rem; font-weight: 700; }
.st-chip:hover { border-color: rgba(var(--vnm-orange-rgb), .5); color: var(--vnm-navy); }
.st-chip.on { background: var(--vnm-navy); border-color: var(--vnm-navy); color: #fff; }
.st-chip.on span { background: var(--vnm-orange); color: #fff; }
.pf-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--vnm-line); border-radius: 14px; padding: 10px; box-shadow: var(--shadow-sm); }
.pf-search { position: relative; flex: 1 1 260px; }
.pf-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--vnm-steel); }
.pf-search .form-control { padding-left: 2.5rem; height: 46px; border-radius: 10px; }
.pf-more { flex: 0 0 auto; }
.pf-more summary { list-style: none; cursor: pointer; height: 46px; display: inline-flex; align-items: center; gap: .45rem; padding: 0 1rem; border: 1px solid var(--vnm-line); border-radius: 10px; font-weight: 600; color: var(--vnm-navy); user-select: none; }
.pf-more summary::-webkit-details-marker { display: none; }
.pf-more summary .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--vnm-orange); display: inline-block; }
.pf-more[open] summary { border-color: var(--vnm-navy); }
.pf-more-body { display: flex; gap: 10px; margin-top: 10px; }
.pf-more-body .form-select { height: 46px; border-radius: 10px; min-width: 170px; }
.pf-go { height: 46px; border-radius: 10px; padding: 0 1.4rem; }
@media (min-width: 768px) {   /* computers: "More filters" opens inline beside the search */
  .pf-bar { align-items: center; }
  .pf-more[open] { display: flex; align-items: center; gap: 10px; }
  .pf-more[open] .pf-more-body { margin-top: 0; }
}
@media (max-width: 767.98px) {
  .pf-bar { padding: 8px; gap: 8px; }
  .pf-search { flex: 1 1 0; min-width: 0; }
  .pf-more { order: 3; flex: 1 1 100%; }
  .pf-more summary { width: 100%; justify-content: center; height: 40px; }
  .pf-more-body { flex-direction: column; }
  .pf-more-body .form-select { min-width: 0; }
  .pf-go { width: 46px; padding: 0; }
}

/* Premium project card */
.project-card { display: flex; flex-direction: column; border-radius: 16px; }
.project-card .thumb { aspect-ratio: 16 / 11; }
.project-card .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 22, 42, .35) 0%, transparent 30%, transparent 65%, rgba(8, 22, 42, .45) 100%); pointer-events: none; }
.project-card .chip-status { top: 12px; left: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.chip-status.on_hold { background: #f1f3f6; color: #4a5563; }
.chip-type { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(8, 22, 42, .55); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.project-card .body { display: flex; flex-direction: column; flex: 1; padding: 1.15rem 1.25rem 1.2rem; }
.project-card h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: .35rem; }
.project-card h3 a:hover { color: var(--vnm-orange-600); }
.pc-loc { color: var(--vnm-steel); font-size: .88rem; margin-bottom: .6rem; }
.pc-loc i { color: var(--vnm-orange); margin-right: .25rem; }
.pc-sum { font-size: .9rem; line-height: 1.6; color: #4a5563; margin-bottom: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-prog { margin-bottom: .9rem; }
.pc-foot { margin-top: auto; padding-top: .9rem; border-top: 1px dashed var(--vnm-line); display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; z-index: 2; }
.pc-foot .btn { border-radius: 10px; padding: .5rem 1rem; font-weight: 700; }
.pc-foot .btn i { transition: transform .3s ease; }
.project-card:hover .pc-foot .btn i { transform: translateX(4px); }
.pc-enq { font-size: .88rem; font-weight: 700; color: var(--vnm-navy); text-decoration: none; }
.pc-enq:hover { color: var(--vnm-orange-600); }
@media (max-width: 767.98px) {
  .project-card .thumb { aspect-ratio: 16 / 10; }
  .project-card h3 { font-size: 1.15rem; }
  .pc-sum { -webkit-line-clamp: 2; }
  .pc-foot { justify-content: flex-start; gap: 18px; }   /* keep "Enquire" clear of the floating WhatsApp / call buttons */
}

/* ═════════ Single project page — premium + phone layout ═════════ */
.ph-chip { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .25); }
.ph-loc { color: #dbe2ea; }
.ph-loc i { color: var(--vnm-orange); }
.ph-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.1rem; }
.ph-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .95rem; border-radius: 99px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); color: #fff; font-weight: 600; font-size: .88rem; text-decoration: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .25s ease, transform .25s ease; cursor: pointer; }
.ph-btn:hover { background: rgba(255, 255, 255, .26); color: #fff; transform: translateY(-1px); }
.facts { border-radius: 16px; box-shadow: 0 8px 24px -14px rgba(16, 39, 70, .25); }
.facts > div { transition: background .25s ease; }
.facts > div:hover { background: #fbfcfe; }
.facts small { color: var(--vnm-orange-600); }
.prog-card { padding: 1.4rem 1.5rem; border-radius: 16px; }
.prog-pc { font-family: var(--font-head); font-size: 1.9rem; color: var(--vnm-orange); line-height: 1; }
.prog-big { height: 10px; }
.prog-big > span { background: linear-gradient(90deg, var(--vnm-orange), color-mix(in srgb, var(--vnm-orange) 60%, #ffd2a8)); transition: width 1.4s cubic-bezier(.2, .7, .2, 1); }
.check-list li { padding: .15rem 0 .15rem 1.8rem; }
.p-actbar { display: none; }

@media (max-width: 767.98px) {
  /* hero: show the whole cover photo, title & buttons on dark blue below it */
  .project-hero { display: block; min-height: 0; }
  .project-hero img.bg { position: relative; inset: auto; height: auto; max-height: 70vh; object-fit: contain; display: block; background: var(--vnm-navy); }
  .project-hero::after { display: none; }
  .project-hero .container { padding: 1.1rem 1rem 1.5rem; }
  .project-hero .crumbs { margin-bottom: .6rem; }
  .project-hero h1 { font-size: 1.7rem; line-height: 1.2; }
  .ph-actions { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -1rem; padding-right: 1rem; }
  .ph-actions::-webkit-scrollbar { display: none; }
  .ph-btn { flex: 0 0 auto; }
  .section.pt-5 { padding-top: 1.6rem !important; }
  .lead { font-size: 1.05rem; }
  /* facts: smaller, tidy tiles */
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div { padding: .8rem .85rem; }
  .facts small { font-size: .66rem; letter-spacing: .06em; }
  .facts strong { font-size: .95rem; line-height: 1.3; display: block; margin-top: .15rem; }
  .facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .prog-card { padding: 1.1rem; }
  .prog-pc { font-size: 1.5rem; }
  /* bottom quick-action bar replaces the round floating buttons on this page */
  .p-actbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 -6px 20px rgba(16, 39, 70, .12); }
  .pa-btn { display: flex; align-items: center; justify-content: center; gap: .4rem; height: 46px; border-radius: 12px; font-weight: 700; font-size: .92rem; text-decoration: none; color: #fff; }
  .pa-btn i { font-size: 1.05rem; }
  .pa-wa { background: #1fa855; } .pa-call { background: var(--vnm-navy); } .pa-enq { background: var(--vnm-orange); }
  .pa-enq { grid-column: span 1; }
  body:has(.p-actbar) { padding-bottom: 66px; }
  body:has(.p-actbar) .fab-wa, body:has(.p-actbar) .fab-call { display: none; }
  body:has(.p-actbar) .fab-stack { bottom: 78px; }
}

/* small "link copied" message */
.toast-x { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); background: var(--vnm-navy); color: #fff; padding: .6rem 1.1rem; border-radius: 99px; font-size: .9rem; font-weight: 600; opacity: 0; transition: all .3s ease; z-index: 2000; pointer-events: none; }
.toast-x.show { opacity: 1; transform: translateX(-50%); }

/* Sales stage badge (pre-sale / post-sale) */
.chip-sale { position: absolute; bottom: 12px; left: 12px; z-index: 2; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); font-weight: 700; }
.chip-sale.presale { background: #fff4d6; color: #8a5a00; }
.chip-sale.postsale { background: #e2f6ea; color: #136c3e; }
.chip-sale.soldout { background: #f1f3f6; color: #4a5563; }
.st-chip.sale { border-style: dashed; }
.st-chip.sale.on { border-style: solid; }
