/* ==========================================================================
   TÂN VŨ PHÁT - DESIGN SYSTEM & MODERN HOME RENOVATION FLAT UI
   Brand Palette: Navy #0B3568 | Dark Navy #08264B | Primary Blue #145DA0 | Yellow #FFC928 | Orange #F58220
   ========================================================================== */

/* 1. Self-Hosted Inter Font Family */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/Inter-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/Inter-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/Inter-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/Inter-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/Inter-800.woff2') format('woff2');
}

/* 2. CSS Custom Properties (Variables - Brand Palette 100% Match) */
:root {
  --navy: #0B3568;
  --dark-navy: #08264B;
  --primary-blue: #145DA0;
  --yellow: #FFC928;
  --yellow-hover: #F5B800;
  --orange-cta: #F58220;
  --orange-hover: #E06D0B;
  --white: #FFFFFF;
  --bg: #F5F8FC;
  --bg-soft: #EBF3FC;
  --icon-circle-bg: #E6F0FA;
  --text: #182B45;
  --text-muted: #4A5E78;
  --border: #E3EAF2;
  --success: #16A34A;
  --danger: #DC2626;
  --zalo-blue: #0068FF;
  --shadow-sm: 0 4px 14px rgba(11, 53, 104, 0.05);
  --shadow-md: 0 10px 28px rgba(11, 53, 104, 0.08);
  --shadow-lg: 0 18px 42px rgba(8, 38, 75, 0.14);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --container-max: 1280px;
  --transition: 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 3. Base Reset, Zero Horizontal Overflow Lock & Typography */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  overflow-x: clip !important;
  overscroll-behavior-x: none !important;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

#mainContainer,
.app-shell-web,
.tvp-home-wrap,
.site-main,
.page-main {
  width: 100%;
  max-width: 100vw;
  overflow-x: clip !important;
}

.card,
.service-card,
.project-card,
.pricing-card,
.why-card,
.process-step,
section,
h1,
h2,
h3,
p,
button,
.btn {
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), background-color var(--transition), border-color var(--transition), transform var(--transition);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 10px 0;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.65rem, 2.7vw, 2.45rem);
}

h2 {
  font-size: clamp(1.3rem, 2.1vw, 1.85rem);
}

h3 {
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
}

p {
  margin: 0 0 10px 0;
  color: var(--text-muted);
}

p:last-child {
  margin-bottom: 0;
}

/* 4. Layout Container & Compact Section Spacing */
.container,
.tvp-container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

