/* ==========================================================================
   KTD CNC — Premium Industrial Design System (v2.0)
   Designed for Maximum Conversion, 10/10 UI/UX & Ultra-Fast Performance
   ========================================================================== */

/* --- 1. Design Tokens ---------------------------------------------------- */
:root {
  /* Slate & Obsidian Backgrounds */
  --ink-950: #070D14;
  --ink-900: #0B1521;
  --ink-800: #122132;
  --ink-700: #1C3147;
  --ink-600: #334B63;
  --ink-500: #556D84;
  --ink-400: #7E95AC;
  --ink-300: #B0C1D2;
  --ink-200: #D8E2EC;
  --ink-100: #EEF3F8;
  --ink-50:  #F8FAFC;

  /* Industrial Blue & Steel */
  --brand-950: #041624;
  --brand-900: #0A253D;
  --brand-800: #0F3759;
  --brand-700: #154D7A;
  --brand-600: #1D68A3;
  --brand-500: #0284C7;
  --brand-400: #38BDF8;
  --brand-300: #7DD3FC;
  --brand-200: #BAE6FD;
  --brand-100: #E0F2FE;
  --brand-50:  #F0F9FF;

  /* Vibrant Amber & Gold (Sawdust & High-Conversion CTA) */
  --amber-700: #92400E;
  --amber-600: #B45309;
  --amber-500: #F59E0B;
  --amber-400: #FBBF24;
  --amber-300: #FCD34D;
  --amber-100: #FEF3C7;
  --amber-50:  #FFFBEB;

  /* Success & Zalo Green */
  --zalo-blue: #0068FF;
  --zalo-hover: #0056D6;
  --green-600: #059669;
  --green-500: #10B981;
  --green-100: #D1FAE5;
  --green-50:  #ECFDF5;

  /* Surfaces & Borders */
  --surface-base: #FFFFFF;
  --surface-card: #FFFFFF;
  --surface-muted: #F8FAFC;
  --surface-alt:   #F1F5F9;
  --surface-dark:  #0B1521;
  --surface-dark-card: #122132;
  --line:          #E2E8F0;
  --line-strong:   #CBD5E1;
  --line-dark:     rgba(255, 255, 255, 0.12);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px rgba(11, 21, 33, 0.06), 0 1px 2px rgba(11, 21, 33, 0.04);
  --shadow-md: 0 6px 16px -2px rgba(11, 21, 33, 0.08), 0 2px 6px -1px rgba(11, 21, 33, 0.04);
  --shadow-lg: 0 14px 28px -4px rgba(11, 21, 33, 0.12), 0 4px 10px -2px rgba(11, 21, 33, 0.06);
  --shadow-xl: 0 22px 40px -6px rgba(11, 21, 33, 0.18), 0 8px 16px -4px rgba(11, 21, 33, 0.08);
  --shadow-glow: 0 0 24px rgba(245, 158, 11, 0.35);

  /* Radii */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 9999px;

  /* Layout Containers */
  --wrap: 1220px;
  --wrap-wide: 1360px;
  --wrap-narrow: 860px;
  --gutter: clamp(1rem, 3.5vw, 2rem);

  /* Fluid Typography */
  --font-sans: 'Be Vietnam Pro', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --fs-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --fs-sm: clamp(0.85rem, 0.82rem + 0.2vw, 0.9375rem);
  --fs-base: clamp(0.95rem, 0.92rem + 0.25vw, 1.05rem);
  --fs-md: clamp(1.1rem, 1.05rem + 0.4vw, 1.25rem);
  --fs-lg: clamp(1.25rem, 1.15rem + 0.6vw, 1.5rem);
  --fs-xl: clamp(1.5rem, 1.35rem + 0.9vw, 1.875rem);
  --fs-2xl: clamp(1.85rem, 1.6rem + 1.4vw, 2.35rem);
  --fs-3xl: clamp(2.2rem, 1.9rem + 2vw, 3.1rem);
  --fs-display: clamp(2.4rem, 2rem + 2.5vw, 3.75rem);
}

