/*
Theme Name: Xây Dựng Nhật Trình
Theme URI: https://nhat-trinh.vn
Author: Claude AI
Author URI: https://claude.ai
Description: Theme chuyên nghiệp cho công ty kiến trúc và nội thất Nhật Trình — thiết kế hiện đại, sang trọng, đầy animation
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xaydung-nhat-trinh
Tags: architecture, construction, portfolio, animation, dark, corporate
*/

/* ===================================================
   CSS CUSTOM PROPERTIES
=================================================== */
:root {
  /* Nền chính đã đổi sang SÁNG. --color-white/--color-gray* giữ nguyên giá trị SÁNG cũ —
     chỉ dùng cho các khu vực luôn nền tối cố định: header, hero, footer, mobile-menu. */
  --color-dark:      #ffffff;
  --color-dark-2:    #f3f6fa;
  --color-dark-3:    #e2e8f0;
  --color-dark-4:    #c7d2e0;
  --color-gold:      #0089b8;
  --color-gold-2:    #60efff;
  --color-gold-3:    #0099cc;
  --color-white:     #ffffff;
  --color-gray:      #8bacc8;
  --color-gray-2:    #5a7a9a;
  --color-light:     #e8f4ff;
  --color-ink:       #101b2d;
  --color-ink-muted: #51647a;
  --color-ink-faint: #8a9bae;
  --color-on-accent: #06141f;
  --font-heading:    'Playfair Display', Georgia, serif;
  --font-body:       'Inter', Arial, sans-serif;
  --transition:      0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.2s ease;
  --radius:          8px;
  --radius-lg:       16px;
  --shadow:          0 4px 24px rgba(0,0,0,0.5);
  --shadow-gold:     0 8px 32px rgba(0,212,255,0.3);
  --glow:            0 0 20px rgba(0,212,255,0.4), 0 0 60px rgba(0,212,255,0.15);
  --max-width:       1280px;
}

/* ===================================================
   RESET & BASE
=================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--color-dark);
  color: var(--color-ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(0,150,255,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(0,212,255,0.04) 0%, transparent 50%);
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

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

section { position: relative; }

/* ===================================================
   TYPOGRAPHY
=================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.section-tag::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--color-gold);
}

.section-title {
  font-size: clamp(32px, 5vw, 56px);
  color: var(--color-ink);
  margin-bottom: 20px;
}

.section-title span { color: var(--color-gold); }

.section-desc {
  font-size: 16px;
  color: var(--color-ink-muted);
  max-width: 560px;
  line-height: 1.8;
}

/* ===================================================
   BUTTONS
=================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::before { opacity: 1; }

.btn-gold {
  background: linear-gradient(135deg, #0099cc, #00d4ff);
  color: var(--color-on-accent);
  font-weight: 700;
  box-shadow: 0 0 16px rgba(0,212,255,0.3);
}

.btn-gold::before { background: linear-gradient(135deg, #00d4ff, #60efff); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--glow); }

.btn-outline {
  border: 1.5px solid rgba(16,27,45,0.25);
  color: var(--color-ink);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-2px);
}

.btn svg { width: 18px; height: 18px; transition: var(--transition); }
.btn:hover svg { transform: translateX(4px); }

/* ===================================================
   HEADER / NAVIGATION
=================================================== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

#site-header.scrolled {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #0077b6, #00d4ff);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(0,212,255,0.4);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text .main { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--color-white); }
.logo-text .sub  { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--color-gold-2); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.primary-nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.8);
  position: relative;
  padding: 4px 0;
}

.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-gold);
  transition: var(--transition);
}

.primary-nav a:hover,
.primary-nav a.active { color: var(--color-gold-2); }
.primary-nav a:hover::after { width: 100%; }

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-gray);
}

.phone-link svg { color: var(--color-gold-2); width: 16px; height: 16px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,15,0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.mobile-menu.open { opacity: 1; pointer-events: all; display: flex; }

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 36px;
  color: var(--color-white);
}

.mobile-menu a:hover { color: var(--color-gold-2); }

/* ===================================================
   HERO SECTION
=================================================== */
#hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--color-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(3,13,26,0.55) 0%, rgba(3,13,26,0.32) 50%, rgba(3,13,26,0.6) 100%),
    url('https://img.youtube.com/vi/jgldaR6AJLE/maxresdefault.jpg') center/cover no-repeat;
}

.hero-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* tỉ lệ 16:9 */
  min-height: 100%;
  min-width: 177.78vh; /* tỉ lệ 16:9 ngược, đảm bảo luôn phủ kín chiều cao */
  /* scale thêm 22% để zoom/crop ra ngoài khung hình — cắt chữ watermark/tên studio ở góc video */
  transform: translate(-50%, -50%) scale(1.22);
  border: none;
  pointer-events: none;
}

