/* ============================================================
   TRƯỜNG YẾN – Design System
   Minimalist Modern | Navy Blue + Gold | Premium
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Be+Vietnam+Pro:wght@300;400;500;600;700&family=Dancing+Script:wght@700&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  /* ─── Màu thương hiệu Trường Yến ────────────────────────
     Nâu đậm: #5C1A08 (chữ TRUONG)
     Cam sáng: #FF6600 (chữ YEN)
  ─────────────────────────────────────────────────────── */

  /* Brown – màu nâu chủ đạo */
  --navy-900: #1a0800;   /* nâu cực đậm – background tối */
  --navy-800: #5C1A08;   /* nâu đậm chính – primary */
  --navy-700: #7A2510;   /* nâu vừa */
  --navy-600: #8B2E14;   /* nâu nhạt hơn */
  --navy-500: #A03820;   /* nâu medium */
  --navy-100: #F5EAE5;   /* nâu cực nhạt – background card */
  --navy-50:  #FBF4F1;   /* nâu trắng – background section */

  /* Orange – màu cam accent */
  --gold-600: #CC5200;   /* cam đậm */
  --gold-500: #FF6600;   /* cam chuẩn thương hiệu */
  --gold-400: #FF8533;   /* cam nhạt */
  --gold-300: #FFB380;   /* cam rất nhạt */
  --gold-100: #FFF0E5;   /* cam trắng – background nhẹ */

  /* Neutrals – giữ nguyên */
  --white:    #FFFFFF;
  --gray-50:  #FAF9F8;
  --gray-100: #F2EEEC;
  --gray-200: #E5DDD9;
  --gray-300: #C9B9B3;
  --gray-500: #7A6460;
  --gray-600: #5A4642;
  --gray-700: #3D2C28;
  --gray-800: #2A1A16;
  --gray-900: #1a0800;

  /* Semantic – giữ tên, đổi giá trị */
  --primary:        var(--navy-800);   /* #5C1A08 nâu đậm */
  --primary-dark:   var(--navy-900);   /* #1a0800 nâu cực đậm */
  --primary-light:  var(--navy-600);   /* #8B2E14 nâu nhạt */
  --accent:         var(--gold-500);   /* #FF6600 cam chuẩn */
  --accent-dark:    var(--gold-600);   /* #CC5200 cam đậm */
  --accent-light:   var(--gold-300);   /* #FFB380 cam nhạt */
  --text-primary:   var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-light:     var(--gray-500);
  --bg-main:        var(--white);
  --bg-secondary:   var(--gray-50);
  --bg-dark:        var(--navy-900);
  --border:         var(--gray-200);

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Montserrat', sans-serif;

  /* Spacing */
  --container-max: 1280px;
  --container-pad: 1.5rem;
  --section-py:    5rem;

  /* Radius */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-full: 9999px;

  /* Shadows – dùng màu nâu thay vì navy */
  --shadow-sm:   0 2px 8px rgba(92,26,8,0.08);
  --shadow-md:   0 8px 32px rgba(92,26,8,0.12);
  --shadow-lg:   0 16px 48px rgba(92,26,8,0.18);
  --shadow-xl:   0 24px 64px rgba(92,26,8,0.25);
  --shadow-gold: 0 8px 32px rgba(255,102,0,0.25);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
  --transition-spring: 400ms cubic-bezier(0.34,1.56,0.64,1);

  /* Z-index */
  --z-below:    -1;
  --z-base:      0;
  --z-above:    10;
  --z-sticky:  100;
  --z-overlay: 200;
  --z-modal:   300;
  --z-toast:   400;
}


/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-main);
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

button { cursor: pointer; border: none; background: none; font-family: inherit; }

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* ── Container ────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

