/* ==========================================================================
   SB HOME — ARCHITECTURE & LUXURY INTERIOR
   FILE: assets/css/components.css (UI Components Specifications)
   Version: 2.0.0
   Max weight: 700 (CẤM 800, 900). 100% Pure SVG Icons.
   ========================================================================== */

/* ==========================================================================
   1. NAVIGATION HEADER & BRAND LOGO
   ========================================================================== */
.luxury-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: height 300ms ease, background 300ms ease;
}

.luxury-header.scrolled {
  height: 75px;
  background: rgba(10, 10, 11, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: transform 300ms ease;
}

.luxury-header.scrolled .brand-logo-img {
  height: 44px;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primitive-light-400);
  position: relative;
  padding: 8px 0;
  transition: color var(--motion-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1.5px;
  background-color: var(--primitive-gold-400);
  transition: width 250ms ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primitive-light-50);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Nav Item Dropdown */
.nav-item-dropdown {
  position: relative;
  padding-bottom: 8px;
  margin-bottom: -8px;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-dropdown-toggle .dropdown-icon {
  width: 12px;
  height: 12px;
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--primitive-gold-400);
}

.nav-item-dropdown:hover .nav-dropdown-toggle .dropdown-icon {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 300px;
  background: rgba(14, 14, 16, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(197, 168, 128, 0.3);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75), 0 0 1px 1px rgba(197, 168, 128, 0.15);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1), visibility 220ms;
  z-index: 1200;
  pointer-events: none;
}

/* Invisible bridge so mouse hover doesn't close dropdown */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  width: 100%;
  height: 16px;
}

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

.nav-dropdown-header {
  padding: 8px 18px 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primitive-gold-400);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  text-decoration: none;
  color: var(--primitive-light-300);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--weight-medium);
  transition: all 180ms ease;
  cursor: pointer;
}

.nav-dropdown-item:hover {
  background: rgba(197, 168, 128, 0.08);
  color: var(--primitive-light-50);
  padding-left: 22px;
}

.nav-dropdown-item.dropdown-item-featured {
  background: rgba(197, 168, 128, 0.04);
}

.nav-dropdown-item.dropdown-item-featured:hover {
  background: rgba(197, 168, 128, 0.12);
}

.dropdown-item-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--primitive-gold-400);
}

.dropdown-item-title {
  font-size: 13px;
  font-weight: var(--weight-medium);
  color: var(--primitive-light-100);
  line-height: 1.3;
}

.dropdown-item-sub {
  font-size: 11px;
  color: var(--primitive-light-500);
  margin-top: 2px;
  line-height: 1.2;
}

.nav-dropdown-item:hover .dropdown-item-title {
  color: var(--primitive-gold-300);
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 6px 0;
}


.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-subtle);
  background: rgba(10, 10, 11, 0.6);
  padding: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--primitive-light-400);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  padding: 6px 10px;
  min-height: 32px;
  cursor: pointer;
  transition: all var(--motion-fast);
}

.lang-btn.active {
  background: rgba(197, 168, 128, 0.2);
  color: var(--primitive-gold-400);
  font-weight: var(--weight-bold);
}

.lang-btn:hover:not(.active) {
  color: var(--primitive-light-50);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--primitive-gold-400);
  background: transparent;
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   2. BUTTONS & CTA SYSTEM
   ========================================================================== */
.btn-luxury-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: var(--primitive-gold-500);
  color: var(--primitive-dark-950);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 32px;
  border: 1px solid var(--primitive-gold-500);
  border-radius: 0px;
  cursor: pointer;
  text-decoration: none;
  min-height: 48px;
  transition: all var(--motion-fast);
}

.btn-luxury-primary:hover {
  background-color: var(--primitive-gold-300);
  border-color: var(--primitive-gold-300);
  box-shadow: var(--shadow-gold-lg);
  transform: translateY(-2px);
}

.btn-luxury-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: transparent;
  color: var(--primitive-light-50);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 32px;
  border: 1px solid var(--border-subtle);
  border-radius: 0px;
  cursor: pointer;
  text-decoration: none;
  min-height: 48px;
  transition: all var(--motion-fast);
}

.btn-luxury-outline:hover {
  border-color: var(--primitive-gold-500);
  color: var(--primitive-gold-400);
  background-color: rgba(197, 168, 128, 0.08);
  transform: translateY(-2px);
}