.hero-bg-dim {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(3,13,26,0.62) 0%, rgba(3,13,26,0.3) 50%, rgba(3,13,26,0.58) 100%);
}

@media (max-width: 768px) {
  /* Video nền nặng và dễ bị chặn autoplay trên di động — ẩn video, giữ nền gradient tối làm phương án dự phòng */
  .hero-bg-video { display: none; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(0,150,255,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 30%, rgba(0,212,255,0.07) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 28px;
  animation: fadeInDown 0.8s ease 0.3s both;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-size: clamp(48px, 6.5vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.5s both;
}

.ht-line1 { display: block; color: var(--color-white); text-shadow: 0 2px 16px rgba(0,0,0,0.4); }
.ht-line2 { display: block; color: var(--color-gold-2); text-shadow: 0 0 40px rgba(0,212,255,0.4); }

/* Hero bottom numbers */
.hero-numbers {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  animation: fadeInUp 0.8s ease 1.1s both;
}

.hero-num-item { display: flex; flex-direction: column; gap: 4px; }
.hero-num-item strong { font-family: var(--font-heading); font-size: 32px; font-weight: 900; color: var(--color-gold-2); line-height: 1; }
.hero-num-item span  { font-size: 12px; color: var(--color-gray); text-transform: uppercase; letter-spacing: 1px; }
.hero-num-sep { width: 1px; height: 40px; background: rgba(255,255,255,0.15); flex-shrink: 0; }

.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 560px;
  animation: fadeInUp 0.8s ease 0.7s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.9s both;
}

/* Hero luôn nằm trên video/ảnh tối nên nút outline cần giữ kiểu sáng, khác phần còn lại của site */
#hero .btn-outline {
  border-color: rgba(255,255,255,0.4);
  color: var(--color-white);
}
#hero .btn-outline:hover {
  border-color: var(--color-gold-2);
  color: var(--color-gold-2);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  animation: fadeIn 1s ease 1.5s both;
}

.hero-scroll span {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gray);
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-gold-2), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero-stats {
  position: absolute;
  right: 40px;
  bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 2;
  animation: fadeInRight 0.8s ease 1.2s both;
}

.hero-stat {
  text-align: right;
  padding-right: 16px;
  border-right: 2px solid var(--color-gold);
}

.hero-stat { border-right-color: var(--color-gold-2); }
.hero-stat .num  { font-family: var(--font-heading); font-size: 36px; font-weight: 700; color: var(--color-white); line-height: 1; }
.hero-stat .label { font-size: 11px; color: var(--color-gray); letter-spacing: 1px; text-transform: uppercase; margin-top: 4px; }

/* ===================================================
   MARQUEE / TICKER
=================================================== */
.marquee-section {
  padding: 20px 0;
  background: linear-gradient(90deg, #0077b6, #00b4d8, #00d4ff, #00b4d8, #0077b6);
  background-size: 200% auto;
  animation: gradientMove 6s linear infinite;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

@keyframes gradientMove {
  from { background-position: 0% center; }
  to   { background-position: 200% center; }
}

.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 40px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-on-accent);
}