.display-1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 900; letter-spacing: -0.02em; }
.display-2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; letter-spacing: -0.02em; }
.h1        { font-size: clamp(1.8rem, 3.5vw, 2.75rem); font-weight: 700; }
.h2        { font-size: clamp(1.5rem, 2.5vw, 2.25rem); font-weight: 700; }
.h3        { font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 600; }
.h4        { font-size: clamp(1.1rem, 1.5vw, 1.375rem); font-weight: 600; }
.lead      { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.8; }
.small     { font-size: 0.875rem; }
.caption   { font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600; }

.text-primary   { color: var(--primary); }
.text-accent    { color: var(--accent); }
.text-white     { color: var(--white); }
.text-secondary { color: var(--text-secondary); }
.text-center    { text-align: center; }
.text-right     { text-align: right; }
.fw-normal      { font-weight: 400; }
.fw-medium      { font-weight: 500; }
.fw-semibold    { font-weight: 600; }
.fw-bold        { font-weight: 700; }

/* Section labels */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.8;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97); }

/* Primary */
.btn-primary {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  box-shadow: 0 20px 40px rgba(15,23,42,0.12);
  transform: translateY(-2px);
}

/* Gold / Accent */
.btn-gold {
  background: linear-gradient(135deg, var(--gold-600), var(--gold-400));
  color: var(--white);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  box-shadow: 0 12px 40px rgba(201,168,76,0.4);
  transform: translateY(-2px);
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  padding: 0.85rem 1rem;
}
.btn-ghost:hover { color: var(--primary); }

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
  white-space: nowrap;
  /* KHÔNG dùng min-width: max-content vì sẽ tràn ra ngoài flex container */
}
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-icon {
  width: 44px; height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: all var(--transition-base);
}
.card:hover {
  box-shadow: 0 20px 40px rgba(15,23,42,0.12);
  transform: translateY(-6px);
}

/* Glassmorphism card */
.card-glass {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.card-body { padding: 1.5rem; }
.card-img { position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.card:hover .card-img img { transform: scale(1.07); }

/* ── Badge ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}
.badge-primary { background: var(--navy-100); color: var(--navy-800); }
.badge-gold    { background: var(--gold-100); color: var(--gold-600); }
.badge-success { background: #ECFDF5; color: #065F46; }

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: var(--section-py) 0; }
.section-dark {
  background: var(--bg-dark);
  color: var(--white);
}
.section-dark .section-title { color: var(--white); }
.section-dark .section-subtitle { color: rgba(255,255,255,0.7); }

.section-navy {
  background: linear-gradient(135deg, #4A1505 0%, #8C2A0A 50%, #C44510 100%);
  color: var(--white);
}

.section-gray { background: var(--bg-secondary); }

.section-head {
  margin-bottom: 3rem;
}

/* ── Grid helpers ─────────────────────────────────────────── */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* ── Header / Navbar ──────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-sticky);
  background: #ffffff;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  transition: all var(--transition-base);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header.header-dark {
  background: #ffffff !important;
}
.header.header-dark .nav-link {
  color: var(--navy-800) !important;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 10px 0;
  gap: 0.75rem;
  transition: all var(--transition-base);
}

/* ══════════════════════════════════════════════════════════════
   LOGO IMAGE
   ══════════════════════════════════════════════════════════════ */
.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 60px; /* Chiều cao thực của logo sau khi đã cắt viền trắng */
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply; /* Giữ lại để loại bỏ phông nền trắng thật sự của ảnh */
  transition: transform var(--transition-base), filter var(--transition-base);
}

.nav-logo:hover .logo-img {
  transform: scale(1.02);
}

/* ─ Header xử lý nền cho logo nếu cần ─ */
.header.header-dark .logo-img {
}

/* ─ Sau khi scroll: màu gốc và giữ nguyên kích thước ─ */
.header.scrolled .logo-img {
  filter: none;
}

/* ─ Responsive ─ */
@media (max-width: 1024px) {
  .logo-img { height: 60px; transform: scale(1.8); }
}
@media (max-width: 768px) {
  .logo-img { height: 45px; transform: scale(1.6); }
  .navbar { min-height: 72px; }
}
@media (max-width: 480px) {
  .logo-img { height: 40px; transform: scale(1.5); }
  .navbar { min-height: 64px; }
}




