/* ============================================================================
   style.css — giao diện. Tối giản, nhiều khoảng trắng, xanh lá Haka làm nhấn.
   Bảng màu & khoảng cách gom ở :root bên dưới — muốn đổi tông, sửa ở đó.
   ============================================================================ */

:root {
  /* --- Màu thương hiệu: teal "Sea Nymph". Đổi mã màu ở đây để đổi cả trang. --- */
  --green:        #6f9f9c;   /* teal Sea Nymph — màu thương hiệu (viền, nền nhạt, nhấn) */
  --green-dark:   #3f736f;   /* teal đậm — nút & chữ nhấn (để chữ trắng đọc rõ) */
  --green-darker: #2f5a57;   /* teal đậm hơn — trạng thái hover */
  --green-tint:   #eef5f4;   /* teal rất nhạt (nền mềm) */
  --green-line:   #d3e3e1;

  --ink:          #16211b;   /* chữ chính, gần đen */
  --muted:        #5c6660;   /* chữ phụ */
  --bg:           #ffffff;   /* nền trắng */
  --bg-soft:      #f6f8f6;   /* nền xám xanh rất nhạt */
  --line:         #e6eae7;   /* đường kẻ mảnh */

  --radius:       16px;
  --maxw:         1080px;
  --gap:          clamp(48px, 8vw, 104px); /* khoảng cách dọc giữa các section */

  /* Bộ font hệ thống — nhanh, không tải font ngoài, hỗ trợ tiếng Việt tốt.
     Muốn dùng font riêng (VD "Be Vietnam Pro"): thêm <link> trong index.html
     rồi thêm tên font vào đầu danh sách dưới đây. */
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------- Reset nhẹ --------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.section { padding: var(--gap) 0; }
.section--soft { background: var(--bg-soft); }

.section__title {
  font-size: clamp(26px, 4.4vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 10px;
}
.section__sub { color: var(--muted); font-size: 18px; margin-bottom: 40px; }

/* ============================ NÚT CTA ============================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; line-height: 1;
  padding: 16px 26px; border-radius: 999px;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  cursor: pointer; border: 2px solid transparent;
}
.btn__arrow { transition: transform .15s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--green-dark); color: #fff;
  box-shadow: 0 10px 24px -12px rgba(63,115,111,.7);
}
.btn--primary:hover { background: var(--green-darker); }

.btn--ghost {
  background: #fff; color: var(--green-dark);
  border-color: var(--green-line);
}
.btn--ghost:hover { border-color: var(--green); background: var(--green-tint); }

/* ============================== HERO ============================== */
.hero {
  padding: clamp(40px, 7vw, 84px) 0 var(--gap);
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.hero__eyebrow {
  color: var(--green-dark); font-weight: 700; font-size: 15px;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px;
}
.hero__name {
  font-size: clamp(36px, 7vw, 62px); line-height: 1.05;
  letter-spacing: -0.03em; font-weight: 800; margin-bottom: 18px;
}
.hero__subline {
  font-size: clamp(17px, 2.4vw, 20px); color: var(--muted);
  max-width: 34ch; margin-bottom: 30px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__media { display: flex; justify-content: center; }
.hero__photo {
  width: 100%; max-width: 360px; aspect-ratio: 1 / 1;
  object-fit: cover; border-radius: 22px;
  box-shadow: 0 30px 60px -30px rgba(22,33,27,.35);
}
.hero__photo--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--green-tint); color: var(--green-dark);
  font-weight: 700; border: 2px dashed var(--green-line);
}

/* =========================== BẰNG CHỨNG =========================== */
.proof { background: var(--bg-soft); }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-bottom: clamp(44px, 7vw, 72px);
}
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 20px; text-align: center;
}
.stat__num {
  font-size: clamp(28px, 5vw, 40px); font-weight: 800;
  color: var(--green-dark); letter-spacing: -0.02em; line-height: 1;
}
.stat__label { color: var(--muted); font-size: 15px; margin-top: 8px; }

.tm-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  margin-top: 26px;
}
.tm {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 20px;
}
.tm__quote {
  font-size: 18px; line-height: 1.6; color: var(--ink);
  position: relative; padding-top: 6px;
}
.tm__quote::before {
  content: "\201C"; color: var(--green); font-size: 46px;
  line-height: 0; position: absolute; top: 14px; left: -4px; opacity: .35;
}
.tm__by { display: flex; align-items: center; gap: 12px; }
.tm__avatar {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  flex: 0 0 auto;
}
.tm__avatar--initial {
  display: flex; align-items: center; justify-content: center;
  background: var(--green-tint); color: var(--green-dark); font-weight: 800;
}
.tm__name { display: block; font-weight: 700; }
.tm__role { display: block; color: var(--muted); font-size: 14px; }

.brands__label {
  text-align: center; color: var(--muted); font-size: 14px;
  text-transform: uppercase; letter-spacing: .06em;
  margin: clamp(40px, 6vw, 60px) 0 18px;
}
.brands {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px;
}
.brand {
  color: var(--ink); font-weight: 700; font-size: 17px; opacity: .7;
}

