/* ═══════════════════════════════════════════════════════
   PIARC — Design System v2
   Clean, professional, readable
   Font: Inter (Google Fonts)
═══════════════════════════════════════════════════════ */

/* ─── Font ───────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap&subset=vietnamese');

/* ─── Design Tokens ──────────────────────────────────── */
:root {
  --red:        #C8102E;
  --red-dark:   #A00D24;
  --red-light:  #E8001F;
  --red-muted:  rgba(200,16,46,.1);
  --black:      #0D0D0D;
  --gray-900:   #141414;
  --gray-800:   #1F1F1F;
  --gray-700:   #333333;
  --gray-600:   #555555;
  --gray-500:   #777777;
  --gray-400:   #999999;
  --gray-300:   #BBBBBB;
  --gray-200:   #DDDDDD;
  --gray-100:   #F0F0F0;
  --gray-50:    #F7F7F7;
  --white:      #FFFFFF;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --text-xs:   0.72rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;
  --sp-4: 1rem;     --sp-5: 1.25rem;  --sp-6: 1.5rem;
  --sp-8: 2rem;     --sp-10: 2.5rem;  --sp-12: 3rem;
  --sp-16: 4rem;    --sp-20: 5rem;    --sp-24: 6rem;
  --max-w:     1260px;
  --radius:    6px;
  --radius-lg: 12px;
  --nav-h:     68px;
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
  --t-slow: 400ms ease;
  --shadow-sm:  0 1px 4px rgba(0,0,0,.08);
  --shadow:     0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:  0 12px 48px rgba(0,0,0,.14);
  --shadow-red: 0 6px 28px rgba(200,16,46,.30);
}

/* ─── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ─── Utilities ──────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-6); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-red { color: var(--red); }
.text-center { text-align: center; }

/* ─── Section ────────────────────────────────────────── */
.section { padding: var(--sp-20) 0; }
.section--dark  { background: var(--gray-900); color: var(--white); }
.section--light { background: var(--gray-50); }
.section__label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--sp-3);
}
.section__title {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: var(--sp-4);
}
.section--dark .section__title { color: var(--white); }
.section__subtitle {
  font-size: var(--text-lg);
  color: var(--gray-500);
  max-width: 560px;
  line-height: 1.7;
}
.section--dark .section__subtitle { color: var(--gray-400); }
.section__header { margin-bottom: var(--sp-12); }
.section__header--center { text-align: center; }
.section__header--center .section__subtitle { margin: 0 auto; }

