/* ============================================
   KIM SƠN LAND — Real Estate & Construction Landing
   ============================================ */

:root {
  /* Brand */
  --primary: #C9A227;          /* vàng gold */
  --primary-dark: #A8841A;
  --primary-rgb: 201, 162, 39;
  --primary-text: #8A6D12;     /* vàng đậm cho chữ trên nền sáng (đủ tương phản) */
  --on-primary: #1A1405;       /* chữ trên nền vàng */
  --accent: #E8C766;           /* vàng nhạt cho gradient */
  --navy: #13294B;             /* xanh navy theo bảng hiệu */
  --navy-2: #1D3A66;
  --navy-rgb: 19, 41, 75;

  /* Neutrals */
  --bg: #FBFAF6;
  --surface: #FFFFFF;
  --text: #1A1F2B;
  --text-muted: #5F6673;
  --text-on-dark: #F5F1E6;
  --text-on-dark-muted: rgba(245, 241, 230, 0.72);
  --border: #ECE7DA;
  --success: #15803D;
  --zalo: #0068FF;

  --shadow: 0 4px 24px rgba(0,0,0,0.07);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
  --shadow-gold: 0 6px 24px rgba(var(--primary-rgb), 0.35);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.top-sentinel { position: absolute; top: 0; left: 0; height: 40px; width: 1px; pointer-events: none; }

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

.section { padding: 100px 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.45);
}
.btn-primary:disabled { opacity: 0.7; cursor: wait; transform: none; }
.btn-outline {
  background: transparent;
  color: var(--text-on-dark);
  border: 2px solid rgba(245, 241, 230, 0.35);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}
.btn-nav {
  background: var(--primary);
  color: var(--on-primary);
  padding: 10px 20px;
  font-size: 0.875rem;
}
.btn-nav:hover { background: var(--accent); }
.btn-full { width: 100%; justify-content: center; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
  padding: 14px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-on-dark);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: var(--transition);
  white-space: nowrap;
}
.logo-mark { width: 44px; height: 40px; flex-shrink: 0; overflow: visible; }
.lm-gold-line { fill: none; stroke: var(--primary); stroke-linejoin: round; stroke-linecap: round; }
.lm-building { fill: currentColor; }
.lm-star { fill: var(--primary); }
.logo-accent { color: var(--primary); }
.navbar.scrolled .logo { color: var(--navy); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-on-dark-muted);
  transition: var(--transition);
}
.navbar.scrolled .nav-links a { color: var(--text-muted); }
.nav-links a:hover,
.nav-links a.active,
.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active { color: var(--primary); }
.navbar.scrolled .nav-links a.active { color: var(--primary-text); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--text); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
  color: var(--text-on-dark);
}
/* Nền = ảnh văn phòng thật + lớp phủ navy đậm bên trái (chữ dễ đọc), trong dần sang phải */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg,
      rgba(var(--navy-rgb), 0.94) 0%,
      rgba(var(--navy-rgb), 0.80) 42%,
      rgba(var(--navy-rgb), 0.25) 100%),
    url('assets/van-phong.jpg') center 30% / cover no-repeat;
  background-color: var(--navy);
}
/* Viền vàng mảnh dưới đáy hero */
.hero-bg::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}
.hero-grid {
  width: 100%;
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 640px;
}
.hero h1,
.hero-sub { text-shadow: 0 2px 16px rgba(var(--navy-rgb), 0.5); }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--accent);
  border: 1px solid rgba(var(--primary-rgb), 0.35);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  animation: fadeInDown 0.6s ease both;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.5px;
  animation: fadeInUp 0.7s ease 0.1s both;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.12rem;
  color: var(--text-on-dark-muted);
  max-width: 540px;
  animation: fadeInUp 0.7s ease 0.2s both;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.3s both;
}
.hero-highlights {
  display: flex;
  gap: 10px 22px;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.4s both;
}
.hero-highlights li {
  font-size: 0.875rem;
  color: var(--text-on-dark-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-highlights li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 800;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}
.hero-scroll span {
  display: block;
  width: 24px; height: 36px;
  border: 2px solid rgba(var(--primary-rgb), 0.45);
  border-radius: 50px;
  position: relative;
}
.hero-scroll span::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scrollBounce 1.5s infinite;
}

/* ===== SECTION HEADERS ===== */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-text);
  margin-bottom: 12px;
}
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 12px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }
.section-header-light .section-label { color: var(--primary); }
.section-header-light h2 { color: var(--text-on-dark); }

