/* HZ Group v2 — nền tảng dùng chung (theo Figma "HZ Group — Live Site Capture")
   Breakpoints: mobile < 640px (thiết kế 390) · tablet 640–1179px (thiết kế 834) · desktop ≥ 1180px (thiết kế 1440) */

@font-face { font-family: 'Inter'; src: url('../fonts/Inter-Variable.ttf') format('truetype'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Kufam'; src: url('../fonts/Kufam-Variable.ttf') format('truetype'); font-weight: 400 900; font-style: normal; font-display: swap; }

:root {
  --font: 'Inter', Arial, sans-serif;
  --font-head: 'Kufam', 'Inter', Arial, sans-serif;

  --navy: #12324a;        /* tiêu đề, chữ đậm */
  --navy-deep: #082b47;   /* nền tối, header overlay */
  --blue: #1772b8;        /* màu chính */
  --blue-hover: #1266a7;
  --blue-logo: #2472b6;
  --slate: #4a667a;       /* chữ thân */
  --slate-2: #58778b;
  --slate-3: #526e83;     /* label form */
  --muted: #97aabc;       /* placeholder */
  --green: #80c243;
  --green-text: #477e27;
  --line: #dae4eb;
  --line-2: #dce7ef;
  --surface: #f8fafc;
  --surface-2: #f2f7fa;
  --white: #ffffff;

  --gutter: 80px;
  --container: 1280px;
  --header-h: 88px;
  --radius: 6px;
  --radius-lg: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (max-width: 1179px) { :root { --gutter: 40px; } }
@media (max-width: 639px)  { :root { --gutter: 20px; --header-h: 76px; } }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--slate); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.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; }
body.is-locked { overflow: hidden; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 64px; }
.section--lg { padding-block: 96px; }
@media (max-width: 1179px) { .section { padding-block: 48px; } .section--lg { padding-block: 72px; } }
@media (max-width: 639px)  { .section { padding-block: 40px; } .section--lg { padding-block: 56px; } }

/* ---------- typography ---------- */
.eyebrow { font: 600 14px/19.6px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.eyebrow--green { color: var(--green-text); }
.eyebrow--light { color: var(--green); }
.h-display { font: 500 64px/1.2 var(--font-head); letter-spacing: -.03em; color: var(--navy); }
.h-section { font: 500 48px/1.2 var(--font-head); letter-spacing: -.03em; color: var(--navy); }
.h-sub { font: 500 36px/1.2 var(--font-head); letter-spacing: -.03em; color: var(--navy); }
.h-card { font: 500 24px/1.3 var(--font-head); letter-spacing: -.02em; color: var(--navy); }
.h-small { font: 500 20px/1.35 var(--font-head); letter-spacing: -.01em; color: var(--navy); }
.text-lead { font: 400 18px/1.65 var(--font); color: var(--slate); }
.text-body { font: 400 16px/1.65 var(--font); color: var(--slate); }
.text-small { font: 400 14px/1.65 var(--font); color: var(--slate-2); }
.text-note { font: 400 12px/1.65 var(--font); color: var(--slate-2); }
.accent { color: var(--green); }
@media (max-width: 1179px) {
  .h-display { font-size: 48px; }
  .h-section { font-size: 36px; }
  .h-sub { font-size: 30px; }
}
@media (max-width: 639px) {
  .h-display { font-size: 40px; }
  .h-section { font-size: 32px; }
  .h-sub { font-size: 26px; }
}

/* ---------- direction icon (vòng tròn + mũi tên) ---------- */
.direction-icon { width: 30px; height: 30px; flex: none; overflow: visible; transition: transform .25s var(--ease); }
.direction-icon .arrow-ring { fill: none; stroke: currentColor; stroke-width: .85; }
.direction-icon .arrow-head { fill: currentColor; transform: scale(1.14); transform-origin: 12.5px 12px; transform-box: view-box; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 25px; border: 1px solid var(--blue); border-radius: var(--radius); background: var(--blue); color: var(--white); font: 500 16px/22.4px var(--font); white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s, font-weight .2s, transform .2s; }
.btn:hover { background: var(--blue-hover); border-color: var(--blue-hover); font-weight: 600; }
.btn:hover .direction-icon { transform: translateX(3px); }
.btn--outline { background: rgba(255, 255, 255, .10); border-color: rgba(255, 255, 255, .65); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.btn--outline-dark { background: transparent; border-color: var(--blue); color: var(--blue); }
.btn--outline-dark:hover { color: var(--white); }
.btn--md { min-height: 54px; padding: 11px 17px; box-shadow: 0 3px 8px rgba(15, 78, 136, .06); }
.btn--md .direction-icon { width: 27px; height: 27px; }
.btn--sm { min-height: 48px; padding: 10px 12px; font-size: 14px; line-height: 19.6px; }
.btn--sm .direction-icon { width: 24px; height: 24px; }
.btn--xs { min-height: 40px; padding: 8px 10px; font-size: 12px; line-height: 16.8px; gap: 8px; }
.btn--block { width: 100%; }

.link-detail { display: inline-flex; align-items: center; gap: 20px; color: var(--blue); font: 500 16px/22.4px var(--font); transition: color .2s; }
.link-detail:hover { color: var(--blue-hover); font-weight: 600; }
.link-detail:hover .direction-icon { transform: translateX(3px); }
.link-detail--sm { font-size: 14px; gap: 14px; }
.link-detail--sm .direction-icon { width: 24px; height: 24px; }
.link-all { position: relative; display: inline-flex; align-items: center; gap: 17px; color: var(--blue); font: 500 16px/22.4px var(--font); }
.link-all > span { position: relative; padding-bottom: 2px; }
.link-all > span::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: currentColor; transform-origin: right; transition: transform .35s var(--ease); }
.link-all:hover { color: var(--blue-hover); font-weight: 600; }
.link-all:hover > span::after { animation: link-sweep .5s var(--ease); }
@keyframes link-sweep { 0% { transform: scaleX(1); transform-origin: right; } 49% { transform: scaleX(0); transform-origin: right; } 50% { transform: scaleX(0); transform-origin: left; } 100% { transform: scaleX(1); transform-origin: left; } }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; color: var(--white); background: linear-gradient(180deg, rgba(8, 43, 71, .44), rgba(8, 43, 71, .12)); border-bottom: 1px solid rgba(255, 255, 255, .13); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); transition: background-color .3s, color .3s, border-color .3s; }
.site-header.is-solid, .site-header--solid { color: var(--navy); background: var(--white); border-bottom-color: var(--line); }
.site-header__brand { display: flex; align-items: center; width: 100px; height: 70px; flex: none; }
.site-header__brand img { width: 100%; height: 100%; object-fit: contain; }
.site-nav { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 2px; }
.site-nav > a, .site-nav__projects > summary { display: flex; align-items: center; gap: 7px; height: 44px; padding: 11px 8px; border-radius: var(--radius); font: 500 14px/19.6px var(--font); white-space: nowrap; transition: background-color .2s, color .2s; }
.site-nav > a:hover, .site-nav__projects > summary:hover { background: rgba(255, 255, 255, .08); }
.site-nav > a.is-active, .site-nav__projects > summary.is-active { background: rgba(255, 255, 255, .08); }
.is-solid .site-nav > a:hover, .site-header--solid .site-nav > a:hover,
.is-solid .site-nav__projects > summary:hover, .site-header--solid .site-nav__projects > summary:hover { background: rgba(23, 114, 184, .05); color: var(--blue); }
.is-solid .site-nav > a.is-active, .site-header--solid .site-nav > a.is-active,
.is-solid .site-nav__projects > summary.is-active, .site-header--solid .site-nav__projects > summary.is-active { background: rgba(23, 114, 184, .05); color: var(--blue); }
.site-nav__projects { position: relative; }
.site-nav__projects > summary { list-style: none; cursor: pointer; }
.site-nav__projects > summary::-webkit-details-marker { display: none; }
.site-nav__projects > summary svg { width: 16px; height: 16px; transition: transform .2s; }
.site-nav__projects[open] > summary { background: rgba(255, 255, 255, .08); }
.is-solid .site-nav__projects[open] > summary, .site-header--solid .site-nav__projects[open] > summary { background: rgba(23, 114, 184, .05); color: var(--blue); }
.site-nav__projects[open] > summary svg { transform: rotate(180deg); }