.marquee-dot {
  width: 6px;
  height: 6px;
  background: var(--color-on-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===================================================
   ABOUT SECTION
=================================================== */
#about {
  padding: 120px 0;
  background: var(--color-dark);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-img-main {
  width: 100%;
  aspect-ratio: 4/5;
  background:
    linear-gradient(135deg, rgba(10,10,15,0.12), rgba(10,10,15,0.02)),
    url('https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?w=800&q=80') center/cover no-repeat;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-img-badge {
  position: absolute;
  bottom: 30px;
  right: -24px;
  background: linear-gradient(135deg, #005f8a, #00b4d8);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-gold);
  border: 1px solid rgba(0,212,255,0.3);
}

.about-img-badge .num  { font-family: var(--font-heading); font-size: 48px; font-weight: 900; color: #fff; line-height: 1; }
.about-img-badge .text { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.85); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

.about-img-mini {
  position: absolute;
  top: -24px;
  right: -24px;
  width: 160px;
  aspect-ratio: 1;
  background:
    url('https://images.unsplash.com/photo-1631889993959-41b4e9c6e3c5?w=400&q=80') center/cover no-repeat;
  border-radius: var(--radius-lg);
  border: 4px solid var(--color-dark);
}

.about-content { }

.about-content .section-desc {
  margin-bottom: 32px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.about-feat {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feat-icon {
  width: 44px;
  height: 44px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  flex-shrink: 0;
}

.feat-icon svg { width: 20px; height: 20px; }

.feat-info .feat-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.feat-info .feat-text  { font-size: 12px; color: var(--color-ink-muted); }

/* ===================================================
   SERVICES SECTION
=================================================== */
#phongthuy-chat {
  padding: 120px 0;
  background: var(--color-dark);
}

#services {
  padding: 120px 0;
  background: var(--color-dark-2);
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-dark);
  border: 1px solid var(--color-dark-3);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  group: true;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover {
  border-color: rgba(0,212,255,0.35);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,212,255,0.15), 0 0 30px rgba(0,212,255,0.08);
}

.service-card:hover::before { transform: scaleX(1); }

.service-num {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 900;
  color: rgba(16,27,45,0.06);
  position: absolute;
  top: 16px;
  right: 20px;
  line-height: 1;
  pointer-events: none;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(201,168,76,0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  margin-bottom: 24px;
  transition: var(--transition);
}

.service-icon svg { width: 26px; height: 26px; }
.service-card:hover .service-icon { background: linear-gradient(135deg, #0077b6, #00d4ff); color: #fff; box-shadow: 0 0 16px rgba(0,212,255,0.5); }

.service-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 13px;
  color: var(--color-ink-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.service-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-gold);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.service-link svg { width: 14px; height: 14px; transition: var(--transition); }
.service-card:hover .service-link svg { transform: translateX(6px); }

/* ===================================================
   PORTFOLIO SECTION
=================================================== */
#portfolio {
  padding: 120px 0;
  background: var(--color-dark);
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.portfolio-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 100px;
  border: 1px solid var(--color-dark-3);
  color: var(--color-ink-muted);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-on-accent);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 24px;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.portfolio-item:nth-child(1) { grid-column: span 2; }

.portfolio-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.portfolio-item:nth-child(1) .portfolio-thumb { aspect-ratio: 2/1; }

.portfolio-item:hover .portfolio-thumb { transform: scale(1.08); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,15,0.95) 0%, rgba(10,10,15,0.4) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-gold-2);
  margin-bottom: 8px;
}

.portfolio-name {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--color-white);
  margin-bottom: 12px;
}

.portfolio-more {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-gold-2);
  font-weight: 600;
}

/* Portfolio placeholder colors */
.portfolio-thumb-bg {
  width: 100%;
  display: block;
}

.pt-1 { background: linear-gradient(135deg, #e9edf3 0%, #dbe2ec 50%, #e9edf3 100%); aspect-ratio: 2/1; }
.pt-2 { background: linear-gradient(135deg, #eef1f5 0%, #e1e6ed 100%); aspect-ratio: 16/9; }
.pt-3 { background: linear-gradient(135deg, #e7eef5 0%, #d8e3ee 100%); aspect-ratio: 16/9; }
.pt-4 { background: linear-gradient(135deg, #e9edf3 0%, #dadfe6 100%); aspect-ratio: 16/9; }
.pt-5 { background: linear-gradient(135deg, #eef1f5 0%, #e1e6ed 100%); aspect-ratio: 16/9; }
.pt-6 { background: linear-gradient(135deg, #e3e6ea 0%, #d3d8df 100%); aspect-ratio: 16/9; }

.portfolio-thumb-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  opacity: 0.3;
  filter: grayscale(1);
}

/* ===================================================
   VIDEO SHOWCASE SECTION
=================================================== */
#video-showcase {
  padding: 120px 0;
  background: var(--color-dark-2);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.video-card { display: flex; flex-direction: column; }

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-ink);
  margin-bottom: 16px;
}

.video-bg-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.video-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6,20,31,0.22);
  transition: var(--transition);
}

.video-thumb:hover::after { background: rgba(6,20,31,0.4); }

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.video-thumb:hover .video-play { transform: translate(-50%,-50%) scale(1.1); }

.video-thumb-empty {
  background: var(--color-dark-3);
  cursor: default;
}
.video-thumb-empty .video-play {
  background: var(--color-dark-4);
  color: var(--color-ink-faint);
}
.video-thumb-empty:hover .video-play { transform: translate(-50%,-50%); }

.video-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-ink);
}

.video-soon {
  font-size: 12px;
  color: var(--color-ink-faint);
  margin-top: 4px;
}

/* ===================================================
   VIDEO MODAL (lightbox phát video có tiếng)
=================================================== */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.video-modal.open { display: flex; }

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6,20,31,0.88);
}

.video-modal-inner {
  position: relative;
  z-index: 1;
  width: min(90vw, 960px);
  aspect-ratio: 16/9;
}

.video-modal-frame,
.video-modal-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius-lg);
}

.video-modal-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.video-modal-close:hover { background: rgba(255,255,255,0.25); }

/* ===================================================
   STATS SECTION
=================================================== */
#stats {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--color-dark-2) 0%, var(--color-dark) 100%);
  border-top: 1px solid var(--color-dark-3);
  border-bottom: 1px solid var(--color-dark-3);
  position: relative;
  overflow: hidden;
}

#stats::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0,212,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}

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

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--color-dark-3);
}