/* 5. Segmented Sub-tabs (.tvp-subtabs-wrap, .tvp-subtabs-nav & .tvp-subview-panel) + View Transitions */
@keyframes tvpFadeSlideIn {
  from {
    opacity: 0;
    transform: translate3d(0, 6px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes tvpFadeIn {
  from {
    opacity: 0;
    transform: translate3d(0, 6px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.tvp-subtabs-wrap {
  position: sticky;
  top: 72px;
  z-index: 40;
  background: #FFFFFF;
  border: 1px solid #E3EAF2;
  border-radius: 12px;
  padding: 6px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  box-sizing: border-box;
}

.tvp-subtabs-nav {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 6px;
  overflow-x: auto !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: #FFFFFF;
  border: 1px solid #E3EAF2;
  border-radius: 12px;
  padding: 6px;
  margin-bottom: 16px;
  max-width: 100%;
  box-sizing: border-box;
}

.tvp-subtabs-wrap .tvp-subtabs-nav {
  border: none;
  padding: 0;
  margin-bottom: 0;
  background: transparent;
}

.tvp-subtabs-nav::-webkit-scrollbar {
  display: none;
}

.tvp-subtab-btn {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap !important;
  color: #182B45;
  background: #F5F8FC;
  border: 1px solid #E3EAF2;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto !important;
  flex-shrink: 0;
  box-sizing: border-box;
}

.tvp-subtab-btn:hover {
  background: #EBF3FC;
  color: #0B3568;
  border-color: #145DA0;
}

.tvp-subtab-btn.is-active,
.tvp-subtab-btn[aria-selected="true"] {
  background: #0B3568;
  color: #FFFFFF;
  border-color: #0B3568;
  box-shadow: 0 2px 8px rgba(11, 53, 104, 0.2);
}

.tvp-subview-panel {
  display: none !important;
}

.tvp-subview-panel.is-active {
  display: block !important;
  animation: tvpFadeSlideIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Section Blocks */
.section,
section.section-block,
.tvp-section {
  padding: 26px 0;
  position: relative;
}

.section-sm {
  padding: 18px 0;
}

.section-white {
  background: var(--white);
}

.section-navy {
  background: linear-gradient(135deg, var(--navy) 0%, var(--dark-navy) 100%);
  color: var(--white);
}

.section-navy h2,
.section-navy h3,
.section-navy p {
  color: var(--white);
}

.cv-defer {
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 340px;
}

/* Section Headers */
.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 18px;
  gap: 6px;
}

/* Lined Section Heading (.tvp-section-heading-lined) — Yellow horizontal lines on both sides */
.tvp-section-heading-lined,
.section-heading-lined,
.tvp-lined-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  color: var(--navy);
  font-size: clamp(1.22rem, 2vw, 1.65rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  margin: 0 auto 4px;
  text-align: center;
  line-height: 1.25;
}

.tvp-section-heading-lined::before,
.tvp-section-heading-lined::after,
.section-heading-lined::before,
.section-heading-lined::after,
.tvp-lined-heading::before,
.tvp-lined-heading::after {
  content: "";
  display: inline-block;
  width: clamp(36px, 8vw, 88px);
  height: 2.5px;
  background: var(--yellow);
  border-radius: 999px;
  flex-shrink: 0;
}

.tvp-section-heading-lined:has(.line)::before,
.tvp-section-heading-lined:has(.line)::after,
.tvp-section-heading-lined:has(.heading-line)::before,
.tvp-section-heading-lined:has(.heading-line)::after {
  display: none;
}

.tvp-section-heading-lined .line,
.tvp-section-heading-lined .heading-line {
  display: inline-block;
  width: clamp(36px, 8vw, 88px);
  height: 2.5px;
  background: var(--yellow);
  border-radius: 999px;
  flex-shrink: 0;
}

.section-header.align-left,
.section-header-split {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  text-align: left;
  margin-bottom: 18px;
  gap: 14px;
  flex-wrap: wrap;
}

.section-eyebrow,
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--icon-circle-bg);
  color: var(--navy);
}

.badge-yellow {
  background: var(--yellow);
  color: var(--dark-navy);
}

.badge-orange {
  background: var(--orange-cta);
  color: var(--white);
}

.section-title {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  color: var(--navy);
  font-weight: 800;
  margin: 0;
}

.section-subtitle,
.section-desc {
  max-width: 680px;
  font-size: 0.94rem;
  color: var(--text-muted);
  margin: 0;
}

/* 6. Buttons & Ergonomic Touch Targets (min-height >= 38px) */
.btn,
.btn-yellow,
.btn-orange,
.btn-navy,
.btn-outline,
.btn-outline-white,
.btn-zalo,
.btn-white,
.header-call-btn,
.mobile-bar-btn,
.tvp-header-call,
.btn-hotline,
.tvp-btn-gold,
.tvp-btn-outline-navy,
.tvp-btn-sm-navy,
.tvp-btn-white-zalo,
.tvp-btn-ghost-light {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap !important;
  flex-shrink: 0;
  user-select: none;
  box-sizing: border-box;
}

.btn span,
.btn strong {
  white-space: nowrap !important;
}

.btn:active,
.btn-yellow:active,
.btn-orange:active,
.btn-navy:active,
.btn-outline:active,
.header-call-btn:active,
.mobile-bar-btn:active {
  transform: translateY(1px);
}

.btn-yellow,
.header-call-btn {
  background: var(--yellow);
  color: var(--dark-navy);
  box-shadow: 0 4px 14px rgba(255, 201, 40, 0.32);
}

.btn-yellow:hover,
.header-call-btn:hover {
  background: var(--yellow-hover);
  color: var(--dark-navy);
  transform: translateY(-1px);
}

.btn-orange {
  background: var(--orange-cta);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(245, 130, 32, 0.3);
}

.btn-orange:hover {
  background: var(--orange-hover);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(11, 53, 104, 0.2);
}

.btn-navy:hover {
  background: var(--dark-navy);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.75);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-zalo {
  background: var(--zalo-blue);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(0, 104, 255, 0.26);
}

.btn-zalo:hover {
  background: #0054D1;
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
}

.btn-white:hover {
  background: var(--yellow);
  color: var(--dark-navy);
}

.btn-sm {
  min-height: 38px;
  padding: 7px 14px;
  font-size: 0.85rem;
}

.btn-lg {
  min-height: 46px;
  padding: 11px 22px;
  font-size: 0.98rem;
}

.btn-block,
.w-full {
  width: 100%;
}

/* 7. Topbar & Header Navigation */
.topbar,
.site-topbar {
  background: var(--dark-navy);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner,
.site-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.topbar-left,
.topbar-right,
.site-topbar__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
}

.topbar-item svg {
  color: var(--yellow);
  flex-shrink: 0;
}

.site-header,
.tvp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FFFFFF !important;
  border-bottom: 1px solid #E3EAF2 !important;
  color: #182B45;
  box-shadow: 0 4px 16px rgba(11, 53, 104, 0.06);
}

.header-inner,
.navbar,
.site-header__inner,
.tvp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  gap: 16px;
}

.brand-logo,
.tvp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0B3568;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark,
.tvp-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--dark-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(255, 201, 40, 0.3);
}

.brand-text,
.tvp-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name,
.tvp-brand-name {
  font-size: 1.14rem;
  font-weight: 800;
  color: #0B3568 !important;
  letter-spacing: 0.01em;
}

.brand-tagline,
.tvp-brand-tagline {
  font-size: 0.72rem;
  color: #4A607A !important;
  font-weight: 600;
}

.nav-menu,
.nav-links,
.nav-list,
.tvp-nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link,
.tvp-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 13px;
  border-radius: 8px;
  color: #182B45;
  font-weight: 600;
  font-size: 0.92rem;
  min-height: 38px;
  position: relative;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.nav-link:hover,
.tvp-nav-link:hover {
  background: #F5F8FC;
  color: #0B3568;
}

.nav-link.active,
.nav-link.is-active,
.nav-link[aria-current="page"],
.tvp-nav-link.active,
.tvp-nav-link.is-active,
.tvp-nav-link[aria-current="page"] {
  background: rgba(11, 53, 104, 0.04);
  color: #0B3568 !important;
  font-weight: 700;
  border-bottom: 3px solid #FFC928 !important;
}

/* Dropdown Menu for Services */
.nav-item-dropdown,
.nav-item--has-dropdown {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 310px;
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 120;
}

.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown:focus-within .nav-dropdown,
.nav-item--has-dropdown:hover .nav-dropdown,
.nav-item--has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-link,
.nav-dropdown__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}

.nav-dropdown-link svg,
.nav-dropdown__link svg {
  color: var(--navy);
  flex-shrink: 0;
}

.nav-dropdown-link:hover,
.nav-dropdown__link:hover {
  background: var(--bg-soft);
  color: var(--navy);
}