.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  padding: 0.5rem 0.65rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;

  font-weight: 600;
  color: var(--navy-800);   /* Chữ tối trên nền trắng */
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.nav-link:hover, .header.header-dark .nav-link:hover, .header.scrolled .nav-link:hover {
  color: var(--primary);
  background: rgba(255, 102, 0, 0.08);
}
.nav-link.active, .header.header-dark .nav-link.active, .header.scrolled .nav-link.active {
  color: var(--primary);
  background: rgba(255, 102, 0, 0.12);
  font-weight: 700;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: left var(--transition-base), right var(--transition-base);
}
.nav-link:hover::after,
.nav-link.active::after { left: 0.875rem; right: 0.875rem; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.nav-actions .btn {
  font-size: 1.05rem;
  padding: 0.65rem 1.4rem;
}

.nav-hotline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-800);
  white-space: nowrap;
}
.header.header-dark .nav-hotline { color: var(--navy-800); }
.header.scrolled .nav-hotline    { color: var(--navy-800); }

.nav-hotline svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}
.header.header-dark .nav-toggle span { background: var(--navy-800); }
.header.scrolled .nav-toggle span { background: var(--navy-800); }

/* Ẩn hotline khi không đủ chỗ */
@media (max-width: 1100px) {
  .nav-hotline { display: none; }
}
@media (max-width: 900px) {
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions { gap: 0.5rem; }
}


/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

/* Dark overlay để text dễ đọc trên nền sáng */
.hero-bg-slider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 18, 40, 0.45) 0%,
    rgba(10, 18, 40, 0.15) 40%,
    rgba(10, 18, 40, 0) 100%
  );
  pointer-events: none;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.02;
  background-image:
    linear-gradient(rgba(255,255,255,0.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.8) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 8rem 0 5rem;
  max-width: 1000px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 1.05;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #e62e00, #ff6600);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
  font-weight: 400;
  font-style: italic;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2.5rem;
  max-width: 520px;
  line-height: 1.9;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  position: relative;
  z-index: 2;
  display: inline-flex;
  gap: 2.5rem;
  margin-top: 4rem;
  padding: 1.5rem 2.5rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-stat-item {}
.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.hero-stat-number span { color: var(--gold-400); }
.hero-stat-label {
  font-size: 0.82rem;
  color: #FF8533 !important;
  margin-top: 0.3rem;
  font-weight: 600;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-indicator svg { width: 20px; height: 20px; }

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Stats Section ────────────────────────────────────────── */
.stats-section {
  background: var(--white);
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 25%; bottom: 25%;
  width: 1px;
  background: var(--border);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-number .unit {
  font-size: 0.5em;
  color: var(--accent);
}

.stat-label {
  font-size: 0.9rem;
  color: #FF8533 !important;
  font-weight: 700;
}

.stat-desc {
  font-size: 0.78rem;
  color: #FFAA66 !important;
  margin-top: 0.3rem;
  font-weight: 500;
}

/* ── Products Section ─────────────────────────────────────── */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transition: all var(--transition-base);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  box-shadow: 0 20px 40px rgba(15,23,42,0.12);
  transform: translateY(-8px);
  border-color: transparent;
}

.product-card-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}
.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow), opacity 0.45s ease;
  position: relative;
  z-index: 1;
}
/* Ảnh công trình hoàn thiện – hiện khi hover */
.product-card-img img.img-ct {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.45s ease;
  width: 100%; height: 100%;
  object-fit: cover;
}
.product-card:hover .product-card-img img.img-ct { opacity: 1; }
.product-card:hover .product-card-img img:not(.img-ct) { transform: scale(1.04); }