/* ─── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: .8rem 1.75rem;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: var(--radius);
  transition: all var(--t-base);
  white-space: nowrap;
  line-height: 1.4;
}
.btn--primary { background: var(--red); color: var(--white); box-shadow: var(--shadow-red); }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 10px 36px rgba(200,16,46,.38); }
.btn--outline { border: 1.5px solid currentColor; color: var(--red); }
.btn--outline:hover { background: var(--red); color: var(--white); border-color: var(--red); transform: translateY(-2px); }
.btn--outline-white { border: 1.5px solid rgba(255,255,255,.35); color: var(--white); }
.btn--outline-white:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.btn--lg { padding: .95rem 2.25rem; font-size: var(--text-base); }
.btn--sm { padding: .45rem 1.1rem; font-size: var(--text-xs); font-weight: 600; }

/* ─── Navigation ─────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; padding: 0 var(--sp-6);
  transition: background var(--t-slow), box-shadow var(--t-slow);
}
.nav--scrolled {
  background: rgba(13,13,13,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,.05);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--max-w); margin: 0 auto; gap: var(--sp-8);
}
.nav__logo {
  display: flex; align-items: center; gap: var(--sp-3);
  font-size: 1.45rem; font-weight: 800; color: var(--white);
  letter-spacing: -.02em; flex-shrink: 0;
}
.nav__logo-mark {
  width: 34px; height: 34px; background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-sm); font-weight: 800; color: var(--white);
  border-radius: var(--radius);
}
.nav__links { display: flex; align-items: center; gap: var(--sp-6); flex: 1; justify-content: center; }
.nav__link {
  font-size: var(--text-sm); font-weight: 500;
  color: rgba(255,255,255,.7); transition: color var(--t-fast);
  position: relative; padding-bottom: 2px;
}
.nav__link::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 2px; background: var(--red);
  transform: scaleX(0); transition: transform var(--t-base);
  transform-origin: left; border-radius: 2px;
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after, .nav__link--active::after { transform: scaleX(1); }
.nav__link--active { color: var(--white); }
.nav__cta { flex-shrink: 0; }
.nav__lang { display: flex; align-items: center; flex-shrink: 0; }
.nav__hamburger { display: none; flex-direction: column; gap: 5px; padding: var(--sp-2); }
.nav__hamburger span { display: block; width: 22px; height: 2px; background: var(--white); transition: all var(--t-base); border-radius: 2px; }
.nav__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.nav__mobile {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--gray-900);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: var(--sp-6); z-index: 99;
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.nav__mobile.open { display: flex; flex-direction: column; gap: var(--sp-4); }
.nav__mobile .nav__link { font-size: var(--text-base); color: rgba(255,255,255,.75); }

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  min-height: 100svh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  /* Nền xám thép — sáng hơn đen */
  background-color: #2a2a2e;
  /* Grid pattern công nghiệp */
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(160deg, #1c1c20 0%, #2e1a1a 50%, #1c1c20 100%);
  background-size: 60px 60px, 60px 60px, 100% 100%;
}
.hero::after {
  content: '';
  position: absolute;
  top: -10%; right: -5%;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,16,46,.28) 0%, rgba(200,16,46,.06) 50%, transparent 70%);
  pointer-events: none; z-index: 1;
}
.hero__slider {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero__slider .hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}
.hero__slider .hero__bg.active {
  opacity: .45;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(28,28,32,.75) 0%,
    rgba(28,28,32,.40) 60%,
    rgba(28,28,32,.10) 100%
  );
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 4px; height: 100%; background: var(--red); z-index: 2;
}
.hero__content {
  position: relative; z-index: 2;
  max-width: var(--max-w); width: 100%;
  padding: calc(var(--nav-h) + var(--sp-20)) var(--sp-6) var(--sp-16);
  margin: 0 auto;
}
.hero__title {
  font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800;
  line-height: 1.1; letter-spacing: -.03em;
  color: var(--white);
  margin-bottom: var(--sp-5); max-width: 720px;
}
.hero__title .accent { color: var(--red); }
.hero__badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: rgba(200,16,46,.12); border: 1px solid rgba(200,16,46,.25);
  border-radius: 100px; padding: .35rem .9rem;
  font-size: var(--text-xs); font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: #ff7a8a; margin-bottom: var(--sp-6);
}
.hero__title {
  font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800;
  line-height: 1.1; letter-spacing: -.03em; color: var(--white);
  margin-bottom: var(--sp-5); max-width: 700px;
}
.hero__title span { color: var(--red); }
.hero__desc {
  font-size: var(--text-lg); color: rgba(255,255,255,.6);
  max-width: 540px; margin-bottom: var(--sp-10); line-height: 1.75; font-weight: 400;
}
.hero__actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; align-items: center; }
.hero__scroll {
  position: absolute; bottom: var(--sp-8); left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
  color: rgba(255,255,255,.3); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, rgba(200,16,46,.5), transparent);
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }

/* ─── Stats Bar ──────────────────────────────────────── */
.stats-bar { background: var(--red); padding: var(--sp-5) 0; }
.stats-bar__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--sp-6); text-align: center; }
.stat__value { font-size: var(--text-3xl); font-weight: 800; color: var(--white); line-height: 1; }
.stat__label { font-size: var(--text-sm); color: rgba(255,255,255,.75); margin-top: var(--sp-1); }