.stat-item:last-child::after { display: none; }

.stat-num {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 900;
  color: var(--color-ink);
  line-height: 1;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.stat-num .suffix { font-size: 32px; color: var(--color-gold); }
.stat-num .prefix { font-size: 32px; color: var(--color-gold); }

.stat-label { font-size: 13px; color: var(--color-ink-muted); text-transform: uppercase; letter-spacing: 2px; font-weight: 500; }
.stat-desc  { font-size: 12px; color: var(--color-ink-faint); margin-top: 6px; }

/* ===================================================
   PROCESS SECTION
=================================================== */
#process {
  padding: 120px 0;
  background: var(--color-dark-2);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 60px;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(12.5% + 32px);
  right: calc(12.5% + 32px);
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-gold-3), var(--color-gold), var(--color-gold-3), transparent);
}

.process-step {
  text-align: center;
  position: relative;
}

.step-num {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--color-dark);
  border: 2px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-gold);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.process-step:hover .step-num {
  background: var(--color-gold);
  color: var(--color-on-accent);
  transform: scale(1.1);
}

.step-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.step-desc  { font-size: 13px; color: var(--color-ink-muted); line-height: 1.7; }

/* ===================================================
   PRICING / BÁO GIÁ SECTION
=================================================== */
#pricing {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-2) 100%);
  border-top: 1px solid var(--color-dark-3);
  border-bottom: 1px solid var(--color-dark-3);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pricing-card {
  position: relative;
  background: var(--color-dark);
  border: 1px solid var(--color-dark-3);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.pricing-featured {
  border-color: var(--color-gold);
  box-shadow: 0 8px 32px rgba(0,137,184,0.15);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-gold);
  color: var(--color-on-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-desc {
  font-size: 13px;
  color: var(--color-ink-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  min-height: 40px;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 24px;
}

.pricing-from,
.pricing-unit {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-ink-muted);
}

.pricing-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--color-ink-muted);
  line-height: 1.4;
}

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

.pricing-btn { width: 100%; justify-content: center; text-align: center; }

.pricing-note {
  text-align: center;
  font-size: 12px;
  color: var(--color-ink-faint);
  margin: 36px auto 0;
  max-width: 680px;
}

/* ===================================================
   COST ESTIMATOR (AI) — TÍNH GIÁ XÂY NHÀ MIỄN PHÍ
=================================================== */
#cost-estimator {
  padding: 120px 0;
  background: var(--color-dark-2);
}

.cost-calc-card {
  background: var(--color-dark);
  border: 1px solid var(--color-dark-3);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

.cost-calc-form { display: flex; flex-direction: column; gap: 20px; }

.cost-calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cost-calc-field { display: flex; flex-direction: column; gap: 8px; }

.cost-calc-field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.cost-calc-field input[type="number"],
.cost-calc-field select {
  background: var(--color-dark-2);
  border: 1px solid var(--color-dark-3);
  color: var(--color-ink);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: var(--font-body);
}
.cost-calc-field input[type="number"]:focus,
.cost-calc-field select:focus { outline: none; border-color: var(--color-gold); }

.cost-calc-checkbox { justify-content: center; }
.cost-calc-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--color-ink-muted);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.cost-calc-checkbox-label input { width: 16px; height: 16px; accent-color: var(--color-gold); flex-shrink: 0; }

.cost-calc-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  position: relative;
}
.cost-calc-submit.is-loading { opacity: .7; pointer-events: none; }

.cost-calc-error {
  font-size: 13px;
  color: #c0392b;
  margin: 0;
  min-height: 1px;
}

.cost-calc-result {
  background: var(--color-dark-2);
  border: 1px solid var(--color-dark-3);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cost-calc-result[hidden] { display: none; }

.cost-calc-result-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-ink);
}
.cost-calc-result-header svg { color: var(--color-gold); flex-shrink: 0; }

.cost-calc-breakdown { display: flex; flex-direction: column; gap: 10px; }

.cost-calc-row-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--color-ink-muted);
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--color-dark-3);
}
.cost-calc-row-item strong { color: var(--color-ink); font-weight: 600; }

