/* ==========================================================================
   DLHIFE – style.css : biến thiết kế, thành phần dùng chung, Landing Page
   ========================================================================== */

:root {
  --c-primary: #0f9d8a;
  --c-primary-dark: #0b7a6e;
  --c-primary-deep: #0b2e2c;
  --c-primary-soft: #e6f7f4;
  --c-accent: #ff6b4a;
  --c-accent-dark: #e5522f;
  --c-sun: #fcd34d;
  --c-bg: #fffaf3;
  --c-surface: #ffffff;
  --c-text: #1f2d2c;
  --c-muted: #5b6b69;
  --c-border: #e7ece9;
  --radius: 18px;
  --shadow-sm: 0 2px 8px rgba(11, 46, 44, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 46, 44, 0.1);
  --header-h: 72px;

  /* ghi đè biến của Bootstrap */
  --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-color: var(--c-text);
  --bs-body-bg: var(--c-bg);
  --bs-link-color: var(--c-primary-dark);
  --bs-link-hover-color: var(--c-primary);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--c-primary-deep);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

img, svg { max-width: 100%; height: auto; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 2000;
  background: var(--c-primary-deep);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
}
.skip-link:focus { left: 8px; color: #fff; }

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
}

/* ---------- Nút ---------- */
.btn-cta,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
}
.btn-cta {
  background: var(--c-accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 107, 74, 0.32);
}
.btn-cta:hover, .btn-cta:focus {
  background: var(--c-accent-dark);
  color: #fff;
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--c-primary-dark);
  border-color: var(--c-primary);
}
.btn-ghost:hover, .btn-ghost:focus {
  background: var(--c-primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-sm-cta { padding: 0.5rem 1.2rem; font-size: 0.95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 250, 243, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--c-border);
  box-shadow: var(--shadow-sm);
}
.site-header .navbar { min-height: var(--header-h); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--c-primary-deep);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.brand img { width: 40px; height: 40px; }
.brand:hover { color: var(--c-primary-dark); }

.site-header .nav-link {
  color: var(--c-text);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
}
.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: var(--c-primary-dark);
  background: var(--c-primary-soft);
}
.navbar-toggler { border: 0; padding: 0.5rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(15, 157, 138, 0.35); }

/* ---------- Section chung ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--c-primary-soft); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--c-muted); font-size: 1.1rem; margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-primary-dark);
  background: var(--c-primary-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-alt .eyebrow { background: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
}
.hero {
  /* quầng sáng nằm gọn trong hero, tắt dần trước khi chạm mép trên/dưới */
  background: radial-gradient(ellipse 45% 45% at 85% 50%, rgba(20, 184, 166, 0.16), transparent 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 20px;
}
.hero h1 .hl {
  color: var(--c-primary);
  background: linear-gradient(transparent 62%, rgba(252, 211, 77, 0.55) 62%);
}
.hero .lead {
  font-size: 1.2rem;
  color: var(--c-muted);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.hero-stats strong { display: block; font-size: 1.5rem; color: var(--c-primary-deep); }
.hero-stats span { font-size: 0.92rem; color: var(--c-muted); }
.hero-art { max-width: 520px; margin-inline: auto; }

/* ---------- About ---------- */
.about-card {
  height: 100%;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.about-card h3 { font-size: 1.2rem; margin: 14px 0 8px; }
.about-card p { color: var(--c-muted); margin: 0; }

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--c-primary-soft);
  font-size: 1.6rem;
  line-height: 1;
}

/* ---------- Chủ đề nội dung (Product/Service) ---------- */
.topic-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.topic-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.topic-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  font-size: 3.6rem;
}
.topic-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.topic-body h3 { font-size: 1.25rem; margin-bottom: 8px; }
.topic-body p { color: var(--c-muted); }
.topic-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 0.95rem;
}
.topic-benefits li { padding-left: 26px; position: relative; margin-bottom: 4px; }
.topic-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--c-primary);
  font-weight: 800;
}
.topic-link {
  margin-top: auto;
  font-weight: 700;
  text-decoration: none;
}
.topic-link:hover { text-decoration: underline; }

.thumb-1 { background: linear-gradient(135deg, #fde7d9, #ffd1bd); }
.thumb-2 { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.thumb-3 { background: linear-gradient(135deg, #ccfbf1, #99f6e4); }
.thumb-4 { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }
.thumb-5 { background: linear-gradient(135deg, #e0f2fe, #bae6fd); }
.thumb-6 { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }

/* ---------- Benefits ---------- */
.benefit {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.benefit h3 { font-size: 1.15rem; margin-bottom: 6px; }
.benefit p { color: var(--c-muted); margin: 0; }

/* ---------- Quy trình ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  position: relative;
  padding: 0 0 28px 64px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps li::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 48px;
  bottom: 4px;
  width: 2px;
  background: var(--c-border);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.1rem; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--c-muted); }

/* ---------- CTA ---------- */
.cta-box {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: #fff;
  border-radius: 28px;
  padding: 64px 32px;
  text-align: center;
}
.cta-box::before,
.cta-box::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.cta-box::before { width: 280px; height: 280px; top: -120px; left: -80px; }
.cta-box::after { width: 220px; height: 220px; bottom: -100px; right: -60px; }
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 12px; }
.cta-box p { max-width: 560px; margin: 0 auto 28px; color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; }
.cta-box .cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-box .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.cta-box .btn-ghost:hover { background: #fff; color: var(--c-primary-dark); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-primary-deep);
  color: #c9dad8;
  padding: 64px 0 28px;
  margin-top: 0;
}
.site-footer h2 {
  font-size: 1rem;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer a { color: #c9dad8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 8px; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1020;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--c-primary-dark); }

/* ---------- Hiệu ứng xuất hiện (chỉ bật khi JS chạy) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-in { opacity: 1; transform: none; }

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