/* --- 2. Base & Reset ----------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-700);
  background-color: var(--surface-muted);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  overflow-x: clip;
}
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--surface-muted);
  overflow-x: clip;
}
main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--ink-900);
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.65em;
}
h1 { font-size: var(--fs-2xl); font-weight: 800; }
h2 { font-size: var(--fs-xl); font-weight: 800; }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a {
  color: var(--brand-600);
  text-decoration: none;
  transition: all 0.18s ease-in-out;
}
a:hover {
  color: var(--amber-600);
}
img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font: inherit;
  color: inherit;
}
ul, ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}
li { margin-bottom: 0.35em; }
strong, b { font-weight: 700; color: var(--ink-900); }
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}
:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
::selection {
  background: var(--amber-300);
  color: var(--ink-950);
}

/* Accessibility skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--amber-500);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  z-index: 9999;
  border-radius: var(--r-sm);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

/* --- 3. Layout Grid & Wrappers ------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--wide { max-width: var(--wrap-wide); }
.wrap--narrow { max-width: var(--wrap-narrow); }

.section {
  padding-block: clamp(3rem, 2.5rem + 3.5vw, 5.5rem);
  position: relative;
}
.section--tight {
  padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}
.section--alt { background-color: var(--surface-alt); }
.section--white { background-color: var(--surface-base); }
.section--dark {
  background-color: var(--ink-900);
  color: var(--ink-200);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 {
  color: #FFFFFF;
}
.section--dark p { color: var(--ink-300); }
.section--dark .sec-sub { color: var(--ink-300); }

.grid {
  display: grid;
  gap: clamp(1.25rem, 2vw, 2rem);
}
.g-2 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

@media (min-width: 640px) {
  .g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Section Headings */
.sec-head {
  margin-bottom: clamp(2rem, 1.5rem + 2.5vw, 3.25rem);
}
.sec-head--center {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}
.sec-head h2 {
  margin-bottom: 0.4em;
}
.sec-sub {
  font-size: var(--fs-base);
  color: var(--ink-500);
  line-height: 1.65;
  margin: 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--fs-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-600);
  margin-bottom: 0.65rem;
  background: var(--brand-50);
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--brand-100);
}
.section--dark .eyebrow {
  background: rgba(2, 132, 199, 0.15);
  color: var(--brand-300);
  border-color: rgba(2, 132, 199, 0.3);
}

/* --- 4. Buttons & Badges ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1;
  padding: 0.85rem 1.45rem;
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-xs);
}
.btn svg {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: linear-gradient(135deg, var(--amber-500) 0%, var(--amber-600) 100%);
  color: #FFFFFF !important;
  border-color: transparent;
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--amber-400) 0%, var(--amber-500) 100%);
  color: #FFFFFF !important;
  box-shadow: var(--shadow-glow);
}

.btn--brand {
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-900) 100%);
  color: #FFFFFF !important;
}
.btn--brand:hover {
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-800) 100%);
  color: #FFFFFF !important;
}

.btn--zalo {
  background: var(--zalo-blue);
  color: #FFFFFF !important;
}
.btn--zalo:hover {
  background: var(--zalo-hover);
  color: #FFFFFF !important;
}

.btn--outline {
  background: transparent;
  color: var(--ink-800) !important;
  border-color: var(--line-strong);
}
.btn--outline:hover {
  background: var(--surface-base);
  border-color: var(--brand-600);
  color: var(--brand-600) !important;
}

.btn--onDark {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}
.btn--onDark:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #FFFFFF;
  color: #FFFFFF !important;
}

.btn--sm {
  padding: 0.55rem 1rem;
  font-size: var(--fs-xs);
  border-radius: var(--r-sm);
}
.btn--lg {
  padding: 1.05rem 1.85rem;
  font-size: var(--fs-base);
  border-radius: var(--r-md);
}
.btn--block {
  width: 100%;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* Badges & Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--r-pill);
  background: var(--surface-alt);
  color: var(--ink-700);
  border: 1px solid var(--line);
}
.pill svg {
  width: 13px;
  height: 13px;
  color: var(--brand-600);
}
.pill--accent {
  background: var(--amber-50);
  color: var(--amber-700);
  border-color: var(--amber-100);
}
.pill--accent svg { color: var(--amber-600); }
.pill--green {
  background: var(--green-50);
  color: var(--green-600);
  border-color: var(--green-100);
}
.pill--green svg { color: var(--green-600); }

/* --- 5. Topbar & Header -------------------------------------------------- */
.topbar {
  background-color: var(--ink-950);
  color: var(--ink-300);
  font-size: var(--fs-xs);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 0.45rem;
}
.topbar__in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.topbar__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.topbar__list li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}
.topbar__list svg {
  width: 14px;
  height: 14px;
  color: var(--amber-400);
}
.topbar__list a {
  color: var(--ink-200);
}
.topbar__list a:hover {
  color: #FFFFFF;
}
.topbar__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--green-500);
  font-weight: 600;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--green-500);
  box-shadow: 0 0 8px var(--green-500);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