.header-actions,
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mobile-menu-toggle,
.mobile-menu-btn,
.tvp-mobile-toggle {
  display: none;
  min-width: 42px;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid #E3EAF2;
  background: #F5F8FC;
  color: #0B3568;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-nav-drawer {
  display: none;
  background: var(--dark-navy);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 18px 18px;
}

.mobile-nav-drawer.is-open {
  display: block;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--white);
  font-weight: 600;
}

.mobile-nav-list a:hover,
.mobile-nav-list a.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--yellow);
}

/* 8. Hero Banner & USP Strip */
.hero-section,
.hero-banner {
  background: linear-gradient(125deg, #08264B 0%, #0B3568 55%, #145DA0 100%);
  color: var(--white);
  padding: 28px 0 0 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 201, 40, 0.18) 0%, rgba(255, 201, 40, 0) 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 28px;
  padding-bottom: 26px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255, 201, 40, 0.16);
  border: 1px solid rgba(255, 201, 40, 0.45);
  color: var(--yellow);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-title {
  color: var(--white);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.18;
  margin: 0;
}

.hero-title .text-yellow,
.text-yellow {
  color: var(--yellow);
}

.hero-subtitle,
.hero-desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 560px;
  margin: 0;
}

.hero-cta-group,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.hero-trust-pills {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-trust-pills span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-trust-pills svg {
  color: var(--yellow);
}

.hero-visual,
.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-lg);
  background: var(--dark-navy);
  aspect-ratio: 16 / 10;
}

.hero-visual img,
.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-floating-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(8, 38, 75, 0.9);
  backdrop-filter: blur(8px);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 201, 40, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* 3-Pillar USP Strip at Bottom of Hero */
.hero-usp-bar,
.usp-strip {
  background: rgba(8, 38, 75, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 0;
}

.usp-grid,
.hero-usp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
}

.usp-item,
.usp-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.usp-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--dark-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.usp-text strong {
  display: block;
  font-size: 0.92rem;
  color: var(--white);
}

.usp-text span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

/* 9. Equal-Height Grids & Card Architecture (unequalRowCards = 0) */
.services-grid,
.projects-grid,
.pricing-grid,
.why-grid,
.process-grid,
.faq-grid,
.tvp-grid-2,
.tvp-grid-3,
.tvp-grid-4,
.service-grid-7,
.service-grid-4,
.project-grid-4,
.project-grid-3,
.pricing-grid-3,
.bento-dual-grid,
.service-detail-grid,
.form-grid-2,
.value-grid,
.grid-2,
.grid-3,
.grid-4,
.stats-grid,
.tvp-service-icon-grid,
.tvp-project-grid,
.tvp-pricing-tiers,
.tvp-process-steps,
.tvp-bento-pair,
.tvp-bento-pair-2 {
  display: grid;
  align-items: stretch;
  gap: 18px;
}

.service-grid-7,
.tvp-service-icon-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.tvp-grid-4,
.services-grid,
.projects-grid,
.service-grid-4,
.project-grid-4,
.grid-4,
.stats-grid,
.tvp-project-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tvp-grid-3,
.pricing-grid,
.why-grid,
.pricing-grid-3,
.project-grid-3,
.value-grid,
.grid-3,
.tvp-pricing-tiers {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tvp-grid-2,
.faq-grid,
.bento-dual-grid,
.service-detail-grid,
.form-grid-2,
.grid-2,
.tvp-bento-pair,
.tvp-bento-pair-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.process-grid,
.process-timeline,
.tvp-process-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
  position: relative;
}

.card,
.service-card,
.project-card,
.pricing-card,
.why-card,
.process-step,
.value-card,
.bento-card,
.why-card-navy,
.tvp-service-icon-card,
.tvp-project-card,
.tvp-tier-box,
.tvp-step-item,
.tvp-bento-col-box,
.tvp-right-bento-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 20px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
  max-width: 100%;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover,
.service-card:hover,
.project-card:hover,
.pricing-card:hover,
.why-card:hover,
.value-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(20, 93, 160, 0.32);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.card-footer,
.card-actions {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* 7-Card Compact Homepage Service Strip */
.service-grid-7 .card,
.service-grid-7 .service-card,
.tvp-service-icon-grid .tvp-service-icon-card {
  padding: 14px 10px;
  text-align: center;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.service-illust-wrap,
.service-icon-box,
.tvp-service-svg {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  flex-shrink: 0;
}

.service-card-title,
.service-grid-7 h3,
.tvp-service-icon-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  line-height: 1.3;
}

.service-card-desc,
.tvp-service-icon-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

.service-card-price {
  margin-top: auto;
  padding-top: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--orange-cta);
}

.service-card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary-blue);
}

/* 10. Before / After Interactive Comparison Slider (.ba-slider) */
.ba-slider,
.tvp-ba-card {
  aspect-ratio: 16 / 10;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  user-select: none;
  background: var(--dark-navy);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-md);
  --ba-pos: 50%;
}

.ba-slider img,
.tvp-ba-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-after,
.ba-layer-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ba-before,
.ba-layer-before,
.tvp-ba-before-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 calc(100% - var(--ba-pos, 50%)) 0 0);
  z-index: 2;
}

.ba-label,
.tvp-ba-badge {
  position: absolute;
  top: 12px;
  z-index: 4;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.ba-label-before,
.tvp-ba-badge-before {
  left: 12px;
  background: rgba(24, 43, 69, 0.88);
  color: var(--white);
}

.ba-label-after,
.tvp-ba-badge-after {
  right: 12px;
  background: var(--yellow);
  color: var(--dark-navy);
}

.ba-divider,
.ba-handle,
.tvp-ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos, 50%);
  width: 3px;
  background: var(--yellow);
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
}