.cost-calc-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-top: 4px;
}
.cost-calc-total span { font-size: 13px; color: var(--color-ink-muted); }
.cost-calc-total strong {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-gold);
}

.cost-calc-note {
  font-size: 13px;
  color: var(--color-ink-muted);
  line-height: 1.7;
  margin: 0;
}

.cost-calc-cta { width: 100%; justify-content: center; text-align: center; }

/* ===================================================
   TESTIMONIALS
=================================================== */
#testimonials {
  padding: 120px 0;
  background: var(--color-dark);
}

.testimonials-header { text-align: center; margin-bottom: 60px; }
.testimonials-header .section-desc { margin: 0 auto; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--color-dark-2);
  border: 1px solid var(--color-dark-3);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(201,168,76,0.25);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  color: var(--color-gold);
}

.testimonial-text {
  font-size: 15px;
  color: var(--color-ink-muted);
  line-height: 1.8;
  margin-bottom: 28px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-dark-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-gold);
  flex-shrink: 0;
}

.author-name  { font-size: 15px; font-weight: 600; color: var(--color-ink); }
.author-role  { font-size: 12px; color: var(--color-ink-muted); }

/* ===================================================
   LATEST POSTS SECTION
=================================================== */
#latest-posts {
  padding: 120px 0;
  background: var(--color-dark-2);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  background: var(--color-dark);
  border: 1px solid var(--color-dark-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  border-color: var(--color-dark-4);
}

.post-card-thumb-link { display: block; }

.post-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.post-card-body { padding: 28px; }

.post-card-date {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 10px;
}

.post-card-title {
  font-family: var(--font-heading);
  font-size: 19px;
  line-height: 1.4;
  margin-bottom: 12px;
}
.post-card-title a { color: var(--color-ink); }
.post-card:hover .post-card-title a { color: var(--color-gold); }

.post-card-excerpt {
  font-size: 14px;
  color: var(--color-ink-muted);
  line-height: 1.7;
  margin-bottom: 18px;
}

.post-card-more {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-gold);
  transition: var(--transition);
}
.post-card-more svg { width: 14px; height: 14px; transition: var(--transition); }
.post-card:hover .post-card-more svg { transform: translateX(6px); }

/* ===================================================
   CTA SECTION
=================================================== */
#cta {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--color-dark-2) 0%, var(--color-dark) 100%);
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(0,180,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0,212,255,0.07) 0%, transparent 50%);
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

/* cta-title defined above */

.cta-desc {
  font-size: 17px;
  color: var(--color-ink-muted);
  margin-bottom: 48px;
}

.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.cta-contact-info {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--color-dark-3);
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-detail .icon {
  width: 40px;
  height: 40px;
  background: rgba(201,168,76,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  flex-shrink: 0;
}

.contact-detail .icon svg { width: 18px; height: 18px; }
.contact-detail .label   { font-size: 11px; color: var(--color-ink-muted); text-transform: uppercase; letter-spacing: 1px; }
.contact-detail .value   { font-size: 15px; font-weight: 600; color: var(--color-ink); }

/* ===================================================
   FOOTER
=================================================== */
#site-footer {
  background: #050508;
  padding: 80px 0 0;
  border-top: 1px solid #16263d;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid #16263d;
}

.footer-brand .logo-wrap { margin-bottom: 20px; }

.footer-brand p {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.8;
  margin-bottom: 24px;
}

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

.social-link {
  width: 40px;
  height: 40px;
  background: #16263d;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--color-gold-2);
  color: var(--color-on-accent);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-white);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--color-gold-2);
}

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: var(--color-gray); transition: var(--transition-fast); }
.footer-col ul li a:hover { color: var(--color-gold-2); padding-left: 6px; }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--color-gray);
}

.footer-contact li svg { color: var(--color-gold-2); flex-shrink: 0; margin-top: 2px; width: 16px; height: 16px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}

.footer-bottom p { font-size: 13px; color: var(--color-gray-2); }
.footer-bottom a { color: var(--color-gold-2); }

/* ===================================================
   SECTION HEADER CENTER
=================================================== */
.section-header-center {
  text-align: center;
  margin-bottom: 56px;
}

.section-header-center .section-tag  { justify-content: center; }
.section-header-center .section-desc { margin: 0 auto; }

/* ===================================================
   CTA TITLE FIX
=================================================== */
.cta-title {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--color-ink);
}

.cta-title span { color: var(--color-gold); }

/* ===================================================
   HERO SCROLL (updated)
=================================================== */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  animation: fadeIn 1s ease 1.5s both;
}

.hero-scroll span {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gray);
  order: 2;
}