@media (max-width: 768px) {
  .topbar__hide-sm { display: none !important; }
  .topbar {
    font-size: 0.72rem;
  }
  .topbar__list li,
  .topbar__status {
    white-space: nowrap;
  }
  .topbar__in {
    gap: 0.75rem;
  }
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: all 0.25s ease;
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.98);
}
.header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 74px;
}

/* Brand Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand__logo-img {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  object-fit: contain;
  background: var(--ink-900);
  padding: 3px;
}
.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--mark, 48px);
  height: var(--mark, 48px);
  flex-shrink: 0;
  border-radius: var(--r-sm);
  overflow: hidden;
}
.brand__mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand__txt {
  display: flex;
  flex-direction: column;
}
.brand__name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.brand__name b {
  color: var(--amber-600);
}
.brand__sub {
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Navigation Menu */
.nav {
  display: none;
}
@media (min-width: 1024px) {
  .nav-drawer-header,
  .nav-drawer-footer {
    display: none !important;
  }
  .nav {
    display: flex;
    align-items: center;
  }
  .nav ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .nav li {
    position: relative;
    margin: 0;
  }
  .nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--ink-700);
    padding: 0.65rem 0.7rem;
    border-radius: var(--r-sm);
    white-space: nowrap;
    transition: all 0.15s ease;
  }
  .nav a:hover,
  .nav .current-menu-item > a,
  .nav .current-page-ancestor > a {
    color: var(--brand-600);
    background-color: var(--brand-50);
  }
  .nav .menu-item-has-children > a::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -3px;
    margin-left: 2px;
  }
  .nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: var(--surface-base);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
  }
  .nav li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav .sub-menu a {
    padding: 0.55rem 0.85rem;
    font-size: var(--fs-xs);
    border-radius: var(--r-xs);
    width: 100%;
  }
  .nav .sub-menu a:hover {
    background: var(--surface-alt);
    color: var(--brand-600);
  }
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
@media (max-width: 640px) {
  .header__actions .btn-call { display: none; }
}

/* Mobile Nav Toggle & Drawer */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 0;
}
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--ink-800);
  position: relative;
  transition: all 0.2s ease;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] span::before {
  transform: rotate(45deg);
  top: 0;
}
.nav-toggle[aria-expanded="true"] span::after {
  transform: rotate(-45deg);
  top: 0;
}

