/* ======= Reset gọn & token ======= */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    sans-serif;
  line-height: 1.6;
  color: #1d1d1f;
  background: #fffdf8;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ======= PALETTE: chỉ đổi màu ở đây ======= */
:root {
  --brand: #16a34a; /* xanh lá chủ đạo */
  --brand-2: #0f7a2a; /* xanh lá đậm (hover/active) */
  --accent: #22c55e; /* xanh lá sáng (điểm nhấn) */
  --ink: #1d1d1f;
  --muted: #6b7280;
  --paper: #ffffff;
  --ring: rgba(34, 197, 94, 0.25); /* focus ring theo brand xanh */
}

/* ======= Layout ======= */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 16px;
}
header.site-header {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #ffffffee, #fffdf8ee);
  backdrop-filter: saturate(120%) blur(6px);
  z-index: 50;
  border-bottom: 1px solid #eee;
}
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e5e7eb, #9ca3af);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  margin-left: 16px; /* bớt sát màn hình bên trái */
}
.brand h1 {
  font-size: 18px;
  margin: 0;
  line-height: 1.2;
}
.nav-links {
  margin-left: auto;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
}
.nav a:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--ring);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  border: 1px solid var(--brand-2);
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.22);
}
.btn:hover {
  background: var(--brand-2);
}
.btn-outline {
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--brand);
}

/* ======= Hero ======= */
.hero {
  padding: 36px 0 20px;
  /* đổi amber -> xanh lá nhạt */
  background: radial-gradient(
      1200px 480px at 70% -10%,
      rgba(34, 197, 94, 0.1),
      transparent
    ),
    #fffdf8;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
}
.hero h2 {
  font-size: 28px;
  margin: 0.2rem 0;
}
.hero p.lead {
  font-size: 17px;
  color: #374151;
  margin: 0.2rem 0 1rem;
}
.badge {
  display: inline-block;
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 6px 10px;
  border-radius: 999px;
  color: #374151;
}
.hero-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.06);
}
.hero-card h3 {
  margin-top: 0;
}

/* ======= Sections ======= */
section {
  padding: 28px 0;
}
h2.section-title {
  font-size: 22px;
  margin: 0 0 12px;
}
.grid {
  display: grid;
  gap: 16px;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}
.card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.muted {
  color: var(--muted);
}

/* ======= Table ======= */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #eee;
  background: #fff;
}
th,
td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #f2f2f2;
}
thead th {
  background: #f8fafc;
  font-weight: 700;
}
tr:last-child td {
  border-bottom: none;
}

/* Nâng cấp CTA nổi bật */
.cta {
  background: #ffffffee;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06);
}
.cta-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transform: translateZ(0);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-cta .ic {
  width: 20px;
  height: 20px;
  display: inline-block;
}
.btn-cta .ic img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Call – xanh lá chủ đạo, có pulse glow để hút mắt */
.btn-cta.call {
  color: #fff;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  border: 1px solid #0b6b23;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.28);
  animation: pulseGlow 2.4s ease-out infinite;
}
.btn-cta.call:hover {
  transform: translateY(-1px);
}