/* ─── Cards ──────────────────────────────────────────── */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--gray-100);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--gray-200); }
.card__img { aspect-ratio: 4/3; overflow: hidden; background: var(--gray-100); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: var(--sp-5); }
.card__tag { font-size: var(--text-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: var(--sp-2); }
.card__title { font-size: var(--text-base); font-weight: 700; margin-bottom: var(--sp-3); line-height: 1.4; color: var(--gray-900); }
.card__desc { font-size: var(--text-sm); color: var(--gray-500); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__footer { padding: var(--sp-4) var(--sp-5); border-top: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }

/* ─── Grid Layouts ───────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }

/* ─── Project Filter ─────────────────────────────────── */
.project-filter { display: flex; gap: var(--sp-3); margin-bottom: var(--sp-8); flex-wrap: wrap; }
.filter-btn { padding: .45rem 1.1rem; font-size: var(--text-sm); font-weight: 600; border: 1.5px solid var(--gray-200); border-radius: 100px; color: var(--gray-500); transition: all var(--t-fast); }
.filter-btn:hover, .filter-btn.active { border-color: var(--red); color: var(--red); background: var(--red-muted); }

/* ─── Capability Cards ───────────────────────────────── */
.cap-group { margin-bottom: var(--sp-16); }
.cap-group__label {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-size: var(--text-sm); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--white); background: var(--gray-800);
  border-left: 3px solid var(--red); padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-6); border-radius: 0 var(--radius) var(--radius) 0;
}
.cap-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 4px; border-radius: var(--radius-lg); overflow: hidden; }
.cap-hero__panel { position: relative; aspect-ratio: 4/3; overflow: hidden; cursor: pointer; }
.cap-hero__panel img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.cap-hero__panel:hover img { transform: scale(1.05); }
.cap-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,13,13,.85) 0%, transparent 55%); display: flex; flex-direction: column; justify-content: flex-end; padding: var(--sp-5); }
.cap-hero__title { font-size: var(--text-lg); font-weight: 700; color: var(--white); margin-bottom: var(--sp-1); }
.cap-hero__sub { font-size: var(--text-xs); color: rgba(255,255,255,.55); }

/* ─── Company Profile Page ───────────────────────────── */
.profile-nav { position: sticky; top: var(--nav-h); z-index: 50; background: var(--white); border-bottom: 1px solid var(--gray-100); padding: 0 var(--sp-6); }
.profile-nav__inner { display: flex; gap: var(--sp-6); max-width: var(--max-w); margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.profile-nav__inner::-webkit-scrollbar { display: none; }
.profile-nav__link { padding: var(--sp-4) 0; font-size: var(--text-sm); font-weight: 600; color: var(--gray-500); border-bottom: 2px solid transparent; white-space: nowrap; transition: all var(--t-fast); }
.profile-nav__link:hover, .profile-nav__link.active { color: var(--red); border-bottom-color: var(--red); }

/* ─── Key Facts ──────────────────────────────────────── */
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--gray-100); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); overflow: hidden; }
.fact-item { background: var(--white); padding: var(--sp-8) var(--sp-6); text-align: center; transition: background var(--t-fast); }
.fact-item:hover { background: var(--gray-50); }
.fact-item__value { font-size: var(--text-4xl); font-weight: 800; color: var(--red); line-height: 1; margin-bottom: var(--sp-2); }
.fact-item__label { font-size: var(--text-sm); color: var(--gray-500); font-weight: 500; }

/* ─── Workshop Section ───────────────────────────────── */
.workshop-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--sp-12); align-items: center; }
.workshop-imgs { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--sp-3); aspect-ratio: 1; }
.workshop-img { border-radius: var(--radius); overflow: hidden; }
.workshop-img:first-child { grid-row: 1 / 3; }
.workshop-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.workshop-img:hover img { transform: scale(1.04); }

/* ─── Clients (Single Line Scrolling Marquee) ──────────── */
.clients-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: var(--sp-2) 0;
}
/* Fading edges */
.clients-wrapper::before,
.clients-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.clients-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--gray-50) 0%, transparent 100%);
}
.clients-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--gray-50) 0%, transparent 100%);
}
.clients-track {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  width: max-content;
  animation: scrollLogos 45s linear infinite;
}
.clients-track:hover {
  animation-play-state: paused;
}
@keyframes scrollLogos {
  0% { transform: translateX(0); }
  /* Translate exactly 50% of the total width minus half a gap. 
     Since gap is 1rem (var(--sp-4)), half is 0.5rem */
  100% { transform: translateX(calc(-50% - (var(--sp-4) / 2))); }
}
.client-logo {
  background: var(--white);
  padding: var(--sp-3) var(--sp-5);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  filter: grayscale(1);
  opacity: .6;
  transition: all var(--t-base);
  display: flex; align-items: center; justify-content: center;
  height: 80px; width: 160px; flex-shrink: 0;
}
.client-logo:hover {
  filter: grayscale(0);
  opacity: 1;
  box-shadow: var(--shadow);
  border-color: var(--white);
  transform: translateY(-2px);
}
.client-logo img {
  max-height: 48px;
  max-width: 130px;
  object-fit: contain;
}