/* Label "Công trình hoàn thiện" */
.ct-label {
  position: absolute;
  bottom: .65rem; right: .65rem;
  z-index: 5;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: .25rem .6rem;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.3s ease 0.1s;
  pointer-events: none;
}
.product-card:hover .ct-label { opacity: 1; }

.product-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(92,26,8,0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}
.product-card:hover .product-card-overlay { opacity: 1; }

.product-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.product-card-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.product-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.product-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  overflow: hidden;     /* chặn tràn ra ngoài card */
  min-width: 0;         /* cho phép flex children co lại */
}
.product-card-actions .btn {
  flex: 1;              /* 2 nút chia đều nhau */
  min-width: 0;         /* cho phép co lại */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
  justify-content: center;
  align-items: center;
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0;
  font-weight: 500;
  font-family: var(--font-body);
}

/* Product categories grid (trang chủ) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  group: true;
}

.category-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.category-card:hover img { transform: scale(1.1); }

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.9) 0%, rgba(10,22,40,0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  transition: background var(--transition-base);
}
.category-card:hover .category-card-overlay {
  background: linear-gradient(to top, rgba(92,26,8,0.95) 0%, rgba(92,26,8,0.5) 100%);
}

.category-card-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.category-card-count {
  font-size: 0.75rem;
  color: var(--gold-400);
}

.category-card-arrow {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--transition-base);
}
.category-card:hover .category-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── Why Choose Us ────────────────────────────────────────── */
.feature-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--white);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-800), var(--gold-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: transparent;
}

.feature-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: var(--navy-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary);
  transition: all var(--transition-base);
}
.feature-card:hover .feature-icon {
  background: var(--primary);
  color: var(--white);
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── About Section ────────────────────────────────────────── */
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.about-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(92,26,8,0.3) 0%, transparent 60%);
}

.about-badge {
  position: absolute;
  bottom: 1.5rem; left: 1.5rem;
  z-index: 2;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: 0 20px 40px rgba(15,23,42,0.12);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.about-badge-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.about-quote {
  position: relative;
  padding: 1.5rem 1.75rem;
  background: var(--navy-50);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
}
.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.3rem; top: 0.3rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-year {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}
.timeline-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.timeline-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Portfolio / Projects ─────────────────────────────────── */
.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}
.project-card img {
  width: 100%; height: 280px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.project-card:hover img { transform: scale(1.08); }

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: background var(--transition-base);
}
.project-card:hover .project-card-overlay {
  background: linear-gradient(to top, rgba(10,22,40,0.95) 0%, rgba(10,22,40,0.3) 100%);
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.project-meta {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}

/* Filter tabs */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.filter-tab {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 2px solid var(--border);
  color: var(--text-secondary);
  background: transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
}
.filter-tab:hover,
.filter-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ── Testimonials ─────────────────────────────────────────── */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  position: relative;
}

.testimonial-quote {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-size: 4rem;
  line-height: 1;
  color: var(--navy-100);
  font-family: var(--font-heading);
  font-weight: 700;
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
}
.testimonial-stars svg { width: 18px; height: 18px; color: var(--accent); fill: currentColor; }

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--border);
}
.testimonial-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
}
.testimonial-role { font-size: 0.8rem; color: var(--text-light); }

/* ── Calculator ───────────────────────────────────────────── */
.calculator-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(15,23,42,0.12);
  border: 1px solid var(--border);
}

.calc-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.calc-product-option {
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}
.calc-product-option:hover { border-color: var(--primary); }
.calc-product-option.selected {
  border-color: var(--primary);
  background: var(--navy-50);
}

.calc-input-group { margin-bottom: 1.25rem; }
.calc-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.calc-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--white);
  transition: border-color var(--transition-fast);
}
.calc-input:focus { border-color: var(--primary); }

.calc-result {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--white);
  margin-top: 1.5rem;
}

.calc-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.calc-result-item {
  text-align: center;
  padding: 1rem;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
}

.calc-result-num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--gold-400);
}

.calc-result-label { font-size: 0.8rem; color: rgba(255,255,255,0.65); margin-top: 0.25rem; }

/* ── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--white);
  transition: all var(--transition-fast);
  appearance: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(92,26,8,0.08);
}

.form-control::placeholder { color: var(--gray-300); }

textarea.form-control { resize: vertical; min-height: 120px; }

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-radio-group { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.form-radio {
  flex: 1;
  min-width: 120px;
}
.form-radio input[type="radio"] { display: none; }
.form-radio label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}
.form-radio input[type="radio"]:checked + label {
  border-color: var(--primary);
  background: var(--navy-50);
  color: var(--primary);
}

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 0.75rem;
  transition: box-shadow var(--transition-fast);
}
.faq-item:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.06); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  gap: 1rem;
  background: var(--white);
  transition: background var(--transition-fast);
}
.faq-question:hover { background: var(--gray-50); }

.faq-icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background: var(--navy-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all var(--transition-base);
}
.faq-item.open .faq-icon {
  background: var(--primary);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}
.faq-item.open .faq-answer { max-height: 400px; }

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 60%, #1a3565 100%);
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 50%, rgba(201,168,76,0.12) 0%, transparent 50%),
    radial-gradient(circle at 90% 50%, rgba(100,150,255,0.06) 0%, transparent 40%);
}

.cta-banner > * { position: relative; }

.cta-banner-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-banner-subtitle {
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* ── Sticky Contact Buttons ───────────────────────────────── */
.sticky-contact {
  position: fixed;
  right: 1.5rem;
  bottom: 2rem;
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
}

.sticky-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  box-shadow: 0 20px 40px rgba(15,23,42,0.12);
  transition: all var(--transition-spring);
  white-space: nowrap;
}
.sticky-btn:hover { transform: scale(1.05) translateX(-4px); }
.sticky-btn:active { transform: scale(0.95); }

.sticky-btn-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

.sticky-zalo { background: #0068FF; }
.sticky-phone { background: var(--navy-800); }

.sticky-label {
  max-width: 0;
  overflow: hidden;
  transition: max-width var(--transition-base), opacity var(--transition-base);
  opacity: 0;
}
.sticky-btn:hover .sticky-label { max-width: 150px; opacity: 1; }

/* ── Chatbot ──────────────────────────────────────────────── */
.chatbot-toggle {
  position: fixed;
  right: 1.5rem;
  bottom: 11rem;
  z-index: var(--z-overlay);
  width: 56px; height: 56px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--white);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-spring);
}
.chatbot-toggle:hover { transform: scale(1.1); }
.chatbot-toggle .badge-dot {
  position: absolute;
  top: 0; right: 0;
  width: 14px; height: 14px;
  background: #22C55E;
  border-radius: var(--radius-full);
  border: 2px solid var(--white);
}

.chatbot-window {
  position: fixed;
  right: 1.5rem;
  bottom: 11rem;
  z-index: var(--z-overlay);
  width: 340px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  max-height: 480px;
  border: 1px solid var(--border);
  transform: scale(0.9) translateY(20px);
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-base);
}

.chatbot-window.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.chatbot-header {
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
}

.chatbot-avatar {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-name { font-weight: 700; font-size: 0.9rem; }
.chatbot-status { font-size: 0.72rem; color: rgba(255,255,255,0.65); }
.chatbot-close { margin-left: auto; cursor: pointer; opacity: 0.7; }

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.msg {
  max-width: 85%;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  line-height: 1.6;
}
.msg-bot {
  background: var(--gray-100);
  color: var(--text-primary);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 4px;
  align-self: flex-start;
}
.msg-user {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 4px var(--radius-lg);
  align-self: flex-end;
}

.chatbot-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
}
.quick-reply {
  padding: 0.4rem 0.875rem;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-full);
  color: var(--primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.quick-reply:hover {
  background: var(--primary);
  color: var(--white);
}

.chatbot-input-wrap {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
}
.chatbot-input {
  flex: 1;
  padding: 0.6rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  transition: border-color var(--transition-fast);
}
.chatbot-input:focus { border-color: var(--primary); }
.chatbot-send {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.chatbot-send:hover { background: var(--navy-700); }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.75);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 2rem;
}

