/* ============================================
   WEB GIỚI THIỆU CÔNG TY CƠ KHÍ 3T
   ============================================ */

/* ============ LIGHT INTRO ============ */
#lightIntro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #09090f;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: opacity 0.8s ease;
}
#lightIntro.li-reveal { opacity: 0; pointer-events: none; }
#lightIntro.li-gone   { display: none; }

/* Ánh sáng lan toả từ bóng đèn */
.li-spread {
  position: absolute;
  top: 148px;
  left: 50%;
  width: 200vmax;
  height: 200vmax;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle,
    #fffde7 0%,
    #fef9c3 12%,
    #fde68a 30%,
    rgba(253, 211, 77, 0.35) 55%,
    transparent 70%
  );
  transition: transform 0.95s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.1s ease;
}
#lightIntro.li-lit .li-spread {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Vị trí treo đèn (căn giữa từ trên xuống) */
.li-fixture-pos {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Hiệu ứng đung đưa */
.li-fixture {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: top center;
  animation: li-sway 5s ease-in-out infinite;
}
@keyframes li-sway {
  0%, 100% { transform: rotate(-1deg); }
  50%       { transform: rotate(1deg); }
}

/* Đế trần */
.li-cap {
  width: 64px;
  height: 14px;
  background: linear-gradient(to bottom, #252535, #35354a);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.8);
  flex-shrink: 0;
}

/* Dây điện treo đèn */
.li-wire {
  width: 3px;
  height: 90px;
  background: linear-gradient(to right, #404055, #6a6a80, #404055);
  flex-shrink: 0;
}

/* SVG bóng đèn */
.li-bulb {
  width: 86px;
  height: auto;
  margin-top: -2px;
  filter: drop-shadow(0 0 4px rgba(245, 200, 60, 0.15));
  transition: filter 0.5s ease;
  flex-shrink: 0;
}

/* Phần thủy tinh bóng đèn – tắt */
.li-bg {
  fill: #1a1a2a;
  stroke: #35354a;
  stroke-width: 1.5;
  transition: fill 0.45s ease, stroke 0.45s ease;
}
/* Ánh sáng bên trong – tắt */
.li-inner {
  fill: transparent;
  transition: fill 0.45s ease;
}
/* Tim bóng đèn (filament) – tắt */
.li-fil {
  stroke: #35354a;
  transition: stroke 0.45s ease;
}
/* Đầu ren bóng đèn */
.li-bb { fill: #383848; }

/* Trạng thái SÁNG */
#lightIntro.li-lit .li-bulb {
  filter:
    drop-shadow(0 0 20px rgba(255, 220, 70, 1))
    drop-shadow(0 0 60px rgba(255, 175, 30, 0.9))
    drop-shadow(0 0 120px rgba(255, 200, 60, 0.55));
}
#lightIntro.li-lit .li-bg    { fill: #fef08a; stroke: #fbbf24; }
#lightIntro.li-lit .li-inner { fill: rgba(255, 253, 225, 0.95); }
#lightIntro.li-lit .li-fil   { stroke: #ffffff; }

/* Dây kéo */
.li-cord {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: grab;
  padding: 0 22px;
  margin-top: 2px;
}
.li-cord:active { cursor: grabbing; }

.li-rope {
  width: 3px;
  height: 90px;
  background: repeating-linear-gradient(
    to bottom,
    #9a7a50 0px,
    #b89468 4px,
    #9a7a50 8px,
    #7a5e36 12px,
    #9a7a50 16px
  );
  border-radius: 2px;
  transform-origin: top center;
  transition: transform 0.18s ease;
  flex-shrink: 0;
}
.li-ball {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d4a870, #8b6030, #5a3c1c);
  box-shadow: 0 4px 12px rgba(0,0,0,0.75), inset 0 1px 3px rgba(255,255,255,0.14);
  margin-top: 3px;
  transition: transform 0.18s ease;
  flex-shrink: 0;
}

/* Kéo xuống */
.li-cord.li-pulling .li-rope { transform: scaleY(1.5); }
.li-cord.li-pulling .li-ball { transform: translateY(45px); }

/* Búng trở lại */
.li-cord.li-snapping .li-rope {
  animation: li-rope-snap 0.55s cubic-bezier(0.22, 0.68, 0.36, 1.3) forwards;
}
.li-cord.li-snapping .li-ball {
  animation: li-ball-snap 0.55s cubic-bezier(0.22, 0.68, 0.36, 1.3) forwards;
}
@keyframes li-rope-snap {
  0%   { transform: scaleY(1.5); }
  35%  { transform: scaleY(0.87); }
  65%  { transform: scaleY(1.08); }
  85%  { transform: scaleY(0.97); }
  100% { transform: scaleY(1); }
}
@keyframes li-ball-snap {
  0%   { transform: translateY(45px); }
  35%  { transform: translateY(-7px); }
  65%  { transform: translateY(5px); }
  85%  { transform: translateY(-1px); }
  100% { transform: translateY(0); }
}

/* Gợi ý cho người dùng */
.li-hint {
  position: absolute;
  bottom: 26%;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  font-size: 16px;
  letter-spacing: 1.5px;
  white-space: nowrap;
  pointer-events: none;
  font-family: "Segoe UI", Roboto, sans-serif;
  animation: li-hint-pulse 2.5s ease-in-out infinite;
  transition: opacity 0.3s ease;
}
#lightIntro.li-lit .li-hint { opacity: 0; }
@keyframes li-hint-pulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.75; }
}
/* ====================================== */
:root {
  --primary: #0f3057;
  --primary-dark: #0a2240;
  --accent: #f47b20;
  --accent-dark: #d96510;
  --text: #2b2b2b;
  --text-light: #6b7280;
  --bg-light: #f5f7fa;
  --white: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 4px 16px rgba(15, 48, 87, 0.10);
  --radius: 10px;
  --container: 1200px;
  --font-heading: "Archivo", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

h1, h2, h3, h4,
.logo, .btn, .main-nav a,
.stat-num, .footer-logo, .site-footer h4 {
  font-family: var(--font-heading);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Topbar ---------- */
.topbar {
  background: #eef2f7;
  color: #51606f;
  font-size: 13px;
  padding: 6px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a:hover { color: var(--accent); }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }

/* Icon svg nhỏ dùng trong text (topbar, footer, contact list) */
.icon-inline {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  vertical-align: -2px;
}
.icon-inline svg { width: 100%; height: 100%; display: block; }

/* Chuyển ngôn ngữ VI / EN */
.lang-switch { display: flex; gap: 4px; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.lang-switch a {
  padding: 4px 8px;
  border-radius: 5px;
  color: var(--text-light);
}
.lang-switch a.active { background: var(--primary); color: #fff; }
.lang-switch a:hover:not(.active) { color: var(--primary); }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 16px;
  max-width: var(--container);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 24px;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}
.logo .logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  letter-spacing: -1px;
}
.logo small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.main-nav ul {
  display: flex;
  gap: 4px;
}
.main-nav a {
  display: block;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 15px;
  color: var(--primary);
  border-radius: 6px;
  transition: all 0.2s;
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--primary);
  color: #fff;
}

.header-hotline {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.header-hotline .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ring 2s infinite;
  flex-shrink: 0;
}
.header-hotline .icon svg { width: 19px; height: 19px; }
@keyframes ring {
  0%, 100% { transform: rotate(0); }
  10% { transform: rotate(-15deg); }
  20% { transform: rotate(15deg); }
  30% { transform: rotate(-10deg); }
  40% { transform: rotate(10deg); }
  50% { transform: rotate(0); }
}
.header-hotline span { font-size: 12px; color: var(--text-light); display: block; }
.header-hotline strong { color: var(--accent); font-size: 18px; display: block; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--primary);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(100deg, #f8fafc 45%, #eef2f7);
  color: var(--text);
  padding: 90px 0;
  overflow: hidden;
}
.hero-content { max-width: 620px; position: relative; z-index: 1; }

/* Minh họa vít xoắn (Archimedes screw) đang quay - signature visual */
.hero-auger {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 560px;
  max-width: 46vw;
  opacity: 0.9;
  pointer-events: none;
}
.hero-auger svg { width: 100%; height: auto; overflow: visible; }
.auger-shaft { stroke: var(--primary); stroke-width: 3; opacity: 0.25; }
.auger-coil {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.5;
}
.auger-coil-fill {
  fill: url(#augerCoilGradient);
  opacity: 0.55;
}
.auger-particle {
  fill: var(--accent);
  animation: auger-flow 3.2s linear infinite;
}
.auger-particle:nth-child(2) { animation-delay: -1.1s; }
.auger-particle:nth-child(3) { animation-delay: -2.2s; }
@keyframes auger-flow {
  0%   { transform: translateX(0); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translateX(420px); opacity: 0; }
}
@media (max-width: 992px) {
  .hero-auger { display: none; }
}
.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.2;
  margin-bottom: 18px;
  color: var(--primary);
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p {
  font-size: 17px;
  color: var(--text-light);
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }

/* ---------- Section chung ---------- */
.section { padding: 70px 0; }
.section.alt { background: var(--bg-light); }
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}
.section-head h2 {
  font-size: clamp(24px, 4vw, 34px);
  color: var(--primary);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}
.section-head h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
}
.section-head p { color: var(--text-light); }

/* ---------- Danh mục sản phẩm ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.category-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.25s;
  border-top: 4px solid transparent;
}
.category-card:hover {
  transform: translateY(-6px);
  border-top-color: var(--accent);
}
.category-card .cat-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #1d5a96);
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-card .cat-icon svg { width: 36px; height: 36px; color: #fff; overflow: visible; }
.category-card .cat-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.category-card h3 { color: var(--primary); font-size: 18px; margin-bottom: 8px; }
.category-card p { font-size: 14px; color: var(--text-light); }

/* ---------- Sản phẩm ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s;
}
.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.product-thumb {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #dde5ee, #c3cfdd);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.product-thumb svg { width: 72px; height: 72px; color: var(--primary); opacity: 0.55; overflow: visible; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-thumb .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
}
.product-info { padding: 16px; }
.product-info h3 { font-size: 16px; color: var(--primary); margin-bottom: 6px; }
.product-info .spec { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.product-info .price { color: var(--accent); font-weight: 700; margin-bottom: 12px; }
.product-info .btn { padding: 9px 0; width: 100%; text-align: center; font-size: 14px; }

/* ---------- Tin tức: danh sách ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.post-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #dde5ee, #c3cfdd);
  position: relative;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-cat {
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
}
.post-thumb .post-cat { position: absolute; top: 10px; left: 10px; z-index: 1; }
.post-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.post-body .post-date { font-size: 12.5px; color: var(--text-light); margin-bottom: 8px; }
.post-body h3 { font-size: 17px; color: var(--primary); margin-bottom: 8px; line-height: 1.35; }
.post-body p { font-size: 14px; color: var(--text-light); margin-bottom: 14px; flex: 1; }
.post-body .post-more { font-weight: 700; color: var(--accent); font-size: 14px; }

/* ---------- Tin tức: trang bài viết ---------- */
.article-wrap { max-width: 820px; margin: 0 auto; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
}
.article-meta .article-tag { color: #fff; }
.article-hero {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 28px;
  background: linear-gradient(135deg, #dde5ee, #c3cfdd);
  position: relative;
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-hero figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(15, 48, 87, 0.75));
  color: #fff;
  font-size: 13px;
  padding: 24px 16px 10px;
}
.article-body p { margin-bottom: 15px; line-height: 1.8; }
.article-body h2 { color: var(--primary); font-size: 23px; margin: 30px 0 12px; }
.article-body h3 { color: var(--primary); font-size: 18px; margin: 22px 0 8px; }
.article-body ul { margin: 0 0 18px 20px; }
.article-body li { margin-bottom: 9px; line-height: 1.7; }
.article-body a { color: var(--accent); font-weight: 600; }
.article-body a:hover { text-decoration: underline; }
.article-cta {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 30px 28px;
  text-align: center;
  margin-top: 38px;
}
.article-cta h3 { color: #fff; font-size: 20px; margin-bottom: 10px; }
.article-cta p { margin-bottom: 18px; opacity: 0.9; }

/* ---------- Lý do chọn ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.why-item { text-align: center; padding: 10px; }
.why-item .why-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-item .why-icon svg { width: 34px; height: 34px; color: var(--accent); }
.why-item .why-icon.step-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 26px;
  color: var(--accent);
  border-style: dashed;
}
.why-item h3 { color: var(--primary); font-size: 17px; margin-bottom: 8px; }
.why-item p { font-size: 14px; color: var(--text-light); }

/* ---------- Thống kê ---------- */
.stats {
  background:
    linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
    repeating-linear-gradient(-45deg, #e8eff7 0 30px, #dde8f3 30px 60px);
  color: var(--text);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-num {
  font-size: 42px;
  font-weight: 800;
  color: var(--accent);
}
.stat-label { color: var(--text-light); font-size: 15px; }

/* ---------- Khách hàng ---------- */
.client-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.client-logo {
  background: var(--bg-light);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #9aa7b5;
  font-size: 12px;
  transition: all 0.2s;
}
.client-logo svg { width: 22px; height: 22px; }
.client-logo:hover { color: var(--primary); border-color: var(--accent); }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(120deg, var(--accent), var(--accent-dark));
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.cta h2 { font-size: clamp(22px, 4vw, 32px); margin-bottom: 12px; }
.cta p { margin-bottom: 24px; opacity: 0.95; }
.cta .btn { background: #fff; color: var(--accent-dark); }
.cta .btn:hover { background: var(--primary); color: #fff; }

/* ---------- Trang con: page hero ---------- */
.page-hero {
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
    repeating-linear-gradient(45deg, #e8eff7 0 24px, #dde8f3 24px 48px);
  color: var(--primary);
  border-bottom: 1px solid var(--border);
  padding: 52px 0;
  text-align: center;
}
.page-hero h1 { font-size: clamp(26px, 4vw, 38px); }
.page-hero .breadcrumb { margin-top: 8px; font-size: 14px; color: var(--text-light); }
.page-hero .breadcrumb a:hover { color: var(--accent); }

/* ---------- Giới thiệu ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 44px;
  align-items: center;
}
.about-img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--bg-light);
  border: 1.5px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-light);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}
.about-img svg { width: 44px; height: 44px; color: #9aa7b5; }
.about-text h2 { color: var(--primary); font-size: 28px; margin-bottom: 16px; }
.about-text p { margin-bottom: 14px; color: var(--text-light); }
.about-text ul { margin: 0 0 18px; }
.about-text li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 8px;
}
.about-text li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Liên hệ ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}
.contact-info h3 { color: var(--primary); margin-bottom: 18px; font-size: 22px; }
.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}
.contact-item .ci-icon {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.contact-item .ci-icon svg { width: 20px; height: 20px; }
.contact-item strong { display: block; color: var(--primary); font-size: 15px; }
.contact-item p { color: var(--text-light); font-size: 14px; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.contact-form h3 { color: var(--primary); margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 12px 0 6px;
  color: var(--primary);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form .btn { margin-top: 18px; width: 100%; }
.form-success {
  display: none;
  margin-top: 14px;
  padding: 12px;
  border-radius: 6px;
  background: #e8f7ee;
  color: #157347;
  font-weight: 600;
  text-align: center;
}
.form-success svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.map-placeholder {
  margin-top: 50px;
  height: 320px;
  border-radius: var(--radius);
  background: var(--bg-light);
  border: 1.5px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-weight: 600;
}
.map-placeholder svg { width: 20px; height: 20px; vertical-align: -4px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #f1f5f9;
  color: #51606f;
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
}
.site-footer h4 {
  color: var(--primary);
  font-size: 16px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.site-footer li { margin-bottom: 9px; }
.site-footer a:hover { color: var(--accent); }
.footer-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}
.footer-logo span { color: var(--accent); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #dde6ef;
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.footer-social a:hover { background: var(--accent); color: #fff; }
.footer-social a svg { width: 17px; height: 17px; }
/* Cột Liên Hệ: mỗi dòng là hàng flex, icon đặt trong chip bo góc đồng bộ nút mạng xã hội */
.site-footer li:has(.icon-inline) {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
  line-height: 1.45;
}
.site-footer li .icon-inline {
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 8px;
  background: #dde6ef;
  color: var(--primary);
  vertical-align: 0;
}
.footer-bottom {
  border-top: 1px solid rgba(15, 48, 87, 0.12);
  padding: 16px 0;
  text-align: center;
  font-size: 13px;
}

/* ---------- Nút nổi ---------- */
.float-btns {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 99;
}
.float-btns a,
.float-btns button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.float-btns svg { width: 21px; height: 21px; }
.float-call { background: var(--accent); animation: ring 2s infinite; }
.float-zalo { background: #0068ff; font-weight: 800; font-size: 12px; }
#scrollTop {
  background: var(--primary);
  display: none;
}

/* ---------- Công cụ tính nhanh vít tải ---------- */
.calc-tool {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
  max-width: 980px;
  margin: 0 auto;
}
.calc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.calc-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}
.calc-field input,
.calc-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
.calc-field input:focus,
.calc-field select:focus { outline: none; border-color: var(--accent); }
.calc-actions { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.calc-result {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 8px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  display: none;
}
.calc-result.show { display: block; }
.calc-result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
  margin-bottom: 10px;
}
.calc-result-item strong { color: var(--primary); font-family: var(--font-heading); font-size: 20px; display: block; }
.calc-result-item span { font-size: 13px; color: var(--text-light); }
.calc-note { font-size: 12.5px; color: var(--text-light); font-style: italic; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .calc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
  .logo { font-size: 19px; }
  .logo small { display: none; }
  .main-nav a { padding: 9px 10px; font-size: 14px; }
  .category-grid, .product-grid, .why-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .client-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 10px; }
  .header-hotline span { display: none; }
  .hero { padding: 60px 0; }
}

@media (max-width: 520px) {
  .category-grid, .product-grid, .why-grid, .post-grid { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
}

.nav-toggle svg { width: 24px; height: 24px; }

/* Tôn trọng prefers-reduced-motion cho các hiệu ứng chuyển động */
@media (prefers-reduced-motion: reduce) {
  .auger-particle,
  .header-hotline .icon,
  .float-call,
  .li-fixture,
  .li-hint {
    animation: none !important;
  }
}