@media (max-width: 1023px) {
  body.nav-open {
    overflow: hidden;
  }
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background-color: #ffffff;
    z-index: 10000;
  }
  .nav {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 86vw);
    height: 100vh;
    height: 100dvh;
    background: #ffffff !important;
    border-left: 1px solid var(--line, #e2e8f0);
    padding: 1.25rem 1.25rem 5rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(105%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10002;
  }
  .nav.is-open {
    transform: translateX(0);
  }
  .nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--line, #e2e8f0);
    flex-shrink: 0;
  }
  .nav-drawer-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: var(--fs-sm, 0.95rem);
    font-weight: 700;
    color: var(--ink-900);
  }
  .nav-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line, #e2e8f0);
    background: var(--surface-alt, #f8fafc);
    color: var(--ink-700);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
  }
  .nav-drawer-close:hover,
  .nav-drawer-close:active {
    background: var(--brand-50, #f0f9ff);
    color: var(--brand-600, #0284c7);
  }
  .nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }
  .nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    font-size: var(--fs-base, 1rem);
    font-weight: 600;
    color: var(--ink-800);
    border-radius: var(--r-sm);
    text-decoration: none;
    transition: all 0.15s ease;
  }
  .nav a:hover,
  .nav a:active,
  .nav .current-menu-item > a {
    background: var(--brand-50, #f0f9ff);
    color: var(--brand-600, #0284c7);
  }
  .nav .menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-left: auto;
  }
  .nav .menu-item-has-children.is-expanded > a::after {
    transform: rotate(-135deg);
  }
  /* Mobile sub-menu: full reset from desktop absolute positioning */
  .nav .sub-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    border-left: 2px solid var(--brand-500, #0284c7) !important;
    border-radius: 0 !important;
    margin: 0.25rem 0 0.5rem 1rem !important;
    padding: 0.25rem 0 0.25rem 0.75rem !important;
    background: var(--surface-alt, #f8fafc) !important;
    display: none !important;
    flex-direction: column;
    gap: 0.25rem;
  }
  .nav .menu-item-has-children.is-expanded > .sub-menu {
    display: flex !important;
  }
  .nav .sub-menu a {
    font-size: var(--fs-sm, 0.9rem);
    font-weight: 500;
    color: var(--ink-700);
    padding: 0.6rem 0.75rem;
  }
  .nav-drawer-footer {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line, #e2e8f0);
    flex-shrink: 0;
  }
  .nav-drawer-footer .btn {
    width: 100%;
    justify-content: center;
    font-size: var(--fs-sm);
    padding: 0.75rem 1rem;
  }
}
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
}
.nav-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* --- 6. Hero Section (Industrial Glass & Precision) ---------------------- */
.hero {
  background: radial-gradient(circle at 85% 15%, #0F3759 0%, var(--ink-950) 65%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 2.5rem + 5vw, 6.5rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(2, 132, 199, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2, 132, 199, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 4vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__grid > div {
  min-width: 0;
}
@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

.hero__badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.85rem 0.35rem 0.45rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}
.hero__badge-tag {
  background: var(--amber-500);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.hero__badge-tag svg {
  width: 12px;
  height: 12px;
}

.hero h1 {
  color: #FFFFFF;
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--amber-300) 0%, var(--amber-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__sub {
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--ink-200);
  margin-bottom: 2rem;
  max-width: 58ch;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.trust-item {
  display: flex;
  flex-direction: column;
}
.trust-item b {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--amber-400);
  line-height: 1.1;
}
.trust-item span {
  font-size: var(--fs-xs);
  color: var(--ink-300);
}

/* Hero Interactive Estimator Widget Card */
.calc-card {
  background: var(--surface-base);
  color: var(--ink-800);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.calc-head {
  background: linear-gradient(135deg, var(--ink-950) 0%, var(--brand-950) 100%);
  color: #FFFFFF;
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.calc-head h2,
.calc-head h3 {
  margin: 0;
  font-size: var(--fs-md);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.calc-head h2 svg,
.calc-head h3 svg {
  color: var(--amber-400);
  width: 20px;
  height: 20px;
}
.calc-body {
  padding: 1.5rem;
}
.calc-field {
  margin-bottom: 1.15rem;
}
.calc-label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: 0.4rem;
}
.calc-input-group {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: #FFFFFF;
}
.calc-step-btn {
  background: var(--surface-alt);
  border: none;
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-700);
  cursor: pointer;
  transition: background 0.15s ease;
}
.calc-step-btn:hover {
  background: var(--line);
}
.calc-number {
  flex: 1;
  border: none;
  text-align: center;
  font-weight: 700;
  font-size: var(--fs-base);
  height: 42px;
  padding: 0 0.5rem;
  width: 100%;
}
.calc-number:focus {
  outline: none;
}
.calc-select {
  width: 100%;
  height: 42px;
  padding: 0 0.85rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background-color: #FFFFFF;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-800);
}
.calc-select:focus {
  outline: none;
  border-color: var(--brand-500);
}
.calc-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}
.calc-check-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-700);
  cursor: pointer;
}
.calc-check-label input {
  width: 17px;
  height: 17px;
  accent-color: var(--brand-600);
  cursor: pointer;
}