/* ─── Footer ─────────────────────────────────────────── */
.footer { background: var(--gray-900); color: rgba(255,255,255,.55); padding: var(--sp-16) 0 var(--sp-8); }
.footer__red-line { height: 3px; background: var(--red); margin-bottom: var(--sp-12); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--sp-8); margin-bottom: var(--sp-12); }
.footer__brand { max-width: 300px; }
.footer__logo { font-size: 1.6rem; font-weight: 800; color: var(--white); margin-bottom: var(--sp-4); display: flex; align-items: center; gap: var(--sp-3); }
.footer__desc { font-size: var(--text-sm); line-height: 1.75; margin-bottom: var(--sp-6); }
.footer__social { display: flex; gap: var(--sp-2); }
.footer__social-link { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: var(--text-sm); transition: all var(--t-fast); }
.footer__social-link:hover { border-color: var(--red); background: rgba(200,16,46,.15); color: var(--white); }
.footer__col-title { font-size: var(--text-xs); font-weight: 700; color: var(--white); letter-spacing: .08em; text-transform: uppercase; margin-bottom: var(--sp-5); }
.footer__links { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer__link { font-size: var(--text-sm); transition: color var(--t-fast); }
.footer__link:hover { color: var(--white); }
.footer__contact-item { display: flex; gap: var(--sp-3); font-size: var(--text-sm); margin-bottom: var(--sp-3); align-items: flex-start; }
.footer__bottom { padding-top: var(--sp-8); border-top: 1px solid rgba(255,255,255,.06); display: flex; justify-content: space-between; align-items: center; font-size: var(--text-xs); }

/* ─── Floating Buttons ───────────────────────────────── */
.floating-btns { position: fixed; bottom: var(--sp-8); right: var(--sp-6); z-index: 200; display: flex; flex-direction: column; gap: var(--sp-3); align-items: flex-end; }
.f-btn { display: flex; align-items: center; gap: 0; height: 50px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(0,0,0,0.08); border-radius: 25px; padding: 0; box-shadow: 0 4px 15px rgba(0,0,0,0.08); cursor: pointer; text-decoration: none; overflow: hidden; transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); width: 50px; justify-content: flex-start; animation: floatIn 0.5s ease backwards; }
.f-btn:hover { width: 170px; box-shadow: 0 8px 25px rgba(0,0,0,0.12); border-color: rgba(0,0,0,0.12); }
.f-btn__icon { width: 50px; height: 50px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--gray-700); background: transparent; transition: background 0.3s ease, color 0.3s ease; }
.f-btn__icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.f-btn__label { white-space: nowrap; font-size: 0.95rem; font-weight: 700; color: var(--gray-800); opacity: 0; transform: translateX(-10px); transition: all 0.3s ease; padding-right: 1.2rem; pointer-events: none; }
.f-btn:hover .f-btn__label { opacity: 1; transform: translateX(0); transition-delay: 0.1s; }
.f-btn--quote { background: var(--red); border: none; box-shadow: 0 6px 20px rgba(200,16,46,.3); animation-delay: 0s; width: auto; padding-right: 1.2rem; border-radius: 8px; }
.f-btn--quote .f-btn__icon { color: var(--white); }
.f-btn--quote .f-btn__label { color: var(--white); opacity: 1; transform: translateX(0); }
.f-btn--quote:hover { box-shadow: 0 10px 30px rgba(200,16,46,.4); width: auto; }
.f-btn--zalo { animation-delay: 0.1s; }
.f-btn--zalo:hover .f-btn__icon { background: rgba(0, 104, 255, 0.1); color: #0068FF; }
.f-btn--phone { animation-delay: 0.2s; }
.f-btn--phone:hover .f-btn__icon { background: rgba(22, 163, 74, 0.1); color: #16a34a; }
@keyframes floatIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ─── Article / Video ────────────────────────────────── */
.article-content { max-width: 760px; margin: 0 auto; font-size: var(--text-lg); line-height: 1.8; }
.article-content h2 { font-size: var(--text-2xl); font-weight: 700; margin: var(--sp-8) 0 var(--sp-4); color: var(--gray-900); }
.article-content h3 { font-size: var(--text-xl); font-weight: 600; margin: var(--sp-6) 0 var(--sp-3); color: var(--gray-900); }
.article-content p { margin-bottom: var(--sp-5); }
.article-content img { border-radius: var(--radius-lg); margin: var(--sp-8) 0; }
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--black); }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* ─── Page Hero ──────────────────────────────────────── */
.page-hero { background: var(--gray-900); padding: calc(var(--nav-h) + var(--sp-16)) var(--sp-6) var(--sp-12); position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--red); }
.page-hero__title { font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl)); font-weight: 800; color: var(--white); margin-bottom: var(--sp-3); letter-spacing: -.02em; line-height: 1.15; }
.page-hero__sub { color: rgba(255,255,255,.5); font-size: var(--text-lg); }