.footer-brand .logo-main { font-size: 1.75rem; color: var(--white); }
.footer-brand .logo-sub  { color: var(--gold-400); }

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.8;
  margin: 1rem 0;
  color: rgba(255,255,255,0.55);
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social-link {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: all var(--transition-fast);
}

.footer-social-link[title="Facebook"] { color: #1877F2; }
.footer-social-link[title="Zalo"] { color: #0068FF; }
.footer-social-link[title="YouTube"] { color: #FF0000; }
.footer-social-link[title="TikTok"] { color: #ffffff; }

.footer-social-link:hover {
  transform: translateY(-4px) scale(1.05);
}

.footer-social-link[title="Facebook"]:hover {
  background: #1877F2; color: #fff; border-color: #1877F2;
  box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}
.footer-social-link[title="Zalo"]:hover {
  background: #0068FF; color: #fff; border-color: #0068FF;
  box-shadow: 0 8px 25px rgba(0, 104, 255, 0.4);
}
.footer-social-link[title="YouTube"]:hover {
  background: #FF0000; color: #fff; border-color: #FF0000;
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}
.footer-social-link[title="TikTok"]:hover {
  background: #000000; color: #fff; border-color: #FE2C55;
  box-shadow: 0 8px 25px rgba(254, 44, 85, 0.4);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition-fast);
}
.footer-link:hover { color: var(--white); }

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.875rem;
  align-items: flex-start;
}
.footer-contact-item svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  color: var(--gold-400);
  margin-top: 3px;
}
.footer-contact-item a { color: inherit; }
.footer-contact-item a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-cert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Dealer Map ───────────────────────────────────────────── */
.map-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15,23,42,0.12);
}

.map-wrap iframe {
  width: 100%;
  height: 450px;
  border: none;
  display: block;
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-light);
  padding: 1rem 0;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--gray-300); }
.breadcrumb-current { color: var(--text-secondary); font-weight: 600; }

/* ── Utilities ────────────────────────────────────────────── */
.hidden     { display: none !important; }
.sr-only    { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.mt-1       { margin-top: 0.5rem; }
.mt-2       { margin-top: 1rem; }
.mt-3       { margin-top: 1.5rem; }
.mt-4       { margin-top: 2rem; }
.mb-2       { margin-bottom: 1rem; }
.mb-3       { margin-bottom: 1.5rem; }
.mb-4       { margin-bottom: 2rem; }
.pt-4       { padding-top: 2rem; }
.divider    { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
  0%   { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="left"]  { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal="left"].revealed,
[data-reveal="right"].revealed,
[data-reveal="scale"].revealed {
  transform: translateX(0) scale(1);
}

[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
.float { animation: float 4s ease-in-out infinite; }

/* Pulse */
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}
.pulse-ring {
  position: relative;
}
.pulse-ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: currentColor;
  animation: pulse-ring 1.5s ease-out infinite;
}

/* ── Page header ──────────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-header-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.page-header-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
}

/* ── Product Compare ──────────────────────────────────────── */
.compare-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  box-shadow: 0 -8px 32px rgba(92,26,8,0.15);
  padding: 1rem;
  z-index: var(--z-sticky);
  display: none;
}
.compare-bar.active { display: flex; align-items: center; gap: 1rem; }

/* ── Sidebar (products page) ──────────────────────────────── */
.sidebar {
  width: 260px;
  flex-shrink: 0;
}

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.sidebar-check { display: flex; flex-direction: column; gap: 0.6rem; }
.sidebar-check label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast);
}
.sidebar-check label:hover { color: var(--primary); }
.sidebar-check input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--primary);
}