.ba-handle-btn,
.ba-divider::after,
.tvp-ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--dark-navy);
  border: 3px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
}

.ba-caption {
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  z-index: 4;
  background: rgba(8, 38, 75, 0.86);
  backdrop-filter: blur(6px);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* 11. Why Choose Tân Vũ Phát (.why-card-navy) */
.why-card-navy {
  background: linear-gradient(145deg, var(--navy) 0%, var(--dark-navy) 100%);
  color: var(--white);
  border-radius: 16px;
  padding: 22px;
  border: 1px solid rgba(255, 201, 40, 0.28);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.why-card-navy h2,
.why-card-navy h3 {
  color: var(--white);
  margin-bottom: 12px;
}

.why-card-navy p {
  color: rgba(255, 255, 255, 0.88);
}

.why-list,
.check-list-yellow,
.why-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 8px 0 14px;
}

.why-list li,
.check-list-yellow li,
.why-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--white);
}

.why-list li svg,
.check-list-yellow li svg {
  color: var(--yellow);
  flex-shrink: 0;
  margin-top: 2px;
}

.why-tagline,
.why-highlight {
  margin-top: auto;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 201, 40, 0.14);
  border-left: 4px solid var(--yellow);
  color: var(--yellow);
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

/* 12. 5-Step Process Timeline (.process-timeline & .process-step) */
.process-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.process-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  top: 34px;
  right: -12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--dark-navy);
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(11, 53, 104, 0.15);
}

.process-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--icon-circle-bg);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  position: relative;
  border: 2px solid rgba(11, 53, 104, 0.1);
}

.process-step-num,
.step-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--dark-navy);
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.process-step h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.process-step p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
}

/* 13. Project Showcase Cards & Category Filter Pills */
.filter-tabs,
.category-pills,
.tvp-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.filter-tab,
.category-pill,
.tvp-filter-btn {
  min-height: 38px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition);
}

.filter-tab:hover,
.filter-tab.active,
.filter-tab.is-active,
.category-pill:hover,
.category-pill.active,
.category-pill.is-active,
.tvp-filter-btn:hover,
.tvp-filter-btn.is-active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.project-card,
.tvp-project-card {
  padding: 18px;
  overflow: hidden;
}

.project-thumb,
.tvp-project-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 10px;
  background: var(--bg-soft);
}

.project-thumb img,
.tvp-project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-card:hover .project-thumb img,
.tvp-project-card:hover .tvp-project-thumb img {
  transform: scale(1.03);
}

.project-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(11, 53, 104, 0.9);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.project-info,
.project-body,
.tvp-project-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  justify-content: space-between;
  gap: 6px;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* 14. Pricing Cards & Tables */
.pricing-card.is-featured,
.pricing-card.featured {
  border: 2px solid var(--yellow);
  box-shadow: var(--shadow-md);
  position: relative;
}

.pricing-badge {
  align-self: flex-start;
  background: var(--yellow);
  color: var(--dark-navy);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.pricing-price {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy);
  margin: 4px 0 10px;
}

.pricing-price small,
.pricing-unit {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 16px;
  flex: 1 1 auto;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text);
}

.pricing-features li svg {
  color: var(--success);
  flex-shrink: 0;
  margin-top: 3px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--white);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.pricing-table th {
  background: var(--navy);
  color: var(--white);
  padding: 12px 14px;
  font-weight: 700;
}

.pricing-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.pricing-table tr:nth-child(even) td {
  background: var(--bg);
}

/* 15. Quick Quote Form, Photo Preview Box & Form Feedback States */
.quote-box,
.quote-card,
.estimator-card {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 20px;
  box-shadow: var(--shadow-md);
}

.form-grid,
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.form-group.full-width,
.full-span {
  grid-column: 1 / -1;
}

.form-label,
label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
}

.form-control,
.tvp-input,
.tvp-select,
.tvp-textarea,
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-sizing: border-box;
}

textarea.form-control,
.tvp-textarea,
textarea {
  min-height: 76px;
  resize: vertical;
}

.form-control:focus,
.tvp-input:focus,
.tvp-select:focus,
.tvp-textarea:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(20, 93, 160, 0.15);
}

.upload-dropzone,
.file-upload-label,
.tvp-file-label {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1.5px dashed var(--primary-blue);
  background: var(--bg-soft);
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background-color var(--transition), border-color var(--transition);
}

.upload-dropzone:hover,
.file-upload-label:hover,
.tvp-file-label:hover {
  background: var(--icon-circle-bg);
}

/* Photo Preview Box (.photo-preview-box) */
.photo-preview-box {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #F5F8FC;
  border: 1px dashed #145DA0;
  color: #0B3568;
  font-size: 0.84rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.photo-preview-box[hidden] {
  display: none !important;
}

.photo-preview-box img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #E3EAF2;
  flex-shrink: 0;
}

/* Form Feedback States (.form-feedback, .form-status-msg, .tvp-form-status, .form-message) */
.form-feedback,
.form-status-msg,
.tvp-form-status,
.form-message {
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
}

.alert-success,
.form-feedback.is-success,
.form-status-msg.is-success,
.tvp-form-status.is-success,
.form-message.is-success {
  display: block !important;
  padding: 10px 14px;
  border-radius: 10px;
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #86EFAC;
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 8px;
}

.alert-error,
.form-feedback.is-error,
.form-status-msg.is-error,
.tvp-form-status.is-error,
.form-message.is-error {
  display: block !important;
  padding: 10px 14px;
  border-radius: 10px;
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 8px;
}

/* 16. FAQ Accordion (.faq-list details) */
.faq-list,
.tvp-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-list details,
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-list details[open],
.faq-item[open] {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
}

.faq-list summary,
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  user-select: none;
}