/* ─── Breadcrumb ─────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--text-sm); color: var(--gray-400); margin-bottom: var(--sp-6); }
.breadcrumb__sep { color: var(--gray-200); }

/* ─── Animations ─────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --text-5xl: 2.25rem; --text-6xl: 2.75rem; }
  .nav__links, .nav__cta, .nav__lang { display: none; }
  .nav__hamburger { display: flex; }
  .grid-3, .grid-2, .project-grid { grid-template-columns: 1fr; }
  .cap-hero { grid-template-columns: 1fr; }
  .workshop-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: var(--sp-3); text-align: center; }
  .hero__content { padding-top: calc(var(--nav-h) + var(--sp-12)); }
  .hero::before { display: none; }

}
@media (max-width: 480px) {
  .container { padding: 0 var(--sp-4); }
  .section { padding: var(--sp-12) 0; }
  .hero__actions { flex-direction: column; width: 100%; }
  .btn--lg { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════
   LANGUAGE SWITCHER
═══════════════════════════════════════════════════════ */
html.lang-vi .en { display: none !important; }
html.lang-en .vi { display: none !important; }
span.vi, span.en { display: inline; }
p.vi, p.en, h1.vi, h1.en, h2.vi, h2.en, h3.vi, h3.en, div.vi, div.en, li.vi, li.en, a.vi, a.en { display: block; }
html.lang-vi .en { display: none !important; }
html.lang-en .vi { display: none !important; }

.lang-switcher { display: flex; align-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; overflow: hidden; flex-shrink: 0; transition: border-color var(--t-base); }
.lang-switcher:hover { border-color: rgba(255,255,255,.4); }
.lang-switcher__btn { padding: .28rem .68rem; font-size: .7rem; font-weight: 700; letter-spacing: .07em; color: rgba(255,255,255,.4); background: transparent; border: none; cursor: pointer; transition: color var(--t-fast), background var(--t-fast); font-family: var(--font); line-height: 1.2; }
.lang-switcher__btn.active { background: var(--red); color: var(--white); }
.lang-switcher__btn:hover:not(.active) { color: var(--white); background: rgba(255,255,255,.07); }
.lang-switcher__divider { width: 1px; height: 12px; background: rgba(255,255,255,.18); flex-shrink: 0; }
.lang-switcher--mobile { margin: var(--sp-3) 0 0; border-color: rgba(255,255,255,.12); }
.lang-switcher--mobile .lang-switcher__btn { padding: .4rem 1rem; font-size: .78rem; }
@media (max-width: 768px) { .nav__lang { display: none; } }
@media (min-width: 769px) { .lang-switcher--mobile { display: none !important; } }

/* ═══════════════════════════════════════════════════════
   QUOTE CALCULATOR MODAL
═══════════════════════════════════════════════════════ */