/* ── Mobile Nav Drawer ────────────────────────────────────── */
.nav-drawer {
  position: fixed;
  top: 0; left: -100%;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--white);
  z-index: calc(var(--z-sticky) + 1);
  padding: 5rem 1.5rem 2rem;
  box-shadow: var(--shadow-xl);
  transition: left var(--transition-slow);
  overflow-y: auto;
}
.nav-drawer.open { left: 0; }
.nav-drawer .nav-link {
  display: block;
  padding: 0.875rem 0;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--gray-700);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: var(--z-sticky);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}
.nav-overlay.open { opacity: 1; pointer-events: all; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
}

@media (max-width: 768px) {
  :root {
    --section-py: 3.5rem;
    --container-pad: 1rem;
  }

  .nav-menu, .nav-hotline { display: none; }
  .nav-toggle { display: flex; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .chatbot-window { width: calc(100vw - 3rem); right: 1.5rem; }
  .chatbot-toggle { right: 1rem; bottom: 12.5rem; width: 48px; height: 48px; }
  .sticky-contact { right: 1rem; bottom: 4.5rem; }
  #backToTop { right: 1rem; bottom: 1rem; width: 40px; height: 40px; }
  .calc-result-grid { grid-template-columns: 1fr; }
  .sidebar { width: 100%; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.5rem; }
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   UX ENHANCEMENTS & MISSING COMPONENTS
   ============================================================ */

/* ── Back To Top Button ───────────────────────────────────── */
#backToTop {
  position: fixed;
  bottom: 6rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: calc(var(--z-sticky) - 1);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  cursor: pointer;
}
#backToTop.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
#backToTop:hover {
  background: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

/* ── Hamburger Active Animation ──────────────────────────── */
.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
}
.breadcrumb a { transition: color var(--transition-fast); }
.breadcrumb a:hover { color: var(--gold-400) !important; }
.breadcrumb-sep { opacity: 0.5; }
.breadcrumb-current { font-weight: 600; }

/* ── Filter Tabs ─────────────────────────────────────────── */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-tab {
  padding: 0.55rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}
.filter-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--navy-50);
}
.filter-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

/* ── Product Card (inner parts) ──────────────────────────── */
.product-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--gray-100);
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.product-card:hover .product-card-img img {
  transform: scale(1.07);
}

.product-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,.85) 40%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity var(--transition-base);
}
.product-card:hover .product-card-overlay { opacity: 1; }

.product-card-body { padding: 1.25rem; }
.product-card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.product-card-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  line-height: 1.35;
}
.product-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-actions {
  display: flex;
  gap: 0.5rem;
  overflow: hidden;
  min-width: 0;
}

/* ── About page quote ────────────────────────────────────── */
.about-quote {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.9;
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
}
.about-img-wrap { position: relative; }
.about-badge {
  position: absolute;
  background: white;
  border-radius: 12px;
  padding: 0.875rem 1.25rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 220px;
}
.about-badge-icon {
  font-size: 1.5rem;
}

/* ── Timeline ────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0.5rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.35rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid white;
  box-shadow: 0 0 0 3px rgba(201,168,76,.25);
}
.timeline-year {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.timeline-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.timeline-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ── Feature Card ────────────────────────────────────────── */
.feature-card {
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: white;
  border: 1px solid var(--border);
  transition: all var(--transition-base);
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--navy-100);
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-50), var(--navy-100));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.feature-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.feature-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: box-shadow var(--transition-base);
}
.faq-item:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.faq-item.open  { border-color: var(--primary); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.125rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  gap: 1rem;
  transition: background var(--transition-fast), color var(--transition-fast);
  user-select: none;
}
.faq-question:hover { background: var(--navy-50); color: var(--primary); }
.faq-item.open .faq-question { color: var(--primary); background: var(--navy-50); }

.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform var(--transition-base), background var(--transition-base);
  line-height: 1;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ── Calculator UI ───────────────────────────────────────── */
.calculator-wrap {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(15,23,42,0.12);
  border: 1px solid var(--border);
}