/* ===== ABOUT ===== */
.about { background: var(--surface); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-visual {
  position: relative;
  padding-bottom: 36px;
}
.about-photo {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--surface);
}
.about-photo img { width: 100%; height: auto; aspect-ratio: 960 / 700; object-fit: cover; }
.about-photo-badge {
  position: absolute;
  z-index: 2;
  left: -24px;
  bottom: 0;
  max-width: 360px;
}
.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.about-blob {
  position: absolute;
  inset: -20px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--navy-rgb), 0.04));
  border-radius: 60% 40% 50% 50% / 40% 60% 40% 60%;
  z-index: 0;
  animation: morphBlob 8s ease-in-out infinite;
}
.about-card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon { font-size: 2rem; }
.about-card strong { display: block; font-weight: 700; margin-bottom: 2px; }
.about-card p { color: var(--text-muted); font-size: 0.875rem; margin: 0; }
.about-text h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 20px; }
.about-text > p { color: var(--text-muted); margin-bottom: 16px; }
.about-text > p strong { color: var(--text); }
.about-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.about-mission > div {
  background: var(--bg);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.about-mission strong { display: block; margin-bottom: 4px; }
.about-mission p { color: var(--text-muted); font-size: 0.875rem; }
.about-text .btn { margin-top: 8px; }

/* ===== SERVICES ===== */
.services { background: var(--bg); }
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* hàng cuối thiếu thẻ vẫn nằm giữa */
  gap: 24px;
}
.service-card {
  flex: 0 1 calc((100% - 48px) / 3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-icon { font-size: 2.5rem; margin-bottom: 20px; }
.service-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.service-card > p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.service-card ul { display: flex; flex-direction: column; gap: 8px; }
.service-card li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-card li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== LISTINGS ===== */
.listings { background: var(--surface); }
.listing-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: -28px 0 40px;
}
.filter-btn {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary-text); }
.filter-btn[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--text-on-dark);
}
.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.listing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.listing-card[hidden] { display: none; }
.listing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.listing-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.listing-media img { width: 100%; height: 100%; object-fit: cover; }
.listing-placeholder { font-size: 3.5rem; opacity: 0.9; }
.listing-tag,
.listing-sample {
  position: absolute;
  top: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}
.listing-tag { left: 12px; background: var(--primary); color: var(--on-primary); }
.listing-sample {
  right: 12px;
  background: rgba(255,255,255,0.92);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.listing-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.listing-body h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.4; }
.listing-location { color: var(--text-muted); font-size: 0.875rem; }
.listing-desc { color: var(--text-muted); font-size: 0.85rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.listing-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.85rem; color: var(--text-muted); }
.listing-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.listing-price { color: var(--primary-text); font-size: 1.1rem; font-weight: 800; }
.listing-actions { display: flex; gap: 8px; }
.listing-btn {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 50px;
  transition: var(--transition);
}
.listing-call { background: var(--primary); color: var(--on-primary); }
.listing-call:hover { background: var(--accent); }
.listing-zalo { background: var(--zalo); color: #fff; }
.listing-zalo:hover { opacity: 0.88; }
.listings-empty { text-align: center; color: var(--text-muted); padding: 24px 0; }
.listings-empty a { color: var(--primary-text); font-weight: 600; }
.listings-cta {
  margin-top: 48px;
  padding: 28px 32px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px dashed rgba(var(--primary-rgb), 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.listings-cta p { font-weight: 600; }

/* ===== FAQ ===== */
.faq { background: var(--bg); }
.faq-container { max-width: 820px; }
.section-header p a { color: var(--primary-text); font-weight: 600; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.faq-item[open] { border-color: rgba(var(--primary-rgb), 0.6); box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 56px 18px 22px;
  font-weight: 600;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.15);
  color: var(--primary-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: var(--transition);
}
.faq-item[open] summary::after { content: '−'; background: var(--primary); color: var(--on-primary); }
.faq-item summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: var(--radius-sm); }
.faq-item p { padding: 0 22px 20px; color: var(--text-muted); font-size: 0.95rem; }

/* ===== PROCESS ===== */
.process { background: var(--surface); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.process-card {
  position: relative;
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: var(--transition);
}
.process-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); background: var(--surface); }
.process-step {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--on-primary);
  background: linear-gradient(135deg, var(--accent), var(--primary));
  box-shadow: var(--shadow-gold);
  margin-bottom: 20px;
}
.process-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.process-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== STATS ===== */
.stats {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--text-on-dark);
  padding: 90px 0;
}
.stats .section-header { margin-bottom: 40px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item {
  padding: 28px 20px;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
}
.stat-number,
.stat-unit {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--primary);
}
.stat-item > p { color: var(--text-on-dark-muted); margin-top: 8px; font-size: 0.95rem; font-weight: 500; }