.faq-list summary::-webkit-details-marker,
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--icon-circle-bg);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.08rem;
  font-weight: 800;
  flex-shrink: 0;
  transition: background-color var(--transition), color var(--transition);
}

.faq-list details[open] summary::after {
  content: '−';
  background: var(--yellow);
  color: var(--dark-navy);
}

.faq-answer,
.faq-list details > div,
.faq-list details > p {
  padding: 10px 0 14px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  border-top: 1px solid var(--border);
}

/* 17. Modal Dialog */
dialog.quote-modal,
.modal-dialog {
  border: none;
  border-radius: 18px;
  padding: 0;
  max-width: 540px;
  width: calc(100% - 28px);
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}

dialog.quote-modal::backdrop {
  background: rgba(8, 38, 75, 0.68);
  backdrop-filter: blur(4px);
}

.modal-header {
  background: var(--navy);
  color: var(--white);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-header h3 {
  color: var(--white);
  margin: 0;
  font-size: 1.1rem;
}

.modal-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-body {
  padding: 18px 20px;
}

/* 18. Breadcrumbs & Page Hero Banner (Subpages: .page-hero & .tvp-page-hero) */
.page-hero,
.tvp-page-hero {
  background: linear-gradient(125deg, var(--dark-navy) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 24px 0;
}

.page-hero h1,
.tvp-page-hero h1 {
  color: var(--white);
  margin-bottom: 6px;
}

.page-hero p,
.tvp-page-hero p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 700px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 8px;
}

.breadcrumb a:hover {
  color: var(--yellow);
}

/* 19. Footer & Mobile Sticky Bottom Bar */
.site-footer {
  background: var(--dark-navy);
  color: rgba(255, 255, 255, 0.86);
  padding: 28px 0 20px;
  border-top: 3px solid var(--yellow);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer h3,
.site-footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 10px;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
}

.site-footer a:hover {
  color: var(--yellow);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-contact-list svg {
  color: var(--yellow);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.68);
}

.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 110;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(8, 38, 75, 0.14);
  padding: 6px 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.mobile-bottom-bar .btn,
.mobile-bar-btn {
  min-height: 38px;
  padding: 6px 8px;
  font-size: 0.8rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* 20. Utility Classes */
.text-center { text-align: center; }
.text-navy { color: var(--navy); }
.text-orange { color: var(--orange-cta); }
.text-muted { color: var(--text-muted); }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 14px; }
.mt-4 { margin-top: 20px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 14px; }
.mb-4 { margin-bottom: 20px; }
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
/* ==========================================================================
   21. MICRO-INTERACTIONS, VIEW TRANSITIONS & SKELETON LOADING STATES
   ========================================================================== */

@keyframes tvpViewFadeOut {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, -4px, 0);
  }
}