/* Calc Result Box */
.calc-result {
  background: linear-gradient(135deg, var(--brand-50) 0%, var(--surface-muted) 100%);
  border: 1.5px dashed var(--brand-300);
  border-radius: var(--r-md);
  padding: 1.15rem;
  margin-bottom: 1.25rem;
}
.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.35rem;
}
.calc-result-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink-600);
}
.calc-result-total {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--amber-600);
  white-space: nowrap;
  text-align: right;
}
.calc-result-sub {
  font-size: var(--fs-xs);
  color: var(--ink-500);
  display: flex;
  justify-content: space-between;
}

/* Highlights Grid below Hero */
.highlights-bar {
  background: var(--surface-base);
  border-bottom: 1px solid var(--line);
  padding-block: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.highlights-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 640px) {
  .highlights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .highlights-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.highlight-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: var(--r-md);
  transition: all 0.2s ease;
}
.highlight-card:hover {
  background: var(--surface-alt);
}
.highlight-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--brand-50);
  color: var(--brand-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--brand-100);
}
.highlight-icon svg {
  width: 24px;
  height: 24px;
}
.highlight-text b {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.25;
}
.highlight-text span {
  display: block;
  font-size: var(--fs-xs);
  color: var(--ink-500);
}

/* --- 7. Service Cards (Modern Bento Grid) -------------------------------- */
.service-card {
  background: var(--surface-base);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-500), var(--amber-500));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-200);
}
.service-card:hover::before {
  opacity: 1;
}

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: var(--brand-50);
  color: var(--brand-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid var(--brand-100);
  transition: all 0.2s ease;
}
.service-card:hover .service-card__icon {
  background: var(--brand-600);
  color: #FFFFFF;
  transform: scale(1.05);
}
.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: var(--fs-lg);
  margin-bottom: 0.65rem;
}
.service-card h3 a {
  color: var(--ink-900);
}
.service-card h3 a:hover {
  color: var(--brand-600);
}
.service-card p {
  font-size: var(--fs-sm);
  color: var(--ink-500);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1 0 auto;
}
.service-card__specs {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.service-card__specs li {
  font-size: var(--fs-xs);
  color: var(--ink-700);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}
.service-card__specs svg {
  width: 14px;
  height: 14px;
  color: var(--green-600);
  flex-shrink: 0;
}

.service-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.service-price {
  font-size: var(--fs-xs);
  color: var(--ink-500);
}
.service-price b {
  font-size: var(--fs-base);
  color: var(--amber-600);
  font-weight: 800;
}

/* --- 8. Machine Showcase (Workshop Capability) --------------------------- */
.machine-card {
  background: var(--surface-dark-card);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}
.machine-card:hover {
  border-color: var(--brand-400);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}
.machine-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.machine-card__badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.2);
  color: var(--green-500);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-pill);
}
.machine-card h3 {
  font-size: var(--fs-md);
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}
.machine-card p {
  font-size: var(--fs-xs);
  color: var(--ink-300);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.machine-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.85rem;
  border-radius: var(--r-sm);
  margin-top: auto;
}
.machine-spec-item {
  display: flex;
  flex-direction: column;
}
.machine-spec-item span {
  font-size: 0.6875rem;
  color: var(--ink-400);
  text-transform: uppercase;
}
.machine-spec-item b {
  font-size: var(--fs-xs);
  color: var(--brand-300);
  font-weight: 700;
}