/* ===== CONTACT ===== */
.contact { background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-info h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 16px; }
.contact-info > p { color: var(--text-muted); margin-bottom: 36px; }
.contact-details { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon { font-size: 1.5rem; flex-shrink: 0; }
.contact-item strong { display: block; font-weight: 600; margin-bottom: 2px; }
.contact-item p { color: var(--text-muted); font-size: 0.9rem; margin: 0; word-break: break-word; }
.contact-item a:hover { color: var(--primary-text); }
.contact-map {
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
}
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  transition: var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.18);
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note.error { color: #B91C1C; }
.form-note {
  font-size: 0.875rem;
  color: var(--success);
  text-align: center;
  min-height: 1.2em;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  color: var(--text-on-dark-muted);
  padding: 60px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-bottom: 48px;
}
.footer-brand .logo { color: var(--text-on-dark); display: inline-block; margin-bottom: 12px; }
.footer-brand p { font-size: 0.875rem; }
.footer-company { color: var(--text-on-dark); font-weight: 600; letter-spacing: 0.3px; margin-bottom: 6px; }
.footer-tax { margin-bottom: 6px; }
.footer-tax span { color: var(--text-on-dark); }
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-links > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.footer-links strong { color: var(--primary); font-size: 0.875rem; margin-bottom: 4px; }
.footer-links a { font-size: 0.85rem; transition: var(--transition); word-break: break-word; }
.footer-links a:hover { color: var(--text-on-dark); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; }
.social-links { display: flex; gap: 20px; }
.social-links a { font-size: 0.8rem; transition: var(--transition); }
.social-links a:hover { color: var(--primary); }

/* ===== FLOATING CONTACT ===== */
.float-contact {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.float-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}
.float-btn:hover { transform: scale(1.08); }
.float-zalo { background: var(--zalo); color: #fff; font-size: 0.8rem; }
.float-call {
  background: var(--primary);
  color: var(--on-primary);
  font-size: 1.4rem;
  animation: pulseGold 2s infinite;
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.card-float { animation: floatCard 4s ease-in-out infinite; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* ===== KEYFRAMES ===== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.3; }
}
@keyframes morphBlob {
  0%, 100% { border-radius: 60% 40% 50% 50% / 40% 60% 40% 60%; }
  33% { border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%; }
  66% { border-radius: 50% 50% 30% 70% / 50% 70% 30% 50%; }
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulseGold {
  0% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(var(--primary-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 0.85rem; }
  .btn-nav { padding: 9px 14px; font-size: 0.8rem; }
  .service-card { flex-basis: calc((100% - 24px) / 2); }
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { order: -1; max-width: 640px; width: 100%; margin: 0 auto; }
  .about-photo-badge { left: 16px; }
  .about-values { grid-template-columns: 1fr; max-width: 640px; margin: 48px auto 0; gap: 16px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav-links, .btn-nav { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    padding: 24px;
    gap: 24px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open a { color: var(--text); }
  .hero { min-height: auto; padding: 110px 0 90px; }
  /* Màn hẹp: chữ phủ cả chiều ngang → lớp phủ đều và đậm hơn */
  .hero-bg {
    background:
      linear-gradient(180deg, rgba(var(--navy-rgb), 0.78) 0%, rgba(var(--navy-rgb), 0.92) 100%),
      url('assets/van-phong.jpg') 60% top / cover no-repeat;
    background-color: var(--navy);
  }
  .about-mission { grid-template-columns: 1fr; }
  .service-card { flex-basis: 100%; }
  .listings-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .listing-filters { margin-top: -36px; }
  .listings-cta { flex-direction: column; align-items: stretch; text-align: center; padding: 24px 20px; }
  .listings-cta .btn { justify-content: center; }
  .faq-item summary { padding: 16px 52px 16px 18px; font-size: 0.95rem; }
  .faq-item p { padding: 0 18px 18px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .logo { font-size: 1.15rem; gap: 8px; }
  .logo-mark { width: 36px; height: 33px; }
  .filter-btn { padding: 8px 14px; font-size: 0.85rem; }
  .about-photo-badge { left: 12px; right: 12px; max-width: none; padding: 14px 16px; }
  .listing-foot { flex-wrap: wrap; }
  .process-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-item { padding: 20px 10px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { justify-content: center; }
  .footer-links { grid-template-columns: 1fr; }
  .float-contact { right: 14px; bottom: 14px; }
  .float-btn { width: 50px; height: 50px; }
}