@keyframes tvpViewFadeIn {
  from {
    opacity: 0;
    transform: translate3d(0, 6px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

::view-transition-old(root) {
  animation: 0.18s cubic-bezier(0.4, 0, 1, 1) both tvpViewFadeOut;
}

::view-transition-new(root) {
  animation: 0.24s cubic-bezier(0.22, 1, 0.36, 1) both tvpViewFadeIn;
}

@keyframes tvpSkeletonShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.is-loading-skeleton {
  position: relative;
  overflow: hidden !important;
  background: linear-gradient(90deg, #EBF3FC 25%, #F5F8FC 50%, #EBF3FC 75%) !important;
  background-size: 200% 100% !important;
  animation: tvpSkeletonShimmer 1.4s infinite linear !important;
  color: transparent !important;
  border-color: #E3EAF2 !important;
  pointer-events: none !important;
  user-select: none !important;
}

.is-loading-skeleton * {
  visibility: hidden !important;
}

.btn,
.tvp-subtab-btn {
  will-change: transform, box-shadow;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.2s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.2s ease,
              color 0.2s ease,
              border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1.5px);
}

.btn:active {
  transform: translateY(0.5px) scale(0.985);
}

.tvp-subtab-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(11, 53, 104, 0.08);
}

.tvp-subtab-btn:active {
  transform: translateY(0) scale(0.98);
}

.btn:focus-visible,
.tvp-subtab-btn:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

/* Additional Equal-Height Grid Classes for Home & Subpages */
.why-grid-4,
.tvp-home-services-grid--top {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}

.scope-grid-6,
.tvp-home-services-grid--bottom {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}

.why-grid-4 > *,
.scope-grid-6 > *,
.tvp-home-services-grid--top > *,
.tvp-home-services-grid--bottom > * {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

/* ==========================================================================
   21B. HOMEPAGE MOCKUP LAYOUT (LIGHT #F5F8FC, 7 SERVICES, 4 PROJECTS, BENTO ROWS)
   ========================================================================== */

body.tvp-body,
.tvp-home-page,
.tvp-home-wrap,
.site-main,
#mainContainer {
  background-color: #F5F8FC;
  color: #182B45;
}

header.site-header,
header.tvp-header,
.site-header,
.tvp-header {
  background: #FFFFFF !important;
  color: #182B45 !important;
  border-bottom: 1px solid #E3EAF2 !important;
}

/* Light Sky-Blue Hero Mockup Variant */
.tvp-hero-light,
.tvp-hero-mockup {
  background: linear-gradient(110deg, #E6F1FC 0%, #F4F9FF 48%, #DCEBFA 100%);
  color: #0B3568;
  padding: 20px 0;
  border-bottom: 1px solid #DCE7F3;
  position: relative;
  overflow: hidden;
}

.tvp-hero-light h1,
.tvp-hero-mockup h1 {
  color: #0B3568;
  font-size: clamp(1.65rem, 2.8vw, 2.45rem);
  font-weight: 900;
  line-height: 1.16;
  margin: 0 0 8px;
}

.tvp-hero-orange,
.text-orange-accent {
  color: #F58220 !important;
  display: block;
}

.tvp-trust-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 10px 0 14px;
}

.tvp-trust-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #0B3568;
}

.tvp-trust-badge-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0B3568;
  color: #FFC928;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 7 Services Horizontal Strip on Desktop */
.tvp-services-7-grid,
.tvp-home-services-7,
.service-grid-7,
.tvp-service-icon-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.tvp-services-7-grid > *,
.tvp-home-services-7 > *,
.service-grid-7 > *,
.tvp-service-icon-grid > * {
  background: #FFFFFF;
  border: 1px solid #DCE6F2;
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  height: 100%;
  box-shadow: 0 4px 12px rgba(11, 53, 104, 0.04);
  box-sizing: border-box;
}

/* 4 Projects Showcase Strip on Desktop */
.tvp-projects-4-grid,
.tvp-home-projects-4,
.tvp-project-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.tvp-projects-4-grid > *,
.tvp-home-projects-4 > *,
.tvp-project-grid-4 > * {
  background: #FFFFFF;
  border: 1px solid #DCE6F2;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-shadow: 0 4px 12px rgba(11, 53, 104, 0.04);
  box-sizing: border-box;
}

/* Homepage Dual Bento Rows (Row 1: Why Us + 5 Steps | Row 2: Feedback + 4 FAQs) */
.tvp-why-process-row,
.tvp-testimonial-faq-row,
.tvp-home-bento-row,
.tvp-bento-row-2col {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 18px;
  align-items: stretch;
}

.tvp-steps-5-grid,
.tvp-process-5grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

/* ==========================================================================
   22. RESPONSIVE BREAKPOINTS (Desktop 1440px | Tablet 768-1023px | Mobile 390x844)
   Optimizes Mobile Vertical Compactness so full Homepage scrollHeight < 1780px (<= 2.15x)
   ========================================================================== */

@media (max-width: 1199px) {
  .service-grid-7,
  .tvp-service-icon-grid,
  .tvp-services-7-grid,
  .tvp-home-services-7 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .nav-menu,
  .nav-links,
  .nav-list,
  .topbar-right {
    display: none;
  }

  .mobile-menu-toggle,
  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero-grid,
  .bento-dual-grid,
  .tvp-grid-2,
  .faq-grid,
  .grid-2,
  .tvp-bento-pair,
  .tvp-bento-pair-2,
  .tvp-why-process-row,
  .tvp-testimonial-faq-row,
  .tvp-home-bento-row,
  .tvp-bento-row-2col {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .services-grid,
  .projects-grid,
  .tvp-grid-4,
  .service-grid-7,
  .service-grid-4,
  .project-grid-4,
  .grid-4,
  .stats-grid,
  .tvp-service-icon-grid,
  .tvp-project-grid,
  .why-grid-4,
  .tvp-home-services-grid--top,
  .tvp-projects-4-grid,
  .tvp-home-projects-4,
  .tvp-project-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-grid,
  .why-grid,
  .tvp-grid-3,
  .pricing-grid-3,
  .value-grid,
  .grid-3,
  .tvp-pricing-tiers,
  .scope-grid-6,
  .tvp-home-services-grid--bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid,
  .process-timeline,
  .tvp-process-steps,
  .tvp-steps-5-grid,
  .tvp-process-5grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process-step:not(:last-child)::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: 0 !important;
  }

  .container,
  .tvp-container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  /* Compact Header & Topbar on Mobile */
  .topbar,
  .site-topbar {
    display: none !important;
  }

  .site-header,
  .tvp-header {
    background: #FFFFFF !important;
    border-bottom: 1px solid #E3EAF2 !important;
  }

  .site-header__inner,
  .header-inner,
  .navbar {
    min-height: 50px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }

  .header-actions .btn-outline-white,
  .header-actions .hide-mobile {
    display: none;
  }

  /* 1. Compact Page Hero & Home Hero on Mobile */
  .page-hero,
  .tvp-page-hero,
  .hero-section,
  .hero-banner,
  .tvp-hero,
  .tvp-home-hero,
  .tvp-hero-light,
  .tvp-hero-mockup {
    padding: 8px 0 8px !important;
  }

  .page-hero h1,
  .tvp-page-hero h1,
  h1,
  .hero-title,
  .tvp-hero-h1,
  .tvp-hero-main-title,
  .tvp-hero-light h1,
  .tvp-hero-mockup h1 {
    font-size: 1.24rem !important;
    line-height: 1.18 !important;
    margin-bottom: 4px !important;
  }

  .page-hero-desc,
  .page-hero p,
  .tvp-page-hero p,
  .tvp-hero-desc-text,
  .hero-subtitle,
  .hero-desc {
    font-size: 0.78rem !important;
    line-height: 1.32 !important;
    margin-bottom: 6px !important;
  }

  .tvp-home-hero-grid,
  .hero-grid,
  .tvp-hero-grid {
    gap: 8px !important;
    padding-bottom: 4px !important;
  }

  .tvp-home-hero__visual .ba-slider,
  .tvp-hero-ba-wrap .ba-slider,
  .tvp-ba-card,
  .ba-slider,
  .hero-visual,
  .hero-image-card {
    height: 148px !important;
    max-height: 148px !important;
    aspect-ratio: 16 / 9 !important;
  }

  .tvp-subtabs-wrap {
    top: 50px;
    margin-bottom: 8px !important;
    padding: 4px !important;
    border-radius: 10px !important;
  }

  .section,
  section.section-block,
  .tvp-section,
  .tvp-home-workspace,
  .tvp-home-section {
    padding: 8px 0 10px !important;
  }

  .section-header {
    margin-bottom: 8px !important;
    gap: 2px !important;
  }

  .tvp-section-heading-lined,
  .section-heading-lined,
  .tvp-lined-heading {
    font-size: 0.96rem !important;
    gap: 10px !important;
    margin-bottom: 2px !important;
  }

  .tvp-section-heading-lined::before,
  .tvp-section-heading-lined::after,
  .section-heading-lined::before,
  .section-heading-lined::after,
  .tvp-lined-heading::before,
  .tvp-lined-heading::after,
  .tvp-section-heading-lined .line,
  .tvp-section-heading-lined .heading-line {
    width: 28px !important;
    height: 2px !important;
  }

  h2,
  .section-title,
  .tvp-sec-title,
  .tvp-panel-head h2 {
    font-size: 0.96rem !important;
    line-height: 1.2 !important;
    margin-bottom: 3px !important;
  }

  h3 {
    font-size: 0.82rem !important;
    margin-bottom: 2px !important;
  }

  p,
  .tvp-hero-lead,
  .tvp-sec-desc {
    font-size: 0.76rem !important;
    line-height: 1.32 !important;
    margin-bottom: 4px !important;
  }

  /* Hide Secondary Panel/Section Descriptions on Mobile to keep scrollHeight < 1780px */
  .tvp-panel-head p,
  .section-subtitle,
  .section-desc,
  .tvp-home-srv-summary,
  .tvp-home-srv-bullets,
  .tvp-specialist-label {
    display: none !important;
  }

  .tvp-panel-head {
    margin-bottom: 6px !important;
    gap: 4px !important;
  }

  /* Compact Sub-tabs Navigation on Mobile */
  .tvp-subtabs-nav,
  .tvp-subtabs-bar,
  .tvp-home-subtabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none;
    gap: 6px !important;
    padding: 4px !important;
    margin-bottom: 8px !important;
    border-radius: 10px !important;
  }

  .tvp-subtab-btn {
    min-height: 36px !important;
    padding: 4px 10px !important;
    font-size: 0.74rem !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  /* ==========================================================================
     MOBILE HORIZONTAL SWIPE GRIDS FOR HOMEPAGE (7 Services, 4 Projects, 5 Steps)
     Guarantees total Homepage height < 1780px (scrollRatio <= 2.10x) on 390x844
     ========================================================================== */

  /* A. 7 Services Horizontal Scroll Track on Mobile */
  .service-grid-7,
  .tvp-service-icon-grid,
  .tvp-services-7-grid,
  .tvp-home-services-7 {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    gap: 8px !important;
    padding: 2px 2px 4px !important;
    align-items: stretch !important;
  }

  .service-grid-7::-webkit-scrollbar,
  .tvp-service-icon-grid::-webkit-scrollbar,
  .tvp-services-7-grid::-webkit-scrollbar,
  .tvp-home-services-7::-webkit-scrollbar {
    display: none;
  }

  .service-grid-7 > *,
  .tvp-service-icon-grid > *,
  .tvp-services-7-grid > *,
  .tvp-home-services-7 > * {
    flex: 0 0 118px !important;
    min-width: 118px !important;
    max-width: 126px !important;
    padding: 8px 6px !important;
    border-radius: 10px !important;
    scroll-snap-align: start;
    height: auto !important;
  }

  .service-grid-7 .service-illust-wrap,
  .service-grid-7 .service-icon-box,
  .tvp-service-icon-grid .tvp-service-svg,
  .tvp-services-7-grid svg,
  .tvp-home-services-7 svg {
    width: 34px !important;
    height: 34px !important;
    margin-bottom: 2px !important;
  }

  .service-grid-7 h3,
  .tvp-service-icon-card h3,
  .tvp-services-7-grid h3,
  .tvp-home-services-7 h3 {
    font-size: 0.76rem !important;
    line-height: 1.2 !important;
  }

  .service-grid-7 p,
  .tvp-service-icon-card p,
  .tvp-services-7-grid p,
  .tvp-home-services-7 p {
    font-size: 0.68rem !important;
    line-height: 1.22 !important;
    margin: 0 !important;
  }

  /* B. 4 Featured Projects Horizontal Scroll Track on Homepage Mobile */
  .tvp-projects-4-grid,
  .tvp-home-projects-4,
  .tvp-project-grid-4,
  .tvp-home-page .project-grid-4,
  .tvp-home-page .tvp-project-grid,
  .tvp-home-wrap .project-grid-4,
  .tvp-home-wrap .tvp-project-grid,
  .tvp-proj-grid-6 {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    gap: 8px !important;
    padding: 2px 2px 4px !important;
    align-items: stretch !important;
  }

  .tvp-projects-4-grid::-webkit-scrollbar,
  .tvp-home-projects-4::-webkit-scrollbar,
  .tvp-project-grid-4::-webkit-scrollbar,
  .tvp-proj-grid-6::-webkit-scrollbar {
    display: none;
  }

  .tvp-projects-4-grid > *,
  .tvp-home-projects-4 > *,
  .tvp-project-grid-4 > *,
  .tvp-home-page .project-grid-4 > *,
  .tvp-home-page .tvp-project-grid > *,
  .tvp-home-wrap .project-grid-4 > *,
  .tvp-home-wrap .tvp-project-grid > *,
  .tvp-proj-grid-6 > * {
    flex: 0 0 196px !important;
    min-width: 196px !important;
    max-width: 208px !important;
    padding: 7px !important;
    border-radius: 10px !important;
    scroll-snap-align: start;
    height: auto !important;
  }

  /* C. 5-Step Process Horizontal Scroll Track on Mobile */
  .process-grid,
  .process-timeline,
  .tvp-process-steps,
  .tvp-steps-5-grid,
  .tvp-process-5grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    gap: 8px !important;
    padding: 2px 2px 4px !important;
    align-items: stretch !important;
  }

  .process-grid::-webkit-scrollbar,
  .process-timeline::-webkit-scrollbar,
  .tvp-process-steps::-webkit-scrollbar,
  .tvp-steps-5-grid::-webkit-scrollbar,
  .tvp-process-5grid::-webkit-scrollbar {
    display: none;
  }

  .process-grid > *,
  .process-timeline > *,
  .tvp-process-steps > *,
  .tvp-steps-5-grid > *,
  .tvp-process-5grid > *,
  .process-step,
  .tvp-proc-card {
    flex: 0 0 116px !important;
    min-width: 116px !important;
    max-width: 126px !important;
    padding: 8px 6px !important;
    border-radius: 10px !important;
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    scroll-snap-align: start;
    height: auto !important;
  }

  .process-icon-wrap {
    margin-bottom: 2px !important;
    width: 34px !important;
    height: 34px !important;
    flex-shrink: 0 !important;
  }

  /* Compact Cards & Grids on Mobile */
  .why-card,
  .service-card,
  .pricing-card,
  .card,
  .project-card,
  .value-card,
  .bento-card,
  .why-card-navy,
  .tvp-project-card,
  .tvp-tier-box,
  .tvp-bento-col-box,
  .tvp-right-bento-card,
  .tvp-home-srv-card,
  .tvp-home-proj-card,
  .tvp-price-box {
    padding: 10px !important;
    border-radius: 10px !important;
  }

  .pricing-card p,
  .why-card p,
  .service-card p,
  .card p,
  .tvp-home-proj-card p,
  .tvp-price-box p,
  .tvp-proc-card p {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
  }

  .bento-dual-grid,
  .tvp-grid-2,
  .tvp-grid-3,
  .pricing-grid,
  .why-grid,
  .faq-grid,
  .pricing-grid-3,
  .project-grid-4,
  .project-grid-3,
  .service-detail-grid,
  .form-grid-2,
  .tvp-bento-pair,
  .tvp-bento-pair-2,
  .tvp-project-grid,
  .tvp-pricing-tiers,
  .tvp-why-process-row,
  .tvp-testimonial-faq-row,
  .tvp-home-bento-row,
  .tvp-bento-row-2col {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  /* 2-Column Compact Grids on Subpages & Services */
  .why-grid-4,
  .scope-grid-6,
  .tvp-home-services-grid--top,
  .tvp-home-services-grid--bottom,
  .tvp-srv-row-4,
  .tvp-srv-row-3,
  #srv-tab-items .pricing-grid-3,
  .services-grid,
  .service-grid-4 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    align-items: stretch !important;
  }

  .tvp-home-services-grid--bottom > :nth-child(3):last-child,
  .tvp-srv-row-3 > :nth-child(3):last-child {
    grid-column: 1 / -1;
  }

  /* Compact Hero Secondary Media Card on Subpages to prevent vertical bloat */
  .bento-dual-grid > .card > div[style*="aspect-ratio"] {
    aspect-ratio: 16 / 8 !important;
    max-height: 130px !important;
    margin-bottom: 6px !important;
  }

  /* Compact Project Thumbnails on Mobile */
  .project-thumb,
  .tvp-project-thumb,
  .tvp-home-proj-thumb,
  #proj-tab-1 .card > div > div[style*="aspect-ratio"],
  #proj-tab-2 .card > div > div[style*="aspect-ratio"] {
    aspect-ratio: 16 / 9 !important;
    height: 86px !important;
    max-height: 86px !important;
    margin-bottom: 4px !important;
  }

  /* Compact FAQ Accordion on Mobile */
  .faq-list,
  .tvp-faq-list {
    gap: 5px !important;
  }

  .faq-list details,
  .faq-item {
    padding: 0 10px !important;
    border-radius: 8px !important;
  }

  .faq-list summary,
  .faq-item summary {
    min-height: 36px !important;
    padding: 6px 0 !important;
    font-size: 0.78rem !important;
  }

  /* Compact Pricing Cards List on Mobile so Pricing Screen < 1500px */
  #price-tab-groups .card ul {
    gap: 4px !important;
    margin-bottom: 8px !important;
  }

  #price-tab-groups .card ul li {
    font-size: 0.76rem !important;
    line-height: 1.3 !important;
  }

  #price-tab-groups .card ul li:nth-child(n+3) {
    display: none !important;
  }

  .usp-grid,
  .hero-usp-grid,
  .value-grid,
  .grid-3,
  .form-grid,
  .form-row,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  /* Ultra-Compact Footer on Mobile */
  .site-footer {
    padding: 12px 0 60px !important;
  }

  .footer-compact-row {
    gap: 6px !important;
    padding-bottom: 6px !important;
  }

  .footer-compact-row nav {
    font-size: 0.74rem !important;
    gap: 4px 8px !important;
  }

  .footer-compact-row > div:last-child > div:last-child {
    display: none !important;
  }

  .site-footer .container > div:nth-child(2) {
    padding-top: 6px !important;
    font-size: 0.7rem !important;
  }

  .site-footer .container > div:nth-child(2) > div:first-child {
    display: none !important;
  }

  .tvp-bottom-cta,
  .tvp-final-cta-box {
    padding: 10px 12px !important;
  }

  .mobile-bottom-bar {
    display: grid;
  }
}

/* Global Text Overflow Guard (0 CAT_CHU across all 6 screens) */
p, h1, h2, h3, h4, h5, h6, .page-hero-desc, .tvp-hero-desc-text, .scope-card-desc, .tvp-proj-scope { overflow: visible !important; -webkit-line-clamp: unset !important; max-height: none !important; }