/* ============================= OFFERS ============================= */
.offer-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; align-items: stretch;
}
.offer {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column;
  position: relative;
}
.offer__badge {
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.offer__title {
  font-size: 22px; font-weight: 800; line-height: 1.25; margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.offer__forwho { font-size: 15px; color: var(--muted); margin-bottom: 12px; }
.offer__forwho strong { color: var(--ink); }
.offer__lead { font-size: 16px; margin-bottom: 18px; }
.offer__outcome {
  list-style: none; margin: 0 0 26px; display: grid; gap: 10px;
}
.offer__outcome li {
  position: relative; padding-left: 26px; font-size: 15.5px; color: var(--ink);
}
.offer__outcome li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 800;
}
.offer__cta { margin-top: auto; }
.offer__cta .btn { width: 100%; justify-content: center; }

/* Offer chủ lực — nổi bật nhất trong ba cái */
.offer--featured {
  border: 2px solid var(--green);
  box-shadow: 0 30px 60px -34px rgba(63,115,111,.5);
  background: linear-gradient(180deg, var(--green-tint) 0%, #fff 42%);
}
.offer__flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--green-dark); color: #fff; font-size: 13px; font-weight: 700;
  padding: 6px 16px; border-radius: 999px; letter-spacing: .03em;
  white-space: nowrap;
}

/* ============================== VỀ TÔI ============================= */
.about__inner {
  display: grid; grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 5vw, 60px); align-items: start;
}
.about__photo {
  width: 100%; border-radius: var(--radius); object-fit: cover;
  aspect-ratio: 4 / 5;
}
.about__creds {
  list-style: none; margin-top: 22px; display: grid; gap: 10px;
}
.about__creds li {
  position: relative; padding-left: 24px; font-size: 15.5px; color: var(--ink);
}
.about__creds li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--green);
}
.about__text p { margin-bottom: 18px; font-size: 18px; }
.about__text p:last-child { margin-bottom: 0; }

/* =========================== CTA CUỐI ============================ */
.final-cta { background: var(--green-dark); color: #fff; text-align: center; }
.final-cta__inner { max-width: 680px; }
.final-cta__title {
  font-size: clamp(28px, 5vw, 44px); font-weight: 800; line-height: 1.15;
  letter-spacing: -0.02em; margin-bottom: 16px;
}
.final-cta__sub { font-size: 19px; opacity: .92; margin-bottom: 30px; }
.final-cta__btn .btn--primary {
  background: #fff; color: var(--green-dark);
  box-shadow: 0 14px 30px -14px rgba(0,0,0,.5);
}
.final-cta__btn .btn--primary:hover { background: #f0f0f0; }
.final-cta__note { margin-top: 20px; font-size: 15px; opacity: .82; }

/* ============================= FOOTER ============================ */
.footer { padding: 44px 0; border-top: 1px solid var(--line); }
.footer__inner {
  display: flex; flex-wrap: wrap; gap: 16px 40px;
  align-items: center; justify-content: space-between;
}
.footer__brand { font-weight: 800; }
.footer__tagline { color: var(--muted); margin-left: 12px; }
.footer__contact { display: flex; gap: 22px; }
.footer__link { font-weight: 600; color: var(--green-dark); }
.footer__link:hover { text-decoration: underline; }
.footer__copy { color: var(--muted); font-size: 14px; }

/* ===================== NÚT ZALO NỔI (mobile) ==================== */
.floating-cta {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  display: none; align-items: center; gap: 9px;
  background: var(--green-dark); color: #fff; font-weight: 700;
  padding: 13px 20px; border-radius: 999px;
  box-shadow: 0 12px 28px -10px rgba(63,115,111,.75);
}
.floating-cta__dot {
  width: 9px; height: 9px; border-radius: 50%; background: #a8e6e0;
  box-shadow: 0 0 0 0 rgba(168,230,224,.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(168,230,224,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(168,230,224,0); }
  100% { box-shadow: 0 0 0 0 rgba(168,230,224,0); }
}

/* ============================================================================
   RESPONSIVE — kiểm tra ở khổ điện thoại
   ============================================================================ */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__subline { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__media { order: -1; } /* ảnh lên trên ở mobile */
  .hero__photo { max-width: 260px; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .tm-grid { grid-template-columns: 1fr; }
  .offer-grid { grid-template-columns: 1fr; }
  .offer--featured { order: -1; } /* offer chủ lực lên đầu ở mobile */

  .about__inner { grid-template-columns: 1fr; }
  .about__media { max-width: 320px; margin: 0 auto; }

  .floating-cta { display: inline-flex; } /* chỉ hiện nút nổi trên mobile */
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .btn { width: 100%; justify-content: center; }
  .hero__actions { flex-direction: column; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* Tôn trọng người dùng tắt hiệu ứng chuyển động */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