/* ==========================================================================
   3. HERO BANNER SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-bg-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) contrast(1.1);
  transform: scale(1.04);
  animation: heroKenBurns 20s infinite alternate ease-in-out;
}

@keyframes heroKenBurns {
  0%   { transform: scale(1.0); }
  100% { transform: scale(1.06); }
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(10, 10, 11, 0.4) 0%, rgba(10, 10, 11, 0.85) 70%, var(--primitive-dark-950) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.hero-tagline {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--type-caption-mono);
  font-weight: var(--weight-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primitive-gold-400);
  margin-bottom: var(--space-24);
  background: rgba(10, 10, 11, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  padding: 8px 20px;
}

.hero-title {
  color: var(--primitive-light-50);
  margin-bottom: var(--space-24);
}

.hero-description {
  color: var(--primitive-light-400);
  margin-bottom: var(--space-48);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ==========================================================================
   4. METRIC CARDS (TRUST INDICATORS)
   ========================================================================== */
.metrics-section {
  background-color: var(--primitive-dark-900);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 60px 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-32);
  text-align: center;
}

.metric-card {
  position: relative;
  padding: 10px 20px;
}

.metric-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-subtle);
}

.metric-number {
  font-family: var(--font-display);
  font-size: clamp(36px, 3.5vw, 54px);
  font-weight: var(--weight-regular);
  color: var(--primitive-gold-400);
  line-height: 1.1;
  margin-bottom: 8px;
}

.metric-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.05em;
  color: var(--primitive-light-400);
  text-transform: uppercase;
}

/* ==========================================================================
   5. INTERACTIVE BEFORE/AFTER COMPARISON SLIDER
   ========================================================================== */
.before-after-container {
  max-width: 1200px;
  margin: 0 auto;
}

.before-after-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  user-select: none;
  touch-action: pan-y;
  background-color: var(--primitive-dark-900);
}

.before-after-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-after-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
  width: 50%;
  z-index: 2;
  will-change: width;
}

.before-after-overlay .before-after-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-after-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background-color: var(--primitive-gold-400);
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 0 10px rgba(212, 184, 138, 0.6);
}

.before-after-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--primitive-dark-950);
  border: 1.5px solid var(--primitive-gold-500);
  box-shadow: 0 0 15px rgba(197, 168, 128, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primitive-gold-400);
  cursor: ew-resize;
  z-index: 11;
  touch-action: none;
}

.slider-label {
  position: absolute;
  bottom: 24px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primitive-light-50);
  background: rgba(10, 10, 11, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  z-index: 5;
  pointer-events: none;
}

.slider-label-before { left: 24px; }
.slider-label-after  { right: 24px; color: var(--primitive-gold-300); }

/* ==========================================================================
   6. PROJECT SHOWCASE CARDS (16:10 & 4:3)
   ========================================================================== */
.portfolio-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: var(--space-48);
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 20px;
  border: 1px solid var(--border-subtle);
  color: var(--primitive-light-400);
  background: transparent;
  cursor: pointer;
  transition: all var(--motion-fast);
}

.filter-btn.active, .filter-btn:hover {
  border-color: var(--primitive-gold-500);
  color: var(--primitive-gold-400);
  background: rgba(197, 168, 128, 0.06);
}

.project-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background-color: var(--primitive-dark-900);
  cursor: pointer;
  transition: border-color 300ms ease, box-shadow 300ms ease;
}

.project-card.aspect-16-10 {
  aspect-ratio: 16 / 10;
}

.project-card.aspect-4-3 {
  aspect-ratio: 4 / 3;
}

.project-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--motion-card);
}

.project-card:hover .project-card-image {
  transform: scale(1.03);
}

.project-card:hover {
  border-color: var(--border-subtle-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.project-card-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(10, 10, 11, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  color: var(--primitive-gold-300);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 11, 0.94) 0%, rgba(10, 10, 11, 0.45) 40%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  z-index: 1;
}

.project-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: var(--weight-medium);
  color: var(--primitive-light-50);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.project-card-meta {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--primitive-gold-400);
  font-weight: var(--weight-regular);
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ==========================================================================
   7. SERVICES PILLARS
   ========================================================================== */
.service-card {
  background-color: var(--primitive-dark-900);
  border: 1px solid var(--border-subtle);
  padding: 44px 32px;
  position: relative;
  transition: all var(--motion-fast);
}

.service-card:hover {
  border-color: var(--border-subtle-hover);
  background-color: var(--primitive-dark-800);
  transform: translateY(-4px);
}

.service-number {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--primitive-gold-500);
  opacity: 0.6;
  margin-bottom: 20px;
}

.service-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: var(--weight-medium);
  color: var(--primitive-light-50);
  margin-bottom: 16px;
}

.service-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--primitive-light-400);
  line-height: 1.7;
}

/* ==========================================================================
   8. SMART COST ESTIMATOR WIDGET
   ========================================================================== */