.calc-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
}

.calc-product-option {
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.875rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  background: white;
}
.calc-product-option:hover {
  border-color: var(--primary);
  background: var(--navy-50);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.calc-product-option.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-md);
}
.calc-product-option.selected > div { color: white !important; }

.calc-input-group { display: flex; flex-direction: column; gap: 0.4rem; }
.calc-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  letter-spacing: 0.03em;
}

.calc-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  background: white;
}
.calc-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(92,26,8,0.1);
}

.calc-result {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  color: white;
  animation: scaleIn 0.35s ease;
}

.calc-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}

.calc-result-item { text-align: center; }
.calc-result-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold-300);
  line-height: 1;
}
.calc-result-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,.6);
  margin-top: 0.35rem;
}

/* ── Project Cards ───────────────────────────────────────── */
.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: block;
}
.project-card img { transition: transform var(--transition-slow); }
.project-card:hover img { transform: scale(1.06); }
.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  transition: background var(--transition-base);
}
.project-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.35rem;
}
.project-meta {
  font-size: 0.78rem;
  color: rgba(255,255,255,.65);
}

/* ── Map ─────────────────────────────────────────────────── */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 340px;
  box-shadow: var(--shadow-md);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ── Form ────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
}
.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: white;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(92,26,8,0.1);
}
.form-control::placeholder { color: var(--gray-300); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

.form-radio-group { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.form-radio { display: flex; align-items: center; gap: 0.5rem; }
.form-radio input[type="radio"] { accent-color: var(--primary); width: 16px; height: 16px; }
.form-radio label {
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}
.form-radio input:checked + label {
  border-color: var(--primary);
  background: var(--navy-50);
  color: var(--primary);
  font-weight: 600;
}

/* ── Mobile nav drawer menu ──────────────────────────────── */
.nav-drawer-menu {
  display: flex;
  flex-direction: column;
}
.nav-drawer-menu .nav-link {
  display: block;
  padding: 0.875rem 0;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--gray-700);
}
.nav-drawer-menu .nav-link.active { color: var(--primary); }

/* ── Nav Actions mobile ──────────────────────────────────── */
@media (max-width: 768px) {
  .nav-actions .nav-hotline { display: none; }
  .nav-actions .btn { font-size: 0.75rem; padding: 0.5rem 1rem; }
  .product-layout { flex-direction: column; }
  .sidebar { width: 100%; }
  .calculator-wrap { padding: 1.5rem; }
  .calc-select-grid { grid-template-columns: repeat(3, 1fr); }
  .calc-result-grid { grid-template-columns: 1fr 1fr 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .project-featured { grid-column: span 1; }
  .map-wrap { height: 260px; }
  .page-header { padding: 6rem 0 3rem; }
  .filter-tabs { gap: 0.4rem; }
  .filter-tab { padding: 0.45rem 1rem; font-size: 0.75rem; }
  .faq-question { font-size: 0.85rem; }
}

@media (max-width: 480px) {
  .calc-select-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-result-grid { grid-template-columns: repeat(3, 1fr); }
  #backToTop { bottom: 5rem; right: 1rem; }
  .form-radio-group { flex-direction: column; }
}

/* ── Loading skeleton ────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f0f2f8 25%, #e2e8f0 50%, #f0f2f8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

/* ── Focus visible for accessibility ────────────────────── */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ── Smooth image loading ────────────────────────────────── */
img { transition: opacity 0.3s ease; }

/* ── AI Room Hover Effect ───────────────────────────────── */
.gallery-item:hover .gi-hover-img {
  opacity: 1 !important;
}
.gallery-item:hover .gi-main {
  opacity: 0.2 !important;
}


/* FAQ Global Fixes */
.faq-item {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border: none !important;
}
.faq-question {
  font-weight: 600 !important;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  background: transparent;
}
.faq-answer-inner {
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  color: #333;
}
.faq-answer {
  display: block;
  width: 100%;
}