/* ── Modal overlay ─────────────────────────────────── */
.qmodal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10,10,10,.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
}
.qmodal-overlay.open {
  display: flex;
  animation: fadeOverlay .25s ease;
}
@keyframes fadeOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Modal box ─────────────────────────────────────── */
.qmodal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 620px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,.35);
  animation: slideModal .3s cubic-bezier(.22,1,.36,1);
  position: relative;
}
@keyframes slideModal {
  from { opacity: 0; transform: translateY(32px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

/* ── Modal header ──────────────────────────────────── */
.qmodal__header {
  background: linear-gradient(135deg, var(--gray-900) 0%, #1a0006 100%);
  padding: var(--sp-6) var(--sp-8);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
  overflow: hidden;
}
.qmodal__header::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--red);
}
.qmodal__header-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--sp-1);
}
.qmodal__header-title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--sp-1);
}
.qmodal__header-sub {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.45);
}
.qmodal__close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-5);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  transition: all var(--t-fast);
  border: none;
  font-family: var(--font);
}
.qmodal__close:hover {
  background: rgba(200,16,46,.30);
  color: var(--white);
}

/* ── Modal body ────────────────────────────────────── */
.qmodal__body { padding: var(--sp-6) var(--sp-8); }

/* ── Step indicator ────────────────────────────────── */
.qsteps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--sp-6);
}
.qstep {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex: 1;
}
.qstep__num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-400);
  font-size: .75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--t-base);
}
.qstep.active .qstep__num  { background: var(--red); color: var(--white); }
.qstep.done   .qstep__num  { background: #16a34a; color: var(--white); }
.qstep__label {
  font-size: .72rem;
  font-weight: 600;
  color: var(--gray-400);
  transition: color var(--t-base);
}
.qstep.active .qstep__label { color: var(--gray-800); }
.qstep.done   .qstep__label { color: #16a34a; }
.qstep__line {
  flex: 1;
  height: 2px;
  background: var(--gray-100);
  margin: 0 var(--sp-2);
  border-radius: 2px;
  transition: background var(--t-base);
}
.qstep.done + .qstep .qstep__line,
.qstep__line.done { background: #16a34a; }

/* ── Form panels ───────────────────────────────────── */
.qpanel { display: none; }
.qpanel.active { display: block; animation: panelIn .25s ease; }
@keyframes panelIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0);    }
}

.qpanel__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--sp-4);
}

/* ── Option cards (type selector) ──────────────────── */
.qoptions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.qoption {
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 0;
  cursor: pointer;
  transition: all var(--t-fast);
  text-align: center;
  position: relative;
  user-select: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
}
.qoption:hover   { border-color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.qoption.selected { border-color: var(--red); background: var(--red-muted); }
.qoption.selected::after {
  content: '✓';
  position: absolute;
  top: var(--sp-2); right: var(--sp-2);
  width: 22px; height: 22px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  font-size: .75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(200,16,46,.4);
  z-index: 2;
}
.qoption__icon  { 
  width: 100%; 
  aspect-ratio: 16/10;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  overflow: hidden;
}
.qoption__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.qoption:hover .qoption__icon img {
  transform: scale(1.05);
}
.qoption__content {
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
}
.qoption__label { font-size: .85rem; font-weight: 700; color: var(--gray-800); }
.qoption__sub   { font-size: .7rem; color: var(--gray-500); margin-top: 4px; }

/* ── Slider group ──────────────────────────────────── */
.qslider-group { margin-bottom: var(--sp-5); }
.qslider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--sp-2);
}
.qslider-value {
  font-size: .9rem;
  font-weight: 800;
  color: var(--red);
  min-width: 60px;
  text-align: right;
}
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--red);
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}
.stat-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-600);
}

/* Legal Content Plain Text Parsing */
.legal-content p:first-child {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1C1C1E;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}
.legal-content p:nth-child(2) {
  font-size: 1.1rem;
  color: #1C1C1E;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.legal-content p {
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 1rem;
  text-align: justify;
}
.legal-content p:last-child {
  margin-bottom: 0;
}
input[type=range].qrange {
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--red) var(--pct, 0%), var(--gray-100) var(--pct, 0%));
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
input[type=range].qrange::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 2px 8px rgba(200,16,46,.4);
  cursor: pointer;
  transition: transform var(--t-fast);
}
input[type=range].qrange::-webkit-slider-thumb:hover { transform: scale(1.2); }