/* Zalo – dùng xanh Zalo đặc trưng */
.btn-cta.zalo {
  color: #fff;
  background: #0068ff;
  border: 1px solid #0050c7;
  box-shadow: 0 8px 20px rgba(0, 104, 255, 0.28);
}
.btn-cta.zalo:hover {
  filter: brightness(1.05);
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

@media (max-width: 480px) {
  .btn-cta {
    padding: 12px 14px;
    font-size: 15px;
  }
}

/* ======= Footer ======= */
footer {
  background: #0f172a;
  color: #e5e7eb;
}
footer a {
  color: #d1fae5;
}

/* ======= Responsive ======= */
@media (max-width: 960px) {
  .hero-grid,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}

/* Giữ nguyên các hiệu ứng chữ logo màu xanh (nếu đang dùng) */
.brand h1 {
  font-size: 1.5rem;
  background: linear-gradient(90deg, #22c55e, #86efac, #22c55e);
  background-size: 200% auto;
  color: #22c55e;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 3s linear infinite;
  font-weight: bold;
}
@keyframes shine {
  to {
    background-position: -200% center;
  }
}

.brand-title {
  position: relative;
  display: inline-block;
  font-weight: 800;
  background: linear-gradient(
    90deg,
    #0f9732 0%,
    #22c55e 18%,
    #16a34a 36%,
    #0f9732 54%,
    #22c55e 72%,
    #0f9732 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: lp-sheen 3.2s linear infinite;
}
@keyframes lp-sheen {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
/* Google map */
.map-box {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}
.map-embed {
  width: 100%;
  aspect-ratio: 16 / 10; /* responsive tỉ lệ 16:10 */
  min-height: 360px; /* fallback cho trình duyệt cũ */
  border: 0;
}
@media (max-width: 640px) {
  .map-embed {
    aspect-ratio: 16 / 14;
    min-height: 320px;
  }
}
/* ======= Floating CTA fixed at right ======= */
.float-cta {
  position: fixed;
  right: 16px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: grid;
  gap: 12px;
  z-index: 9999;
}

.fab {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid #0b6b23; /* viền xanh đậm */
  background: var(--brand-2); /* nền xanh đậm */
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22), 0 0 0 0 rgba(34, 197, 94, 0.55); /* vòng sáng nháy */
  transition: transform 0.12s ease, filter 0.12s ease;
  /* Nháy nhanh + pulse vòng sáng */
  animation: flashGreen 0.6s steps(2, jump-none) infinite,
    pulseFast 1.2s ease-out infinite;
}
.fab:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.fab img {
  width: 28px;
  height: 28px;
  display: block;
  /* Dùng icon màu trắng nền trong suốt để nổi trên nền xanh */
}

/* Biến thể nếu muốn màu riêng cho Zalo (xanh Zalo) — hoặc bỏ để dùng màu brand */
.fab-zalo {
  background: #0068ff;
  border-color: #0050c7;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22), 0 0 0 0 rgba(0, 104, 255, 0.55);
  animation: flashZalo 0.6s steps(2, jump-none) infinite,
    pulseFastZ 1.2s ease-out infinite;
}

/* Keyframes: nháy xanh đậm/thường thật nhanh */
@keyframes flashGreen {
  0%,
  49% {
    background: var(--brand-2);
  }
  50%,
  100% {
    background: var(--brand);
  }
}
@keyframes pulseFast {
  0% {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22), 0 0 0 0 rgba(34, 197, 94, 0.55);
  }
  70% {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22), 0 0 0 16px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22), 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Nháy nhanh cho Zalo */
@keyframes flashZalo {
  0%,
  49% {
    background: #0050c7;
  }
  50%,
  100% {
    background: #0068ff;
  }
}
@keyframes pulseFastZ {
  0% {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22), 0 0 0 0 rgba(0, 104, 255, 0.55);
  }
  70% {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22), 0 0 0 16px rgba(0, 104, 255, 0);
  }
  100% {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22), 0 0 0 0 rgba(0, 104, 255, 0);
  }
}

/* Mobile tối ưu */
@media (max-width: 600px) {
  .fab {
    width: 56px;
    height: 56px;
  }
  .fab img {
    width: 24px;
    height: 24px;
  }
}

/* Tôn trọng người dùng không thích hiệu ứng */
@media (prefers-reduced-motion: reduce) {
  .fab {
    animation: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  }
}
/* Tăng size nút & icon bên trong */
:root {
  --fab-size: 64px; /* đường kính nút tròn */
  --ico-size: 60px; /* kích thước icon bên trong */
}
.fab {
  width: var(--fab-size);
  height: var(--fab-size);
}
.fab .ico {
  width: var(--ico-size);
  height: var(--ico-size);
}

@media (max-width: 600px) {
  :root {
    --fab-size: 56px;
    --ico-size: 34px;
  }
}