/* ===================================================
   PAGE CONTENT
=================================================== */
.page-hero {
  padding: 160px 0 80px;
  background: var(--color-dark-2);
  text-align: center;
  border-bottom: 1px solid var(--color-dark-3);
}

.page-content {
  padding: 80px 0;
  max-width: 800px;
  margin: 0 auto;
}

.page-content p { color: var(--color-ink-muted); line-height: 1.9; margin-bottom: 20px; }
.page-content h2 { font-size: 32px; margin: 40px 0 16px; }
.page-content h3 { font-size: 24px; margin: 32px 0 12px; color: var(--color-gold); }

/* ===================================================
   SINGLE POST
=================================================== */
.post-hero {
  height: 50vh;
  min-height: 400px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.post-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,15,0.9) 0%, rgba(10,10,15,0.4) 100%), #1a1a2e;
  background-size: cover;
  background-position: center;
}

.post-hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: 60px;
}

.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px;
}

.post-body p { font-size: 17px; line-height: 1.9; color: var(--color-ink-muted); margin-bottom: 24px; }
.post-body h2 { font-size: 30px; margin: 40px 0 16px; }
.post-body img { width: 100%; border-radius: var(--radius-lg); margin: 32px 0; }

/* ===================================================
   PORTFOLIO ARCHIVE (trang /cong-trinh/ và danh mục)
=================================================== */
.portfolio-archive {
  padding: 80px 0 120px;
  background: var(--color-dark);
}

.portfolio-grid-archive .portfolio-item:nth-child(1) { grid-column: auto; }
.portfolio-grid-archive .portfolio-item:nth-child(1) .portfolio-thumb { aspect-ratio: 16/9; }

.portfolio-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-ink-muted);
}
.portfolio-empty p { margin-bottom: 20px; font-size: 15px; }

.nt-pagination {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}
.nt-pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.nt-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--color-dark-3);
  color: var(--color-ink-muted);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}
.nt-pagination .page-numbers.current,
.nt-pagination .page-numbers:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-on-accent);
}
.nt-pagination .page-numbers.dots {
  border-color: transparent;
  background: none;
}

/* ===================================================
   404 PAGE
=================================================== */
.page-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.page-404 .num-404 {
  font-family: var(--font-heading);
  font-size: clamp(100px, 20vw, 180px);
  font-weight: 900;
  color: rgba(201,168,76,0.1);
  line-height: 1;
  margin-bottom: -20px;
}

/* ===================================================
   KEYFRAMES
=================================================== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width: 1024px) {
  .services-grid     { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid    { grid-template-columns: repeat(2, 1fr); }
  .portfolio-item:nth-child(1) { grid-column: span 2; }
  .video-grid        { grid-template-columns: repeat(2, 1fr); }
  .stats-grid        { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process-grid      { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
  .pricing-grid      { grid-template-columns: repeat(2, 1fr); }
  .cost-calc-card    { grid-template-columns: 1fr; gap: 32px; padding: 36px; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .post-grid         { grid-template-columns: 1fr 1fr; }
  .footer-grid       { grid-template-columns: 1fr 1fr; }
  .about-grid        { grid-template-columns: 1fr; gap: 48px; }
  .about-img-mini, .about-img-badge { position: static; width: auto; margin: 16px 0 0; }
  .hero-stats        { display: none; }
  .cta-contact-info  { flex-wrap: wrap; gap: 24px; }
}

@media (max-width: 768px) {
  /* Header */
  .primary-nav, .phone-link, .header-cta .btn-gold { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero { overflow: hidden; }
  .hero-content { max-width: 100%; padding: 0 4px; }
  .hero-badge { font-size: 10px; letter-spacing: 1px; padding: 6px 14px; white-space: nowrap; }
  .hero-title { font-size: clamp(30px, 8.5vw, 48px); line-height: 1.1; }
  .hero-desc  { font-size: 15px; max-width: 100%; margin-bottom: 28px; }
  .hero-buttons { flex-direction: column; gap: 12px; }
  .hero-buttons .btn { width: 100%; text-align: center; }
  .hero-numbers { gap: 20px; margin-top: 32px; padding-top: 28px; flex-wrap: wrap; }
  .hero-num-item strong { font-size: 24px; }

  /* Grids */
  .services-grid     { grid-template-columns: 1fr; }
  .portfolio-grid    { grid-template-columns: 1fr; }
  .portfolio-item:nth-child(1) { grid-column: span 1; }
  .video-grid        { grid-template-columns: 1fr; }
  .stats-grid        { grid-template-columns: repeat(2, 1fr); }
  .stat-item::after  { display: none; }
  .process-grid      { grid-template-columns: 1fr; }
  .pricing-grid      { grid-template-columns: 1fr; }
  .cost-calc-card    { padding: 24px; }
  .cost-calc-row     { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .post-grid         { grid-template-columns: 1fr; }
  .footer-grid       { grid-template-columns: 1fr; }
  .services-header, .portfolio-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 400px) {
  .hero-title { font-size: clamp(26px, 8vw, 36px); }
  .hero-badge { font-size: 9px; padding: 5px 12px; }
  .hero-numbers { gap: 14px; }
  .hero-num-sep { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   SINGLE PORTFOLIO (single-portfolio.php)
   Dùng màu tường minh, không phụ thuộc vào biến --color-dark/white
   vì theme đã chuyển sang nền sáng.
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero ── */
.pt-hero {
  position: relative;
  height: 70vh;
  min-height: 480px;
  overflow: hidden;
  background: #101b2d;
}
.pt-hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .78;
  display: block;
}
.pt-hero-img--fallback {
  background: linear-gradient(135deg, #101b2d 0%, #1a3a5c 100%);
}
.pt-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,14,20,.15) 0%, rgba(10,14,20,.82) 100%);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 64px 0;
}
.pt-breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: .78rem; color: rgba(255,255,255,.5);
  margin-bottom: 20px; text-transform: uppercase; letter-spacing: .06em;
}
.pt-breadcrumb a { color: inherit; text-decoration: none; transition: color .2s; }
.pt-breadcrumb a:hover { color: #60efff; }
.pt-breadcrumb-sep { opacity: .35; }
.pt-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 700; color: #ffffff; line-height: 1.1;
  margin: 0 0 20px;
}
.pt-hero-cats { display: flex; gap: 10px; flex-wrap: wrap; }
.pt-hero-cat {
  display: inline-block; padding: 5px 16px;
  border: 1px solid rgba(255,255,255,.3); border-radius: 100px;
  font-size: .78rem; color: rgba(255,255,255,.85); letter-spacing: .04em;
  text-decoration: none;
}
.pt-hero-cat:hover { border-color: rgba(255,255,255,.7); }

