/* DNIT CORE - AN MỘC LIVING THEME */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/be-vietnam-pro-vietnamese-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/be-vietnam-pro-vietnamese-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/be-vietnam-pro-vietnamese-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/be-vietnam-pro-vietnamese-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/playfair-display-vietnamese-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/playfair-display-vietnamese-700-normal.woff2') format('woff2');
}

:root {
  --primary: #8C5835;
  --primary-hover: #734526;
  --primary-light: #F7F3EE;
  --accent: #D4A373;
  --dark: #1E1E1E;
  --dark-accent: #2A2A2A;
  --text: #444444;
  --text-light: #777777;
  --bg: #FFFFFF;
  --bg-alt: #FAF8F5;
  --border: #E8E2D9;
  --radius: 6px;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 35px rgba(0,0,0,0.1);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: all 0.25s ease; }
ul { list-style: none; }

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

/* TOPBAR */
.topbar {
  background: var(--dark);
  color: #DDD;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-left { display: flex; gap: 20px; }
.topbar-right { display: flex; gap: 15px; }

/* HEADER */
.header {
  background: #FFF;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 15px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: #FFF;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-heading);
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.brand-slogan {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
}

.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-link {
  font-weight: 500;
  font-size: 15px;
  color: var(--dark);
  position: relative;
  padding: 6px 0;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}
.btn-primary {
  background: var(--primary);
  color: #FFF;
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(140, 88, 53, 0.25);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #FFF;
}
.btn-white {
  background: #FFF;
  color: var(--dark);
}
.btn-white:hover {
  background: var(--primary-light);
}

/* HERO SECTION */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.65)), url('../anh/hero.jpg') center/cover no-repeat;
  color: #FFF;
  padding: 80px 0;
}
.hero-content {
  max-width: 680px;
}
.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 46px;
  line-height: 1.25;
  margin-bottom: 20px;
  font-weight: 700;
}
.hero-desc {
  font-size: 17px;
  line-height: 1.7;
  color: #E0E0E0;
  margin-bottom: 35px;
}
.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* STATS BAR */
.stats-bar {
  background: #FFF;
  padding: 30px 0;
  box-shadow: var(--shadow);
  margin-top: -40px;
  position: relative;
  z-index: 10;
  border-radius: var(--radius);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item {
  border-right: 1px solid var(--border);
  padding: 10px 15px;
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}
.stat-label {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 5px;
}

/* SECTION COMMONS */
.section {
  padding: 85px 0;
}
.section-bg {
  background: var(--bg-alt);
}
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px;
}
.section-sub {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 34px;
  color: var(--dark);
  font-weight: 700;
  line-height: 1.3;
}
.section-desc {
  font-size: 15px;
  color: var(--text-light);
  margin-top: 12px;
}

/* CATEGORIES SPACES */
.space-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.space-card {
  position: relative;
  height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-end;
  padding: 30px;
  color: #FFF;
  cursor: pointer;
}
.space-card img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1;
}
.space-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  z-index: 2;
  transition: opacity 0.3s ease;
}
.space-card:hover img {
  transform: scale(1.08);
}
.space-info {
  position: relative;
  z-index: 3;
}
.space-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}
.space-count {
  font-size: 13px;
  color: #D4A373;
}

/* PRODUCTS GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: #FFF;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.product-thumb {
  position: relative;
  height: 240px;
  background: #F3F1EC;
  overflow: hidden;
}
.product-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-thumb img {
  transform: scale(1.05);
}
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--primary);
  color: #FFF;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}
.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-cat {
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.product-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.4;
}
.product-material {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 15px;
}
.product-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}
.product-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
}
.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

/* PROJECTS SECTION */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.project-card {
  background: #FFF;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.project-thumb {
  height: 260px;
  overflow: hidden;
}
.project-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .project-thumb img {
  transform: scale(1.05);
}
.project-info {
  padding: 24px;
}
.project-meta {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.project-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.project-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ESTIMATOR CALCULATOR TOOL */
.estimator-card {
  background: #FFF;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 40px;
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--dark);
  margin-bottom: 8px;
}
.form-select, .form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  background: #FFF;
  color: var(--dark);
}
.form-select:focus, .form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(140,88,53,0.1);
}
.radio-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.radio-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}
.radio-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}
.radio-card-title { font-size: 13px; }
.radio-card-sub { font-size: 11px; color: var(--text-light); margin-top: 4px; }
.calc-result {
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px dashed var(--border);
}
.calc-price {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  margin: 10px 0;
}

/* PROCESS WORKFLOW */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-card {
  text-align: center;
  padding: 30px 20px;
  background: #FFF;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.process-step {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.process-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.process-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

/* TESTIMONIALS */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.testimonial-card {
  background: #FFF;
  padding: 35px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}
.testimonial-stars {
  color: #F59E0B;
  font-size: 18px;
  margin-bottom: 15px;
}
.testimonial-text {
  font-style: italic;
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #E0E0E0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--dark);
}
.author-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--dark);
}
.author-sub {
  font-size: 12px;
  color: var(--text-light);
}

/* FOOTER */
.footer {
  background: var(--dark);
  color: #CCC;
  padding: 70px 0 30px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}
.footer-brand {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: #FFF;
}
.footer-desc {
  color: #999;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-title {
  color: #FFF;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}
.footer-contact li {
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  color: #AAA;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #777;
}

/* LIVE BRAND CUSTOMIZER TOOLBAR */
.brand-customizer-toggle {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--primary);
  color: #FFF;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  cursor: pointer;
  z-index: 9999;
  transition: all 0.3s ease;
}
.brand-customizer-toggle:hover {
  transform: scale(1.05);
}
.brand-customizer-panel {
  position: fixed;
  bottom: 80px;
  right: 25px;
  width: 330px;
  background: #FFF;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  padding: 24px;
  z-index: 9999;
  display: none;
  animation: slideUp 0.3s ease forwards;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
.customizer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.customizer-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
}
.customizer-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #888;
}
.color-picker-grid {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.color-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #FFF;
  box-shadow: 0 0 0 1px #CCC;
  transition: all 0.2s;
}
.color-dot:hover, .color-dot.active {
  box-shadow: 0 0 0 3px var(--dark);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .hero-title { font-size: 34px; }
  .space-grid, .product-grid, .stats-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .estimator-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .nav-menu { display: none; }
  .hero { min-height: 480px; padding: 50px 0; }
  .hero-title { font-size: 28px; }
  .space-grid, .product-grid, .stats-grid, .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .stats-item { border-right: none; border-bottom: 1px solid var(--border); }
}