/* Material Brands Showcase */
.brand-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  padding-block: 2rem;
}
.brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink-700);
  background: var(--surface-base);
  padding: 0.65rem 1.25rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.brand-tag svg {
  color: var(--green-600);
  width: 16px;
  height: 16px;
}

/* --- 9. Pricing Matrix & Tables ------------------------------------------ */
.price-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.price-tab-btn {
  background: var(--surface-base);
  border: 1.5px solid var(--line);
  padding: 0.65rem 1.25rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink-700);
  cursor: pointer;
  transition: all 0.18s ease;
}
.price-tab-btn:hover {
  border-color: var(--brand-500);
  color: var(--brand-600);
}
.price-tab-btn.is-active {
  background: var(--brand-600);
  color: #FFFFFF;
  border-color: var(--brand-600);
  box-shadow: var(--shadow-sm);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  background: var(--surface-base);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: var(--fs-sm);
}
.price-table th, .price-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.price-table thead th {
  background: var(--surface-alt);
  font-weight: 800;
  color: var(--ink-800);
  text-transform: uppercase;
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
}
.price-table tbody tr:hover {
  background: var(--surface-muted);
}
.price-table tbody tr:last-child td {
  border-bottom: none;
}
.price-table .price-val {
  font-weight: 800;
  color: var(--amber-600);
  font-size: var(--fs-base);
  white-space: nowrap;
}
.price-table .badge-pop {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  background: var(--amber-100);
  color: var(--amber-700);
  padding: 0.15rem 0.45rem;
  border-radius: var(--r-xs);
  margin-left: 0.45rem;
}

/* Generic content tables (bare <table> in post/page bodies) */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-base);
  box-shadow: var(--shadow-sm);
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: var(--fs-sm);
}
.table-wrap th,
.table-wrap td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.5;
}
.table-wrap thead th,
.table-wrap tr:first-child th {
  background: var(--surface-alt);
  font-weight: 800;
  color: var(--ink-800);
}
.table-wrap tbody tr:hover,
.table-wrap tr:hover {
  background: var(--surface-muted);
}
.table-wrap tr:last-child td,
.table-wrap tr:last-child th {
  border-bottom: none;
}
.table-note {
  font-size: var(--fs-xs);
  color: var(--ink-500);
  margin: 0.5rem 0 1.5rem;
}

/* Inline SVGs in page/post content: constrain to text size (no width/height attrs in source) */
.entry-content svg {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

/* Callout info boxes in content */
.callout {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-600);
  border-radius: var(--r-md);
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
}
.callout svg {
  width: 1.4em;
  height: 1.4em;
  color: var(--brand-600);
  margin-top: 0.2rem;
}
.callout p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--ink-600);
}

/* Comparison Box: PUR vs EVA */
.compare-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  margin-top: 2rem;
}
@media (min-width: 768px) {
  .compare-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.compare-card {
  background: var(--surface-base);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.compare-card--featured {
  border-color: var(--green-500);
  background: linear-gradient(180deg, var(--green-50) 0%, #FFFFFF 100%);
  position: relative;
}
.compare-card--featured::before {
  content: "★ KHUYÊN DÙNG TỦ BẾP & LAVABO";
  position: absolute;
  top: -12px;
  left: 1.5rem;
  background: var(--green-600);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: var(--r-pill);
}

/* --- 10. Process Workflow (5 Steps) -------------------------------------- */
.workflow-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  position: relative;
}
@media (min-width: 640px) {
  .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .workflow-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.workflow-step {
  background: var(--surface-base);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  position: relative;
  transition: all 0.2s ease;
}
.workflow-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-300);
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-900) 100%);
  color: #FFFFFF;
  font-weight: 800;
  font-size: var(--fs-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(15, 55, 89, 0.3);
}
.workflow-step h4 {
  font-size: var(--fs-sm);
  margin-bottom: 0.45rem;
}
.workflow-step p {
  font-size: var(--fs-xs);
  color: var(--ink-500);
  line-height: 1.5;
  margin: 0;
}