/* ── Info bar — nền tối, chữ trắng ── */
.pt-info-bar {
  background: #0d1a2e;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.pt-info-bar .container {
  display: flex; flex-wrap: wrap; gap: 0;
}
.pt-info-item {
  flex: 1; min-width: 130px;
  padding: 24px 28px;
  border-right: 1px solid rgba(255,255,255,.07);
}
.pt-info-item:last-child { border-right: none; }
.pt-info-label {
  font-size: .7rem; text-transform: uppercase;
  letter-spacing: .09em; color: #0089b8;
  margin-bottom: 7px;
}
.pt-info-value {
  font-size: .95rem; font-weight: 700; color: #ffffff;
  line-height: 1.3;
}

/* ── Content — nền sáng ── */
.pt-content {
  padding: 96px 0 80px;
  background: #f8fafc;
}
.pt-content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 72px;
  align-items: start;
}
.pt-body h1, .pt-body h2, .pt-body h3 {
  font-family: var(--font-heading);
  color: #101b2d;
  margin: 0 0 16px;
  line-height: 1.2;
}
.pt-body h2 { font-size: 1.65rem; font-weight: 700; margin-top: 48px; }
.pt-body h2:first-child { margin-top: 0; }
.pt-body h3 { font-size: 1.2rem; font-weight: 600; }
.pt-body p {
  font-size: 1rem; line-height: 1.88;
  color: #4a5568; margin: 0 0 22px;
}
.pt-body p:last-child { margin-bottom: 0; }
.pt-body ul, .pt-body ol {
  color: #4a5568; padding-left: 24px;
  margin: 0 0 22px; line-height: 1.8;
}
.pt-body strong { color: #101b2d; }

/* ── Sidebar ── */
.pt-sidebar { position: sticky; top: 90px; }
.pt-sidebar-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
  padding: 32px;
  margin-bottom: 20px;
}
.pt-sidebar-card h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem; font-weight: 700;
  color: #101b2d; margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid #e2e8f0;
}
.pt-spec-list { list-style: none; padding: 0; margin: 0; }
.pt-spec-list li {
  display: flex; justify-content: space-between;
  align-items: baseline; gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: .85rem;
}
.pt-spec-list li:last-child { border-bottom: none; }
.pt-spec-list .spec-label { color: #64748b; white-space: nowrap; }
.pt-spec-list .spec-val {
  color: #101b2d; font-weight: 700;
  text-align: right;
}
.pt-cta-card {
  background: linear-gradient(135deg, #005f85 0%, #0099cc 50%, #0ab3f5 100%);
  border-radius: 16px; padding: 32px; text-align: center;
}
.pt-cta-card h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem; font-weight: 700;
  color: #ffffff; margin: 0 0 10px;
}
.pt-cta-card p {
  font-size: .86rem; color: rgba(255,255,255,.88);
  margin: 0 0 22px; line-height: 1.6;
}
.pt-cta-card .btn-dark {
  display: block; width: 100%; padding: 13px;
  background: #101b2d; color: #ffffff;
  border-radius: 8px; font-weight: 600; font-size: .9rem;
  text-decoration: none; text-align: center;
  transition: background .2s;
}
.pt-cta-card .btn-dark:hover { background: #1a3050; }
.pt-cta-card .btn-phone {
  display: block; margin-top: 12px;
  color: rgba(255,255,255,.92); font-size: .85rem;
  font-weight: 600; text-decoration: none;
}

/* ── Gallery ── */
.pt-gallery {
  padding: 80px 0;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}
.pt-gallery h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem; font-weight: 700;
  color: #101b2d; margin: 0 0 36px;
}
.pt-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 260px 260px;
  gap: 14px;
}
.pt-gallery-grid--1 { grid-template-columns: 1fr; grid-template-rows: 420px; }
.pt-gallery-grid--2 { grid-template-columns: 1fr 1fr; grid-template-rows: 340px; }
.pt-gallery-item {
  overflow: hidden; border-radius: 12px;
  display: block; cursor: zoom-in;
}
.pt-gallery-item:first-child {
  grid-column: span 2; grid-row: span 2;
}
.pt-gallery-grid--1 .pt-gallery-item:first-child,
.pt-gallery-grid--2 .pt-gallery-item:first-child { grid-column: auto; grid-row: auto; }
.pt-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .5s ease;
}
.pt-gallery-item:hover img { transform: scale(1.05); }

