/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --red: #D40000;
  --red-dark: #A80000;
  --red-light: #FF1A1A;
  --dark: #1a1a1a;
  --gray-900: #222;
  --gray-700: #555;
  --gray-500: #777;
  --gray-300: #ddd;
  --gray-100: #f5f5f5;
  --white: #fff;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.1);
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ringPulse {
  0% { box-shadow: 0 0 0 0 rgba(212,0,0,0.5); }
  100% { box-shadow: 0 0 0 18px rgba(212,0,0,0); }
}

.anim {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.anim.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== TOPBAR ===== */
.topbar {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  padding: 8px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar i { margin-right: 6px; color: var(--red); }

/* ===== HEADER ===== */
.header {
  background: var(--red);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  flex-shrink: 0;
}
.logo-icon {
  width: 48px; height: 48px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon i { font-size: 1.4rem; color: var(--red); }
.logo-name { font-size: 1.3rem; font-weight: 800; display: block; line-height: 1.2; }
.logo-sub { font-size: 0.7rem; opacity: 0.85; display: block; }

.nav-links {
  display: flex;
  gap: 4px;
}
.nav-links a {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  transition: var(--transition);
}
.nav-links a:hover {
  background: rgba(255,255,255,0.15);
}

.header-phone a {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--red);
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 700;
  transition: var(--transition);
  flex-shrink: 0;
}
.header-phone a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.header-phone i { font-size: 1rem; }
.phone-label { font-size: 0.7rem; display: block; color: var(--gray-700); font-weight: 500; }
.phone-number { font-size: 1rem; display: block; line-height: 1.2; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 24px; height: 2.5px;
  background: var(--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; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-white {
  background: var(--white);
  color: var(--red);
}
.btn-white:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn-red {
  background: var(--red);
  color: var(--white);
}
.btn-red:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  display: block;
  min-height: 350px;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(100,0,0,0.75), rgba(212,0,0,0.55));
}
.hero-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 2;
}
.hero-content {
  max-width: 700px;
  color: var(--white);
}
.hero h1 {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 8px;
}
.hero h2 {
  font-size: 1.4rem;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1rem;
  opacity: 0.85;
  line-height: 1.7;
  margin-bottom: 28px;
}
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== SECTIONS ===== */
.section { padding: 60px 0; }
.section-gray { background: var(--gray-100); }

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.section-title.red-line {
  padding-bottom: 12px;
  border-bottom: 3px solid var(--red);
  display: inline-block;
}
.section-desc {
  font-size: 0.95rem;
  color: var(--gray-700);
  margin-bottom: 30px;
  max-width: 800px;
}
.sub-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--red);
  margin: 40px 0 16px;
}

/* ===== INTRO ===== */
.intro-block p {
  font-size: 0.95rem;
  color: var(--gray-700);
  margin-bottom: 16px;
  line-height: 1.8;
}

/* ===== ADVANTAGES LIST ===== */
.advantages-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.adv-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 20px;
  background: var(--white);
  border-radius: 8px;
  border-left: 4px solid var(--red);
  transition: var(--transition);
}
.adv-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}
.adv-item i {
  color: var(--red);
  font-size: 1.3rem;
  margin-top: 3px;
  flex-shrink: 0;
}
.adv-item div {
  font-size: 0.92rem;
  color: var(--gray-700);
  line-height: 1.7;
}

/* ===== BANNER IMG ===== */
.banner-img {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.banner-img img {
  width: 100%;
  display: block;
}

/* ===== HIGHLIGHTS ===== */
.highlights { padding: 60px 0; background: var(--white); }
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hl-card {
  text-align: center;
  padding: 0 0 24px;
  background: var(--gray-100);
  border-radius: 10px;
  border-top: 4px solid var(--red);
  transition: var(--transition);
  overflow: hidden;
}
.hl-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  background: var(--white);
}
.hl-card h3, .hl-card p { padding: 0 20px; }
.hl-img {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}
.hl-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hl-card:hover .hl-img img {
  transform: scale(1.05);
}
.hl-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.hl-card p {
  font-size: 0.88rem;
  color: var(--gray-500);
}

/* ===== STEPS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.step-card {
  background: var(--gray-100);
  padding: 28px 20px;
  border-radius: 10px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--gray-300);
}
.step-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.step-num {
  width: 44px; height: 44px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 auto 14px;
}
.step-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.step-card p {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ===== CTA RED ===== */
.cta-red {
  background: var(--red);
  padding: 50px 0;
}
.cta-red .cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: var(--white);
}
.cta-red h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.cta-red p {
  font-size: 0.95rem;
  opacity: 0.85;
}
.cta-red .btn-white { font-size: 1.2rem; padding: 16px 36px; white-space: nowrap; }