.estimator-card {
  background-color: var(--primitive-dark-900);
  border: 1px solid var(--border-subtle);
  padding: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.estimator-control-group {
  margin-bottom: 32px;
}

.estimator-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primitive-gold-400);
  margin-bottom: 12px;
}

.estimator-slider {
  width: 100%;
  height: 6px;
  border-radius: 0;
  background: var(--primitive-dark-700);
  outline: none;
  -webkit-appearance: none;
}

.estimator-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background: var(--primitive-gold-500);
  border: 2px solid var(--primitive-dark-950);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(197, 168, 128, 0.5);
}

.estimator-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.estimator-option-btn {
  border: 1px solid var(--border-subtle);
  background: transparent;
  padding: 16px;
  text-align: center;
  color: var(--primitive-light-400);
  font-size: 13px;
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: all var(--motion-fast);
}

.estimator-option-btn.active, .estimator-option-btn:hover {
  border-color: var(--primitive-gold-500);
  color: var(--primitive-gold-400);
  background: rgba(197, 168, 128, 0.08);
}

.estimator-result-box {
  background-color: var(--primitive-dark-950);
  border: 1px solid var(--border-subtle);
  padding: 32px;
  text-align: center;
  margin-top: 36px;
}

.estimator-total-price {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 48px);
  color: var(--primitive-gold-400);
  font-weight: var(--weight-regular);
  margin: 12px 0 20px;
}

/* ==========================================================================
   9. FORMS & INPUTS
   ========================================================================== */
.form-input, .form-textarea, .form-select {
  width: 100%;
  background-color: var(--primitive-dark-950);
  border: 1px solid var(--border-subtle);
  color: var(--primitive-light-50);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 14px 18px;
  border-radius: 0px;
  outline: none;
  transition: all var(--motion-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primitive-gold-500);
  box-shadow: 0 0 0 2px rgba(197, 168, 128, 0.2);
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primitive-gold-400);
  margin-bottom: 8px;
}

/* ==========================================================================
   10. SVG ICONS
   ========================================================================== */
.icon-svg {
  display: inline-block;
  width: 20px;
  height: 20px;
  stroke-width: 1.25;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  flex-shrink: 0;
  transition: stroke var(--motion-fast);
}

.icon-svg-sm { width: 16px; height: 16px; stroke-width: 1.5; }
.icon-svg-lg { width: 28px; height: 28px; stroke-width: 1.25; }
.icon-svg-xl { width: 40px; height: 40px; stroke-width: 1.0; }

/* ==========================================================================
   11. ARCHITECTURAL FOOTER
   ========================================================================== */
.luxury-footer {
  background-color: var(--primitive-dark-950);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-80);
  padding-bottom: var(--space-48);
}

.footer-bottom {
  margin-top: var(--space-64);
  padding-top: var(--space-32);
  border-top: 1px solid var(--border-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--primitive-light-400);
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-subtle);
  color: var(--primitive-gold-400);
  transition: all var(--motion-fast);
}

.social-link:hover {
  background: var(--primitive-gold-500);
  color: var(--primitive-dark-950);
}

.footer-policy-link {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--primitive-light-400);
  text-decoration: none;
  transition: all var(--motion-fast);
}

.footer-policy-link:hover {
  color: var(--primitive-gold-400) !important;
  transform: translateX(4px);
}

/* ==========================================================================
   12. MOBILE DRAWER NAVIGATION
   ========================================================================== */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 11, 0.98);
  backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  transform: translateX(100%);
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
  flex-shrink: 0;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-link {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: var(--weight-medium);
  color: var(--primitive-light-200);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color var(--motion-fast);
  display: inline-block;
  text-decoration: none;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--primitive-gold-400);
}

/* Mobile Nav Accordion Group */
.mobile-nav-group {
  display: flex;
  flex-direction: column;
}

.mobile-nav-group-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
}

.mobile-nav-group-row:hover .mobile-nav-link {
  color: var(--primitive-gold-400);
}

.mobile-group-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--primitive-gold-400);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* Whole row handles click reliably */
  cursor: pointer;
  transition: transform 250ms ease, border-color 200ms;
  flex-shrink: 0;
}

.mobile-group-toggle-btn svg {
  width: 14px;
  height: 14px;
}

.mobile-nav-group.expanded .mobile-group-toggle-btn {
  transform: rotate(180deg);
  border-color: var(--primitive-gold-400);
}

.mobile-sub-menu {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0 6px 16px;
  border-left: 2px solid rgba(197, 168, 128, 0.4);
  margin-top: 10px;
}