/* --- 11. Testimonials & Social Proof ------------------------------------ */
.review-card {
  background: var(--surface-base);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.review-stars {
  color: var(--amber-500);
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
}
.review-stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.review-content {
  font-size: var(--fs-sm);
  color: var(--ink-700);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 1.5rem;
  flex: 1 0 auto;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--fs-sm);
  flex-shrink: 0;
}
.review-info b {
  display: block;
  font-size: var(--fs-sm);
  color: var(--ink-900);
}
.review-info span {
  display: block;
  font-size: var(--fs-xs);
  color: var(--ink-500);
}

/* --- 12. FAQ Accordion --------------------------------------------------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.faq details {
  background: var(--surface-base);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all 0.2s ease;
}
.faq details[open] {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  padding: 1.15rem 1.35rem;
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--ink-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brand-600);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after {
  content: "−";
  color: var(--amber-600);
}
.faq__body {
  padding: 0 1.35rem 1.35rem;
  font-size: var(--fs-sm);
  color: var(--ink-600);
  line-height: 1.7;
  border-top: 1px solid var(--line);
  margin-top: 0.5rem;
  padding-top: 1rem;
}

/* --- 13. Local SEO NAP Block & Map Section ------------------------------- */
.nap-box {
  background: var(--surface-base);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.nap-grid {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .nap-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}
.nap-info {
  padding: clamp(1.75rem, 3vw, 2.75rem);
}
.nap-info h3 {
  font-size: var(--fs-xl);
  margin-bottom: 0.75rem;
}
.nap-tagline {
  font-size: var(--fs-sm);
  color: var(--ink-500);
  margin-bottom: 1.75rem;
}
.nap-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.nap-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 0;
}
.nap-list-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--brand-50);
  color: var(--brand-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nap-list-icon svg {
  width: 18px;
  height: 18px;
}
.nap-list-text b {
  display: block;
  font-size: var(--fs-xs);
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nap-list-text p, .nap-list-text span {
  font-size: var(--fs-sm);
  color: var(--ink-800);
  font-weight: 600;
  margin: 0;
}

.nap-map {
  background: var(--surface-alt);
  min-height: 360px;
  position: relative;
}
.nap-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}

/* --- 14. CTA Banner Band ------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand-950) 0%, var(--brand-800) 100%);
  color: #FFFFFF;
  padding-block: clamp(3rem, 2.5rem + 3vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band__in {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}
.cta-band h2 {
  color: #FFFFFF;
  font-size: var(--fs-2xl);
  margin-bottom: 0.75rem;
}
.cta-band p {
  color: var(--ink-200);
  font-size: var(--fs-md);
  margin-bottom: 2rem;
}

/* --- 15. Single Page & Article Styles ------------------------------------ */
.page-hero {
  background: linear-gradient(135deg, var(--ink-950) 0%, var(--brand-950) 100%);
  color: #FFFFFF;
  padding-block: clamp(2.5rem, 2rem + 3vw, 4rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.page-hero h1 {
  color: #FFFFFF;
  font-size: var(--fs-2xl);
  margin-bottom: 0.5rem;
}
.page-hero p {
  color: var(--ink-300);
  font-size: var(--fs-base);
  max-width: 65ch;
  margin: 0;
}

.breadcrumbs {
  font-size: var(--fs-xs);
  color: var(--ink-400);
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.breadcrumbs a {
  color: var(--ink-300);
}
.breadcrumbs a:hover {
  color: #FFFFFF;
}
.breadcrumbs span {
  color: var(--amber-400);
}

.page-layout {
  display: grid;
  gap: clamp(2rem, 3vw, 3.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}

.entry-content {
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--ink-800);
}
.entry-content h2 {
  font-size: var(--fs-xl);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1.5px solid var(--line);
}
.entry-content h3 {
  font-size: var(--fs-lg);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.entry-content img {
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  margin-block: 1.5rem;
}
.entry-content blockquote {
  border-left: 4px solid var(--amber-500);
  background: var(--amber-50);
  padding: 1rem 1.5rem;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--ink-800);
}

.sidebar-card {
  background: var(--surface-base);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.sidebar-card h4 {
  font-size: var(--fs-md);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

/* --- 16. Footer ---------------------------------------------------------- */
.site-footer {
  background-color: var(--ink-950);
  color: var(--ink-300);
  font-size: var(--fs-sm);
  padding-top: clamp(3.5rem, 3rem + 4vw, 5.5rem);
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__grid {
  display: grid;
  gap: clamp(2rem, 3vw, 3rem);
  grid-template-columns: repeat(1, minmax(0, 1fr));
  margin-bottom: 3.5rem;
}
@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.footer__brand {
  margin-bottom: 1.25rem;
}
.footer__col h4 {
  color: #FFFFFF;
  font-size: var(--fs-base);
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.footer__col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--amber-500);
}
.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer__col a {
  color: var(--ink-300);
  font-size: var(--fs-xs);
  transition: all 0.15s ease;
}
.footer__col a:hover {
  color: #FFFFFF;
  padding-left: 4px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--ink-400);
}
@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
  }
}
@media (max-width: 767px) {
  .footer__bottom {
    padding-bottom: 6.5rem;
  }
  .table-wrap table,
  .table-responsive .price-table {
    min-width: 560px;
  }
}

/* --- 17. Fixed Mobile Dock & Floating Action Hub ------------------------- */
.dock {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11, 21, 33, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.65rem 1rem;
  z-index: 990;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}
@media (min-width: 768px) {
  .dock { display: none; }
}
.dock__in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  max-width: 480px;
  margin-inline: auto;
}
.dock .btn {
  padding: 0.75rem 0.5rem;
  font-size: var(--fs-xs);
  border-radius: var(--r-sm);
}

/* Floating Hub for Desktop */
.floating-hub {
  display: none;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .floating-hub { display: flex; }
}
.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.floating-btn:hover {
  transform: scale(1.1);
}
.floating-btn svg {
  width: 24px;
  height: 24px;
}
.floating-btn--phone {
  background: linear-gradient(135deg, var(--amber-500) 0%, var(--amber-600) 100%);
  animation: pulse-ring 2.5s infinite;
}
.floating-btn--zalo {
  background: var(--zalo-blue);
}
.back-to-top {
  background: var(--ink-800);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* --- 18. Forms ----------------------------------------------------------- */
.form-card {
  background: var(--surface-base);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-md);
}
.field {
  margin-bottom: 1.25rem;
}
.field label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: 0.4rem;
}
.field label .req { color: #EF4444; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: #FFFFFF;
  font-size: var(--fs-sm);
  transition: all 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.form-grid-2 {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .form-grid-2 { grid-template-columns: 1fr 1fr; }
}

/* Post Cards */
.post-card {
  background: var(--surface-base);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-300);
}
.post-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}
.post-card h3 {
  font-size: var(--fs-md);
  margin-bottom: 0.65rem;
}
.post-card h3 a {
  color: var(--ink-900);
}
.post-card h3 a:hover {
  color: var(--brand-600);
}
.post-card p {
  font-size: var(--fs-xs);
  color: var(--ink-500);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.post-card__meta {
  margin-top: auto;
  font-size: var(--fs-xs);
  color: var(--ink-400);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Utility classes */
.text-center { text-align: center; }
.text-amber { color: var(--amber-600); }
.text-brand { color: var(--brand-600); }
.text-green { color: var(--green-600); }
.copied-msg { color: var(--green-600); font-weight: 700; }