/* ===== PRICE TABLE ===== */
.price-table {
  overflow-x: auto;
  margin-bottom: 20px;
}
.price-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.price-table th {
  background: var(--red);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.85rem;
}
.price-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-300);
  color: var(--gray-700);
}
.price-table tr:hover td {
  background: #fff5f5;
}
.price-table tr:nth-child(even) td {
  background: var(--gray-100);
}
.price-table tr:nth-child(even):hover td {
  background: #fff5f5;
}

/* ===== NOTE BOX ===== */
.note-box {
  background: #fff8f8;
  border: 1px solid #ffcccc;
  border-left: 4px solid var(--red);
  border-radius: 8px;
  padding: 20px 24px;
  margin-top: 30px;
}
.note-box h4 {
  color: var(--red);
  font-size: 1rem;
  margin-bottom: 12px;
}
.note-box h4 i { margin-right: 8px; }
.note-box ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.note-box li {
  font-size: 0.88rem;
  color: var(--gray-700);
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}
.note-box li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

/* ===== FAQ ===== */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.faq-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--gray-100);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gray-300);
  transition: var(--transition);
}
.faq-item:hover { border-color: var(--red); }
.faq-item.active {
  border-color: var(--red);
  background: var(--white);
  box-shadow: var(--shadow);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-900);
  text-align: left;
  font-family: inherit;
  gap: 12px;
}
.faq-q i {
  color: var(--red);
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item.active .faq-q i { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item.active .faq-a { max-height: 200px; }
.faq-a p {
  padding: 0 18px 16px;
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 50px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr;
  gap: 40px;
}
.footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
}
.footer-info i { color: var(--red); margin-right: 8px; width: 16px; }
.footer-info a { color: rgba(255,255,255,0.75); }
.footer-info a:hover { color: var(--white); }

.footer-locations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 0.78rem;
}
.footer-locations li { line-height: 1.5; }

.footer-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.footer-services a {
  font-size: 0.82rem;
  transition: var(--transition);
}
.footer-services a:hover { color: var(--red-light); }

.footer-bottom {
  margin-top: 30px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ===== FLOATING ===== */
.floating-cta {
  position: fixed;
  bottom: 24px;
  left: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.float-btn {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--white);
  transition: var(--transition);
}
.float-phone {
  background: var(--red);
  box-shadow: 0 4px 16px rgba(212,0,0,0.4);
  animation: ringPulse 1.5s ease-out infinite;
}
.float-zalo {
  background: #0068ff;
  box-shadow: 0 4px 16px rgba(0,104,255,0.4);
}
.float-btn:hover { transform: scale(1.1); }

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 44px; height: 44px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--red-dark); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .topbar { display: none; }

  .nav, .header-phone { display: none; }
  .hamburger { display: flex; }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--red-dark);
    padding: 12px 0;
    gap: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  }
  .nav-links.active a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.95rem;
  }
  .nav-links.active li:last-child a { border-bottom: none; }

  .nav.active { display: block; }

  .hero-img { min-height: 280px; }
  .hero h1 { font-size: 1.8rem; }
  .hero h2 { font-size: 1.1rem; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { text-align: center; justify-content: center; }

  .section { padding: 40px 0; }
  .section-title { font-size: 1.2rem; }

  .highlights-grid { grid-template-columns: 1fr; gap: 16px; }
  .hl-card { padding: 28px 20px; }

  .steps-grid { grid-template-columns: 1fr; gap: 12px; }
  .step-card { text-align: left; display: flex; gap: 16px; align-items: flex-start; padding: 20px; }
  .step-num { margin: 0; flex-shrink: 0; }

  .cta-red .cta-inner { flex-direction: column; text-align: center; }
  .cta-red h2 { font-size: 1.2rem; }

  .price-table { font-size: 0.82rem; }

  .faq-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-locations { grid-template-columns: 1fr; }

  .floating-cta { bottom: 16px; left: 14px; }
  .float-btn { width: 48px; height: 48px; font-size: 1.1rem; }
  .float-zalo svg { width: 22px; height: 22px; }
  .back-to-top { bottom: 16px; right: 14px; width: 40px; height: 40px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .logo-name { font-size: 1.1rem; }
  .adv-item { padding: 12px 14px; }
  .price-table th, .price-table td { padding: 10px 10px; font-size: 0.78rem; }
}

@media (hover: none) {
  .adv-item:hover { transform: none; box-shadow: none; }
  .hl-card:hover { transform: none; box-shadow: none; }
  .step-card:hover { transform: none; }
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .floating-cta { bottom: calc(16px + env(safe-area-inset-bottom)); }
  .back-to-top { bottom: calc(16px + env(safe-area-inset-bottom)); }
}