.mega { position: absolute; top: calc(100% + 22px); left: 50%; width: 528px; transform: translateX(-50%); padding: 30px; background: #fafafa; border-top: 3px solid var(--blue); border-radius: 0 0 6px 6px; box-shadow: 0 18px 45px rgba(18, 50, 74, .09); color: var(--navy); }
.site-nav .mega { left: -318px; transform: none; } /* căn mép trái với menu chính (giống Figma) */
.mega__title { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 18px; border-bottom: 1px solid #cbdfea; font: 700 20px/28px var(--font); letter-spacing: -.02em; color: var(--navy); }
.mega__title svg { width: 22px; height: 22px; color: var(--blue); transition: transform .2s; }
.mega__title:hover svg { transform: translate(2px, -2px); }
.mega__cols { display: grid; grid-template-columns: 237px 206px; gap: 24px; padding-top: 16px; }
.mega__label { font: 600 12px/19.8px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.mega__item { display: flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 7px 28px 7px 8px; border-radius: 5px; font: 500 16px/24px var(--font); color: var(--navy); transition: background-color .2s, color .2s; }
.mega__item small { font: 400 12px/19.2px var(--font); color: #a9c5d7; }
.mega__item--place { min-height: 60px; }
.mega__item:hover { background: rgba(23, 114, 184, .06); color: var(--blue); }

.site-header__tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius); transition: background-color .2s; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: rgba(255, 255, 255, .1); }
.is-solid .icon-btn:hover, .site-header--solid .icon-btn:hover { background: rgba(23, 114, 184, .06); }
.lang { position: relative; }
.lang > summary { display: flex; align-items: center; gap: 7px; height: 46px; padding: 10px; border-radius: var(--radius); list-style: none; cursor: pointer; font: 500 16px/26.4px var(--font); }
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary img { width: 21px; height: 14px; border-radius: 2px; object-fit: cover; }
.lang > summary svg { width: 16px; height: 16px; margin-left: 3px; transition: transform .2s; }
.lang[open] > summary svg { transform: rotate(180deg); }
.lang__menu { position: absolute; right: 0; top: calc(100% + 13px); width: 112px; padding: 8px; background: var(--white); border: 1px solid #dbe6ed; border-radius: var(--radius-lg); box-shadow: 0 12px 32px rgba(18, 50, 74, .08); }
.lang__menu button { display: flex; align-items: center; gap: 10px; width: 100%; height: 46px; padding: 10px 8px; border-radius: var(--radius); font: 500 16px/26.4px var(--font); color: var(--slate); text-align: left; }
.lang__menu button img { width: 21px; height: 14px; border-radius: 2px; object-fit: cover; }
.lang__menu button i { margin-left: auto; font: 500 12px/19.8px var(--font); font-style: normal; color: var(--blue); }
.lang__menu button[aria-pressed="true"], .lang__menu button:hover { background: var(--surface-2); }
.menu-toggle { display: none; width: 25px; height: 43px; font: 400 26px/43px var(--font); color: inherit; }
.mobile-nav { display: none; }

@media (max-width: 1179px) {
  .site-header { gap: 24px; }
  .site-header__brand { width: 88px; height: 64px; }
  .site-nav { display: none; }
  .site-header__tools { gap: 14px; }
  .lang > summary { height: 42px; padding: 8px 6px; gap: 6px; font-size: 14px; line-height: 23.1px; }
  .site-header__cta { padding-inline: 14px; }
  .site-header__cta .direction-icon { width: 22px; height: 22px; }
  .menu-toggle { display: block; }
  .mobile-nav { position: fixed; inset: var(--header-h) 0 0; z-index: 99; display: block; overflow-y: auto; padding: 12px 16px 28px; background: var(--white); color: var(--navy); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; }
  .mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .mobile-nav > a, .mobile-nav__projects > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 12px 14px; margin-bottom: 2px; border-radius: var(--radius); font: 500 16px/22.4px var(--font); color: var(--navy); list-style: none; cursor: pointer; }
  .mobile-nav__projects > summary::-webkit-details-marker { display: none; }
  .mobile-nav__projects > summary svg { width: 16px; height: 16px; transition: transform .2s; }
  .mobile-nav__projects[open] > summary { background: var(--surface-2); color: var(--blue); }
  .mobile-nav__projects[open] > summary svg { transform: rotate(180deg); }
  .mobile-nav > a.is-active { color: var(--blue); }
  .mobile-nav .mega { position: static; width: auto; transform: none; margin: 4px 0 2px; padding: 14px 12px; box-shadow: none; }
  .mobile-nav .mega__title { font-size: 19px; padding-bottom: 12px; letter-spacing: -.01em; white-space: nowrap; }
  .mobile-nav .mega__cols { grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 12px; }
  .mobile-nav .mega__label { font-size: 12px; line-height: 16.8px; letter-spacing: .04em; margin-bottom: 5px; }
  .mobile-nav .mega__item { min-height: 48px; padding: 8px 3px; font-size: 14px; line-height: 21px; }
  .mobile-nav .mega__item small { margin-top: 3px; }
}
@media (max-width: 639px) {
  .site-header { gap: 6px; padding: 0 12px; }
  .site-header__brand { width: 60px; height: 48px; }
  .site-header__tools { gap: 4px; }
  .icon-btn { width: 28px; height: 36px; }
  .lang > summary { height: 40px; padding: 6px 3px; gap: 3px; font-size: 12px; line-height: 19.8px; }
  .lang > summary svg { margin-left: 0; }
  .site-header__cta { min-height: 40px; padding: 8px 10px; font-size: 12px; line-height: 16.8px; }
  .site-header__cta .direction-icon { display: none; }
  .menu-toggle { width: 23px; height: 40px; font-size: 24px; line-height: 40px; }
}

/* Trang có hero tối: nội dung chạy dưới header. Trang header trắng: chừa chỗ cho header. */
.page--solid-header main { padding-top: var(--header-h); }

/* ---------- breadcrumb ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 400 14px/23.1px var(--font); color: rgba(255, 255, 255, .82); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span[aria-hidden] { opacity: .7; }
.breadcrumb--dark { color: var(--slate-2); }
.breadcrumb--dark a:hover { color: var(--blue); }

/* ---------- form ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font: 500 16px/24px var(--font); color: var(--slate-3); }
.field > span b { font-weight: 500; color: var(--blue); }
.input { width: 100%; min-height: 54px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 4px rgba(23, 54, 75, .01); font: 400 16px/19.36px var(--font); color: var(--navy); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.input::placeholder { color: var(--muted); }
.input:focus { outline: none; border-color: var(--blue); background: #f7f9fb; box-shadow: 0 0 0 3px rgba(23, 114, 184, .08); }
textarea.input { min-height: 180px; resize: vertical; line-height: 24px; }

/* ---------- contact section (dùng chung mọi trang) ---------- */
.contact-cta { position: relative; z-index: 1; padding: 72px 0 120px; background: linear-gradient(180deg, #e8f3fb 0%, #edf6fc 45%, #ffffff 100%); }
.contact-cta__head { display: flex; align-items: flex-end; gap: 50px; margin-bottom: 86px; }
.contact-cta__head > div { flex: 0 1 910px; }
.contact-cta__head .h-section { margin-top: 21px; max-width: 640px; letter-spacing: -.035em; }
.page--index .contact-cta__head .h-section { letter-spacing: -.03em; }
@media (min-width: 1180px) {
  .contact-cta__head .h-section { max-width: 610px; }
  .page--index .contact-cta__head .h-section { max-width: 640px; }
  .page--san-pham-dich-vu .contact-cta__head .h-section { max-width: 770px; } /* Figma trang này ngắt sau "cho kế" */
}
.contact-cta__head > p { flex: 0 1 320px; margin-left: auto; padding-bottom: 4px; font: 400 16px/26.4px var(--font); color: var(--slate); text-wrap: pretty; }
.contact-cta__grid { display: grid; grid-template-columns: 579fr 636fr; gap: 65px; }
.contact-cta__media { position: relative; min-height: 667px; border-radius: var(--radius-lg); overflow: hidden; background: #dfe9f1; }
.contact-cta__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-cta__media::after { content: ''; position: absolute; inset: auto 0 0; height: 60%; background: linear-gradient(180deg, rgba(6, 43, 70, 0), rgba(6, 43, 70, .44)); }
.contact-card { padding: 36px 30px; background: var(--white); border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: 0 12px 40px rgba(23, 54, 75, .02); }
.contact-card .h-card { margin-bottom: 26px; }
.contact-form { display: flex; flex-direction: column; gap: 22px; padding-top: 25px; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form__actions { display: flex; justify-content: flex-end; padding-top: 10px; }
@media (max-width: 1179px) {
  .contact-cta { padding: 72px 0 120px; }
  .contact-cta__head { margin-bottom: 77px; }
  .contact-cta__head .h-section { max-width: 440px; }
  .contact-cta__head > p { flex: 0 0 188px; }
  .contact-cta__grid { grid-template-columns: 344fr 378fr; gap: 32px; }
}
@media (max-width: 639px) {
  .contact-cta { padding: 55px 0 80px; }
  .contact-cta__head .h-section { font-size: 36px; line-height: 43.2px; letter-spacing: -.035em; }
  .contact-cta__head { flex-direction: column; align-items: stretch; gap: 20px; margin-bottom: 28px; }
  .page--index .contact-cta__head { margin-bottom: 60px; }
  .contact-cta__head > div, .contact-cta__head > p { flex: none; margin-left: 0; }
  .contact-cta__head > p { max-width: 346.5px; }
  .contact-cta__grid { grid-template-columns: 1fr; gap: 28px; }
  .page--index .contact-cta__grid { gap: 32px; }
  .contact-form textarea.input { min-height: 190px; }
  .contact-cta__media { min-height: 260px; }
  .page--index .contact-cta__head .h-section { letter-spacing: -.03em; }
  .page--index .contact-cta__media { min-height: 240px; }
  .page--lien-he .contact-cta__media { min-height: 280px; }
  .contact-card { padding: 30px 22px; }
  .contact-form__row { grid-template-columns: 1fr; gap: 22px; }
  .contact-form__actions .btn { width: 100%; }
}

/* trang chủ: khoảng đệm riêng theo Figma (64 / 48 / 40) */
.page--index .contact-cta { padding-top: 64px; }
@media (max-width: 1179px) { .page--index .contact-cta { padding-top: 48px; } }
@media (max-width: 639px) { .page--index .contact-cta { padding-top: 40px; } }

/* ---------- footer ---------- */
.site-footer { position: relative; z-index: 1; overflow: hidden; padding: 100px 0 28px; background: var(--white); border-top: 1px solid var(--line); color: var(--slate-2); }
.site-footer__art { position: absolute; left: -130px; top: 1px; width: 936px; height: calc(100% - 1px); opacity: .045; pointer-events: none; background: url('../../footer-industrial-lineart.svg') left top / contain no-repeat; }
.site-footer__grid { position: relative; display: grid; grid-template-columns: minmax(0, 541fr) minmax(0, 649fr); column-gap: 90px; }
.site-footer__brand { display: block; width: 130px; height: 92px; margin-bottom: 28px; }
.site-footer__brand img { width: 100%; height: 100%; object-fit: contain; }
.site-footer__title { font: 500 36px/46.8px var(--font-head); letter-spacing: -.045em; color: var(--navy); }
.site-footer__intro { max-width: 390px; margin-top: 50px; font: 400 16px/26.4px var(--font); color: #587080; }
.site-footer__email { display: inline-block; margin-top: 30px; font: 500 20px/28px var(--font); color: var(--blue); }
.site-footer__phone { display: block; margin-top: 12px; font: 400 20px/33px var(--font); color: #47677d; }
.site-footer__social { display: flex; gap: 12px; margin-top: 26px; }
.site-footer__social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #cfdfeb; border-radius: 50%; background: var(--white); color: var(--blue); transition: background-color .2s, color .2s, border-color .2s; }
.site-footer__social a:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.site-footer__social svg { width: 19px; height: 19px; }
.site-footer__nav { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(3, auto); row-gap: 12px; column-gap: 27px; }
.site-footer__nav a { font: 500 14px/23.1px var(--font); letter-spacing: .007em; color: var(--navy); transition: color .2s; }
.site-footer__nav a:hover { color: var(--blue); }
.site-footer__offices { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 27px; row-gap: 32px; margin-top: 48px; }
.office__links a, .office__links span { white-space: nowrap; }
.office h5 { font: 500 16px/23.2px var(--font-head); color: var(--blue); }
.office address { margin-top: 8px; font: 400 14px/23.1px var(--font); font-style: normal; color: var(--slate-2); }
.office__links { display: grid; gap: 6px; margin-top: 9px; }
.office__links a, .office__links span { display: flex; align-items: center; gap: 10px; font: 400 14px/23.1px var(--font); color: var(--slate-2); }
.office__links .is-demo { font-size: 12px; line-height: 18px; }
.office__links .is-demo small { margin-left: 6px; font-size: 12px; opacity: .65; }
.office__links a:hover { color: var(--blue); }
.office__links svg { width: 15px; height: 15px; flex: none; color: #8aa7bb; }
.site-footer__bottom { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 56px; padding-top: 20px; border-top: 1px solid #e3edf3; }
.site-footer__bottom small { font: 400 12px/19.8px var(--font); color: #67869b; }
.site-footer__bottom nav { display: flex; gap: 22px; }
.site-footer__bottom button { font: 400 14px/23.1px var(--font); color: var(--slate-2); }
.site-footer__bottom button:hover { color: var(--blue); }
@media (max-width: 1179px) {
  .site-footer__grid { grid-template-columns: minmax(0, 324fr) minmax(0, 388fr); column-gap: 42px; }
  .site-footer__art { width: 542px; }
  .site-footer__offices { column-gap: 28px; }
}
@media (max-width: 639px) {
  .site-footer { padding-top: 64px; }
  .site-footer__art { left: -180px; width: 585px; height: 600px; opacity: .07; }
  .site-footer__grid { grid-template-columns: 1fr; row-gap: 44px; }
  .site-footer__brand { width: 120px; height: 86px; }
  .site-footer__title { font-size: 24px; line-height: 31.2px; letter-spacing: -.035em; }
  .site-footer__intro { margin-top: 50px; }
  .site-footer__nav { column-gap: 20px; }
  .site-footer__offices { grid-template-columns: 1fr; margin-top: 34px; }
  .site-footer { padding-bottom: 88px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 36px; }
}

@media (min-width: 640px) and (max-width: 1179px) { .office h5 { max-width: 128px; } }

/* ---------- quick contact dock (menu chat) ---------- */
.dock { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: flex; align-items: center; gap: 12px; }
.dock__toggle { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: var(--white); background: linear-gradient(135deg, #188de0 5%, #168ac4 45%, #64bd69 100%); box-shadow: 0 4px 14px rgba(18, 108, 155, .16); transition: transform .2s; }
.dock__toggle:hover { transform: scale(1.05); }
.dock__toggle svg { width: 29px; height: 29px; }
.dock__toggle .i-close { display: none; width: 26px; height: 26px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.dock.is-open .dock__toggle .i-chat { display: none; }
.dock.is-open .dock__toggle .i-close { display: block; }
.dock__panel { display: flex; gap: 6px; padding: 7px; background: rgba(255, 255, 255, .95); border: 1px solid rgba(255, 255, 255, .85); border-radius: 999px; box-shadow: 0 8px 30px rgba(18, 50, 74, .13); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); transform-origin: right center; transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
.dock:not(.is-open) .dock__panel { opacity: 0; visibility: hidden; transform: translateX(16px) scale(.96); }
.dock__item { position: relative; display: grid; place-items: center; width: 46px; height: 44px; padding: 10px; border-radius: 22px; transition: background-color .2s; }
.dock__item:hover { background: var(--surface-2); }
.dock__item img, .dock__item svg { width: 26px; height: 26px; }
.dock__item--phone { color: #2b9a4a; }
.dock__item--brochure { color: var(--blue); }
.dock__tip { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); padding: 4px 8px; border-radius: 4px; background: var(--navy); color: var(--white); font: 500 12px/18px var(--font); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.dock__item:hover .dock__tip, .dock__item:focus-visible .dock__tip { opacity: 1; }
@media (max-width: 639px) {
  .dock { right: 16px; bottom: 16px; gap: 8px; }
  .dock__panel { gap: 0; padding: 5px; }
  .dock__item { width: 40px; height: 40px; padding: 8px; }
  .dock__item img, .dock__item svg { width: 22px; height: 22px; }
  .dock__toggle { width: 52px; height: 52px; }
}

/* ---------- dialogs ---------- */
.modal { width: min(540px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 44px 36px 36px; border: 1px solid #d8e6f0; border-radius: 12px; background: var(--white); color: var(--navy); box-shadow: 0 24px 80px rgba(7, 38, 60, .2); }
.modal::backdrop { background: rgba(8, 43, 71, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .25s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal__close { position: absolute; top: 16px; right: 22px; width: 31px; height: 49px; font: 400 28px/46px var(--font); color: #52758a; }
.modal__close:hover { color: var(--blue); }
.modal :focus:not(:focus-visible) { outline: none; }
.modal h3 { margin-top: 21px; font: 500 24px/33.6px var(--font-head); letter-spacing: -.03em; color: #123a53; }
.modal__body { margin-top: 20px; font: 400 16px/26.4px var(--font); color: #123a53; }
.modal__note { margin-top: 20px; padding-top: 16px; border-top: 1px solid #e1edf5; font: 400 14px/23.1px var(--font); color: #678093; }
.modal__actions { margin-top: 14px; padding-top: 22px; }
.modal__actions .btn { min-height: 46px; }
.modal__links { display: grid; gap: 8px; margin-top: 18px; font: 500 16px/24px var(--font); color: var(--blue); }

.search-modal { width: min(800px, calc(100vw - 32px)); max-height: calc(100vh - 64px); padding: 0; overflow: hidden; }
.search-modal[open] { display: flex; flex-direction: column; }
.search-modal__head { position: relative; padding: 40px 32px 0; }
.search-modal__head .h-section { padding: 14px 40px 0 0; }
.search-modal__close { position: absolute; top: 36px; right: 39px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); color: var(--slate); }
.search-modal__close svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.search-field { display: flex; align-items: center; gap: 14px; height: 60px; margin-top: 24px; padding: 0 16px; background: #f7f9fb; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.search-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23, 114, 184, .08); }
.search-field svg { width: 20px; height: 20px; flex: none; color: var(--blue); }
.search-field input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font: 400 16px/24px var(--font); color: var(--navy); }
.search-field input::placeholder { color: var(--muted); }
.search-field button { font: 400 23px/1 var(--font); color: var(--slate); padding: 4px; }
.search-filters { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 18px; }
.search-filters button { padding: 8px 12px; border-radius: 5px; background: var(--surface-2); font: 400 14px/23.1px var(--font); color: var(--slate); transition: background-color .2s, color .2s; }
.search-filters button.is-active { background: var(--blue); color: var(--white); }
.search-status { padding-top: 18px; font: 400 16px/26.4px var(--font); color: var(--slate); }
.search-results { flex: 1; overflow-y: auto; padding: 0 32px 24px; }
.search-hit { display: flex; align-items: center; gap: 24px; padding: 22px 4px; border-bottom: 1px solid var(--line); }
.search-hit:hover h4 { color: var(--blue); }
.search-hit > div { flex: 1; min-width: 0; }
.search-hit__meta { display: flex; align-items: center; gap: 10px; font: 400 12px/19.2px var(--font); color: var(--slate); }
.search-hit__tag { padding: 3px 7px; border-radius: 3px; background: #eef6e8; color: #4b7f26; font-size: 12px; line-height: 18px; }
.search-hit h4 { margin-top: 10px; font: 500 24px/33.6px var(--font-head); letter-spacing: -.02em; color: var(--navy); transition: color .2s; }
.search-hit p { margin-top: 8px; font: 400 16px/26.4px var(--font); color: var(--slate); }
.search-hit .direction-icon { color: var(--blue); }
.search-suggest { padding: 18px 0 4px; font: 400 14px/23.1px var(--font); color: var(--slate-2); }
@media (max-width: 639px) {
  .modal { padding: 36px 22px 26px; }
  .search-modal { max-height: calc(100vh - 32px); }
  .search-modal__head { padding: 26px 20px 0; }
  .search-modal__head .h-section { font-size: 36px; }
  .search-modal__close { top: 20px; right: 20px; }
  .search-results { padding: 0 20px 20px; }
  .search-hit h4 { font-size: 20px; line-height: 28px; }
  .search-hit p { font-size: 14px; line-height: 23px; }
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- accordion / tabs (hành vi trong site.js) ---------- */
[data-accordion-panel] { overflow: hidden; max-height: 0; transition: max-height .35s var(--ease); }
[data-tab-panel][hidden] { display: none; }

/* ---------- hero sticky (Figma: "Hero · Sticky scroll & chuyển tiếp gradient") ----------
   <section class="hero hero-sticky">…</section><section class="after-hero">…</section>
   Hero đứng yên, section sau trượt lên che dần (nền section sau tự làm gradient trắng ở mép trên).
   Mobile: cuộn dọc bình thường. */
.hero-sticky { position: sticky; top: 0; z-index: 0; }
.after-hero { position: relative; z-index: 1; }
/* mọi phần sau hero phải nằm trên hero đang ghim và có nền đặc, nếu không hero sẽ lộ qua khi cuộn */
.hero-sticky ~ * { position: relative; z-index: 1; }
.hero-sticky ~ *:not(.after-hero) { background-color: var(--white); }
@media (max-width: 639px) { .hero-sticky { position: relative; } }

/* ---------- CJK (bản tiếng Trung / Nhật / Hàn) ---------- */
:root:lang(zh-CN) { --font: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif; --font-head: 'Kufam', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif; }
:root:lang(ja) { --font: 'Inter', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', 'Noto Sans JP', sans-serif; --font-head: 'Kufam', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', 'Noto Sans JP', sans-serif; }
:root:lang(ko) { --font: 'Inter', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif; --font-head: 'Kufam', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif; }
:root:lang(zh-CN) :is(h1, h2, h3, h4, h5, .h-display, .h-section, .h-sub, .h-card, .h-small),
:root:lang(ja) :is(h1, h2, h3, h4, h5, .h-display, .h-section, .h-sub, .h-card, .h-small),
:root:lang(ko) :is(h1, h2, h3, h4, h5, .h-display, .h-section, .h-sub, .h-card, .h-small) { letter-spacing: 0; line-break: strict; }
:root:lang(ko) :is(h1, h2, h3, h4, h5, .h-display, .h-section, .h-sub, .h-card, .h-small) { word-break: keep-all; overflow-wrap: anywhere; }
:root:lang(zh-CN) .eyebrow, :root:lang(ja) .eyebrow, :root:lang(ko) .eyebrow { letter-spacing: .04em; }
:root:lang(ko) body { word-break: keep-all; overflow-wrap: anywhere; }