.mobile-nav-group.expanded .mobile-sub-menu {
  display: flex;
  animation: mobileSubMenuFadeIn 220ms ease-out forwards;
}

@keyframes mobileSubMenuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-sub-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--primitive-light-300);
  text-decoration: none;
  transition: color 200ms ease, transform 200ms ease;
  cursor: pointer;
  padding: 4px 0;
}

.mobile-sub-link .mobile-sub-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--primitive-gold-400);
  opacity: 0.85;
}

.mobile-sub-link:hover {
  color: var(--primitive-gold-300);
  transform: translateX(4px);
}

.mobile-sub-link.active {
  color: var(--primitive-gold-400);
  font-weight: 600;
}

.mobile-sub-link.active .mobile-sub-icon {
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(197, 168, 128, 0.5));
}

.mobile-sub-divider {
  height: 1px;
  background: rgba(197, 168, 128, 0.15);
  margin: 4px 0;
}


@media (max-width: 1023px) {
  .nav-menu {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric-card:nth-child(2)::after {
    display: none;
  }
  .estimator-card {
    padding: 32px 20px;
  }
}

@media (max-width: 767px) {
  .luxury-header {
    height: 75px;
  }
  .brand-logo-img {
    height: 40px;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .metric-card::after {
    display: none !important;
  }
  .estimator-options-grid {
    grid-template-columns: 1fr;
  }
}

/* Compact Mobile Header (< 500px): Tối ưu độ thoáng, ẩn CTA và chuyển ngữ trên header */
@media (max-width: 500px) {
  .luxury-header .header-actions .btn-luxury-primary,
  .luxury-header .header-actions .lang-switcher {
    display: none !important;
  }
}

/* ==========================================================================
   8. JOURNAL & ARTICLE CARDS (Song ngữ & Chuyên mục linh hoạt)
   ========================================================================== */
.journal-card {
  background-color: var(--primitive-dark-900);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--motion-fast);
  text-decoration: none;
  height: 100%;
}

.journal-card:hover {
  border-color: var(--primitive-gold-500);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

.journal-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.journal-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--motion-card);
}

.journal-card:hover .journal-thumb-img {
  transform: scale(1.05);
}

.journal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.journal-cat-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primitive-gold-400);
  background: rgba(197, 160, 89, 0.1);
  border: 1px solid rgba(197, 160, 89, 0.3);
  padding: 4px 10px;
  margin-bottom: 14px;
}

.journal-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: var(--weight-medium);
  color: var(--primitive-light-50);
  line-height: 1.4;
  margin-bottom: 12px;
  transition: color var(--motion-fast);
}

.journal-card:hover .journal-title {
  color: var(--primitive-gold-400);
}

.journal-excerpt {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--primitive-light-400);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.journal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  font-size: 12px;
  color: var(--primitive-light-400);
}

/* ==========================================================================
   14. LUXURY POLICY MODALS (Obsidian & Gold Aesthetics)
   ========================================================================== */
.luxury-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  opacity: 0;
  transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.luxury-modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.luxury-modal-dialog {
  background: var(--primitive-dark-900);
  border: 1px solid rgba(197, 168, 128, 0.4);
  max-width: 680px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 40px 36px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(197, 168, 128, 0.08);
  transform: scale(0.96) translateY(12px);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.luxury-modal-backdrop.active .luxury-modal-dialog {
  transform: scale(1) translateY(0);
}

.luxury-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--primitive-light-300);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 200ms ease;
}

.luxury-modal-close:hover {
  border-color: var(--primitive-gold-400);
  color: var(--primitive-gold-400);
  transform: rotate(90deg);
}

.luxury-modal-close svg {
  width: 18px;
  height: 18px;
}

.luxury-modal-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.luxury-modal-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--primitive-gold-400);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: inline-block;
  margin-bottom: 10px;
}

.luxury-modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.03em;
  color: var(--primitive-light-50);
  margin: 0;
  line-height: 1.35;
}

.luxury-modal-body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.75;
  color: var(--primitive-light-200);
}

.luxury-modal-body p {
  margin-bottom: 16px;
}

.luxury-modal-body h4 {
  color: var(--primitive-gold-300);
  font-size: 15px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.02em;
  margin: 22px 0 8px 0;
}

.luxury-modal-body h4:first-of-type {
  margin-top: 14px;
}

.luxury-modal-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

@media (max-width: 640px) {
  .luxury-modal-dialog {
    padding: 30px 20px;
  }
  .luxury-modal-title {
    font-size: 19px;
  }
  .luxury-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .luxury-modal-footer .btn-luxury-outline,
  .luxury-modal-footer .btn-luxury-primary {
    width: 100%;
    text-align: center;
  }
}