/* ── Related ── */
.pt-related {
  padding: 80px 0 120px;
  background: #f3f6fa;
  border-top: 1px solid #e2e8f0;
}
.pt-related-header {
  display: flex; justify-content: space-between;
  align-items: baseline; margin-bottom: 36px;
}
.pt-related-header h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem; font-weight: 700;
  color: #101b2d; margin: 0;
}
.pt-related-header a {
  font-size: .88rem; color: #0089b8;
  font-weight: 600; text-decoration: none;
  transition: opacity .2s;
}
.pt-related-header a:hover { opacity: .7; }
.pt-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .pt-content-grid { grid-template-columns: 1fr; gap: 48px; }
  .pt-sidebar { position: static; }
  .pt-gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .pt-gallery-item:first-child { grid-column: span 2; grid-row: auto; height: 300px; }
  .pt-gallery-item { height: 220px; }
  .pt-related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .pt-hero { height: 55vh; min-height: 360px; }
  .pt-hero-overlay { padding: 40px 0; }
  .pt-info-item { padding: 18px 20px; min-width: 120px; }
  .pt-content { padding: 56px 0 48px; }
  .pt-gallery-grid,
  .pt-gallery-grid--2 { grid-template-columns: 1fr; grid-template-rows: auto; }
  .pt-gallery-item,
  .pt-gallery-item:first-child { grid-column: auto; grid-row: auto; height: 240px; }
  .pt-related-grid { grid-template-columns: 1fr; }
  .pt-related-header { flex-direction: column; gap: 8px; }
}

/* ═══════════════════════════════════════════════════════════════
   FIX: Header & Hero — vùng tối cần hardcode màu, không dùng
   var(--color-dark) vì theme đã chuyển sang nền sáng (#ffffff).
   ═══════════════════════════════════════════════════════════════ */

/* Header: mặc định trong suốt nhưng text trắng → body trắng lộ
   qua → nav link mất. Đặt nền tối ngay từ đầu. */
#site-header {
  background: rgba(5, 12, 28, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
#site-header.scrolled {
  background: rgba(5, 12, 28, 0.97);
}

/* Hero: background chính cần tối để text trắng hiện lên.
   .hero-bg phủ phía trên (YouTube thumbnail + video),
   nhưng nếu thumbnail không load thì màu nền này đỡ. */
#hero {
  background: #101b2d;
}

/* Mobile menu: luôn tối */
.mobile-menu {
  background: #0d1726;
}

/* Footer: luôn tối */
footer, .site-footer {
  background: #0a111f;
  color: #c0cfe0;
}
footer a, .site-footer a { color: #7aa3c8; }
footer a:hover, .site-footer a:hover { color: #60efff; }