/* ── Select field ──────────────────────────────────── */
.qselect-wrap { position: relative; margin-bottom: var(--sp-4); }
.qselect-wrap select {
  width: 100%;
  padding: .7rem 2.5rem .7rem 1rem;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .875rem;
  color: var(--gray-800);
  background: var(--white);
  cursor: pointer;
  transition: border-color var(--t-fast);
  -webkit-appearance: none;
  appearance: none;
}
.qselect-wrap select:focus { outline: none; border-color: var(--red); }
.qselect-wrap::after {
  content: '▾';
  position: absolute;
  right: 1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
  font-size: .8rem;
}

/* ── Text input ────────────────────────────────────── */
.qinput-wrap { margin-bottom: var(--sp-4); }
.qinput-wrap label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: var(--sp-2);
}
.qinput-wrap input, .qinput-wrap textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .875rem;
  color: var(--gray-800);
  transition: border-color var(--t-fast);
  resize: vertical;
}
.qinput-wrap input:focus, .qinput-wrap textarea:focus {
  outline: none;
  border-color: var(--red);
}
.qinput-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }

/* ── Result panel ──────────────────────────────────── */
.qresult {
  background: var(--white);
  border: 1px solid var(--gray-100);
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  border-radius: var(--radius);
  padding: var(--sp-6);
  color: var(--gray-900);
  margin-bottom: var(--sp-5);
  display: none;
}
.qresult.show { display: block; animation: panelIn .3s ease; }
.qresult__label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--sp-2);
}
.qresult__price {
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.qresult__price span { font-size: var(--text-lg); font-weight: 500; color: rgba(255,255,255,.5); }
.qresult__note {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  line-height: 1.55;
}
.qresult__breakdown {
  margin-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.qresult__row {
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}
.qresult__row b { color: rgba(255,255,255,.8); font-weight: 600; }

/* ── Navigation buttons ────────────────────────────── */
.qnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--gray-100);
  gap: var(--sp-3);
}
.qbtn {
  padding: .7rem 1.8rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--t-fast);
  border: none;
}
.qbtn--back {
  background: var(--gray-100);
  color: var(--gray-600);
}
.qbtn--back:hover { background: var(--gray-200); color: var(--gray-800); }
.qbtn--next {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(200,16,46,.30);
  margin-left: auto;
}
.qbtn--next:hover {
  background: var(--red-dark);
  box-shadow: 0 6px 24px rgba(200,16,46,.45);
  transform: translateY(-1px);
}
.qbtn--submit {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: var(--white);
  flex: 1;
  text-align: center;
  box-shadow: 0 4px 16px rgba(22,163,74,.30);
}
.qbtn--submit:hover {
  box-shadow: 0 6px 24px rgba(22,163,74,.45);
  transform: translateY(-1px);
}
.qbtn--zalo {
  background: #0068FF;
  color: var(--white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  box-shadow: 0 4px 16px rgba(0,104,255,.30);
}
.qbtn--zalo:hover {
  background: #0052cc;
  transform: translateY(-1px);
}

/* ── Success screen ────────────────────────────────── */
.qsuccess {
  display: none;
  text-align: center;
  padding: var(--sp-8) 0 var(--sp-4);
  animation: panelIn .3s ease;
}
.qsuccess.show { display: block; }
.qsuccess__icon {
  font-size: 3.5rem;
  margin-bottom: var(--sp-4);
  animation: bounceIn .5s cubic-bezier(.22,1,.36,1);
}
@keyframes bounceIn {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.qsuccess__title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: var(--sp-2);
}
.qsuccess__msg {
  font-size: var(--text-sm);
  color: var(--gray-500);
  max-width: 360px;
  margin: 0 auto var(--sp-6);
  line-height: 1.65;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .qmodal { max-height: 100vh; border-radius: 0; }
  .qmodal__body { padding: var(--sp-5) var(--sp-5); }
  .qmodal__header { padding: var(--sp-5) var(--sp-5); }
  .qoptions { grid-template-columns: 1fr 1fr; }
  .qinput-row { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .qoptions { grid-template-columns: 1fr; }
}
