/* ============================================================
   Home page — hero, why, cf (consult+reviews), social
   ============================================================ */

/* ---------- Hero banner ---------- */
.hero-shell { position: relative; }
.hero-banner {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.hero-banner-desktop > img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
}
.hero-banner-mobile > img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero-banner .car-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-banner-mobile { display: none; }
.hero-banner-mobile .car-slide { aspect-ratio: 4 / 3; }
.hero-banner .car-carousel { position: relative; }
.hero-banner .car-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  margin-top: 0;
  z-index: 5;
}
.hero-chips { display: none; }
.hero-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.hero-chip-ok { color: #0E7A53; background: #E4F6EF; }
.hero-chip-info { color: var(--blue-700); background: var(--sky); }
.hero-chip-warn { color: #C0421E; background: #FFEDE6; }
.hero-cta {
  position: absolute;
  left: 25%;
  bottom: 9%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  z-index: 2;
}
.hero-cta .btn { box-shadow: 0 10px 26px rgba(11,27,43,.18); }
.btn-outline-ink {
  background: #fff;
  color: var(--blue-700);
  border: 1.5px solid var(--line);
}
.btn-outline-ink:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-1px);
}

/* ---------- Quick categories ---------- */
.quicks { padding: 56px 0 8px; }
.quicks-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.qchip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 14px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
.qchip:hover {
  box-shadow: var(--sh);
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}
.qchip .qi {
  width: 40px;
  height: 40px;
  background: var(--sky);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--blue-600);
  flex: none;
}
.qchip .qi svg { width: 20px; height: 20px; }

.quicks-mobile { display: none; }
.quicks-head-mobile { margin-bottom: 18px; }
.eyebrow-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow-line::before {
  content: "";
  width: 20px;
  height: 2.5px;
  background: var(--blue);
  border-radius: 2px;
}
.quicks-head-mobile h2, .tm-head h2 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 10px 0 0;
}
.qcat-carousel-row { position: relative; display: flex; align-items: center; gap: 8px; }
.qcat-carousel { flex: 1 1 0; overflow: hidden; }
.qcat-track { display: flex; transition: transform .5s cubic-bezier(.6,.01,.05,1); }
.qcat-page { flex: 0 0 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qcat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--sky);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  text-decoration: none;
  color: inherit;
}
.qcat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qcat-label {
  position: relative;
  margin-top: auto;
  padding: 9px 6px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(0deg, rgba(11,27,43,.82), rgba(11,27,43,0));
}
.qcat-arrow {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #F5F8FB;
  box-shadow: 0 2px 8px rgba(11,27,43,.1);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
}
.qcat-arrow svg { width: 15px; height: 15px; }
.qcat-arrow:hover { color: var(--blue); }
.qcat-dots { display: none; }
.qcat-nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.qcat-nav-btn {
  display: block;
  background: var(--sky);
  color: var(--blue-700);
  border: 1px solid var(--sky);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .01em;
  padding: 9px 8px;
  border-radius: 9px;
  text-align: center;
  text-decoration: none;
}
.qcat-nav-btn:hover { border-color: var(--blue); }

/* ---------- Triết lý kiến tạo thương hiệu ---------- */
.philo { padding: 8px 0 84px; }
.philo .sec-head { max-width: 640px; }
.philo-list {
  max-width: 720px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  overflow: hidden;
}
.philo-item + .philo-item { border-top: 1px solid var(--line-2); }
.philo-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 22px;
  background: none;
  border: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}
.philo-num {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--blue-600);
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 800;
}
.philo-toggle.open .philo-num { background: var(--blue); color: #fff; }
.philo-title { flex: 1 1 auto; font-size: 15.5px; font-weight: 700; line-height: 1.4; }
.philo-chev { flex: none; width: 18px; height: 18px; color: var(--ink-2); transition: transform .25s ease; }
.philo-toggle.open .philo-chev { transform: rotate(180deg); color: var(--blue); }
.philo-panel { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.philo-panel p { margin: 0; padding: 0 22px 20px 62px; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.philo-panel.open { max-height: 320px; }

/* ---------- Vì sao chọn MK ---------- */
.why { padding: 8px 0 84px; }
.why .sec-head { max-width: 580px; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.why-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
.why-item:hover {
  box-shadow: var(--sh);
  border-color: transparent;
  transform: translateY(-3px);
}
.why-item .ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--sky);
  color: var(--blue-600);
  display: grid;
  place-items: center;
  flex: none;
}
.why-item .ic svg { width: 21px; height: 21px; }
.why-item:hover .ic { background: var(--blue); color: #fff; }
.why-item p { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.45; margin: 0; padding-top: 4px; }
.why-item.hot {
  border-color: var(--accent-soft);
  background: linear-gradient(180deg, var(--accent-soft) 0%, #fff 80%);
}
.why-item.hot .ic { background: var(--accent); color: #fff; }
.why-item.hot:hover .ic { background: #E8501F; }
.why-item.hot p b { color: #C0421E; }

.why-mobile { display: none; }
.why-mobile-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.28;
  margin: 0 0 24px;
  color: #fff;
  transform: rotate(-1.5deg);
  display: inline-block;
}
.why-mobile-title span { color: #FFC94D; }
.why-mobile-list { display: flex; flex-direction: column; gap: 14px; }
.why-mobile-item { display: flex; align-items: flex-start; gap: 11px; }
.why-mobile-item .ck {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(11,27,43,.14);
  display: grid;
  place-items: center;
  margin-top: 1px;
  color: var(--blue-700);
}
.why-mobile-item .ck svg { width: 15px; height: 15px; }
.why-mobile-item p { font-size: 14px; font-weight: 500; color: #fff; line-height: 1.5; margin: 0; }
.why-mobile-item.hot {
  background: linear-gradient(120deg, var(--accent), #FF8A5C);
  border-radius: 13px;
  padding: 13px 14px;
  box-shadow: 0 8px 20px rgba(255,106,61,.35);
}
.why-mobile-item.hot .ck { color: var(--accent); }
.why-mobile-item.hot p { font-size: 14.5px; font-weight: 700; }

/* ---------- Consult + Reviews (.cf) ---------- */
.cf {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #0B1B2B 0%, #123859 56%, #1E5C8A 122%);
  padding: 84px 0;
}
.cf .deco {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}
.cf .deco.d1 { width: 480px; height: 480px; right: -150px; top: -180px; background: rgba(95,199,240,.12); }
.cf .deco.d2 { width: 320px; height: 320px; left: -130px; bottom: -160px; background: rgba(255,255,255,.04); }

.cf-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 44px;
  align-items: start;
}

/* Embedded form card */
.cf-form-card {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: 0 26px 64px rgba(0,0,0,.32);
  position: relative;
  overflow: hidden;
}
.cf-form-card .modal-head { padding: 30px 32px 0; }
.cf-form-card .modal-body { padding: 22px 32px 30px; display: flex; flex-direction: column; gap: 18px; }
.inline-form-error { font-size: 14px; font-weight: 600; color: #C0421E; margin: 0; }

/* Success toast */
.mk-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0B1B2B;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 16px 24px;
  border-radius: var(--r-pill);
  box-shadow: 0 12px 36px rgba(11,27,43,.28);
  z-index: 9999;
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
  white-space: nowrap;
}
.mk-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.mk-toast-ic {
  width: 26px;
  height: 26px;
  background: var(--green, #16A34A);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.mk-toast-ic svg { width: 14px; height: 14px; color: #fff; }

/* Right column */
.cf-right { color: #fff; }
.cf-head { margin-bottom: 26px; }
.cf-head .eyebrow { color: #9FD8F2; margin-bottom: 12px; }
.cf-head h2 { color: #fff; font-size: clamp(24px, 2.6vw, 33px); line-height: 1.16; letter-spacing: -.02em; }
.cf-head h2 b { color: #FF6A3D; font-weight: 900; }

/* Review cards grid */
.cf-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cf-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 26px 26px 20px;
  box-shadow: 0 14px 38px rgba(0,0,0,.20);
  display: flex;
  flex-direction: column;
}
.cf-card .qi {
  width: 30px;
  height: 30px;
  color: #FF6A3D;
  opacity: .28;
  margin-bottom: 8px;
  flex: none;
}
.cf-card blockquote {
  font-size: 14.5px;
  line-height: 1.64;
  color: var(--ink-2);
  font-style: italic;
  margin: 0 0 auto;
}
.cf-card .stars { display: flex; gap: 2px; color: #FFB400; margin: 16px 0 13px; }
.cf-card .stars svg { width: 15px; height: 15px; }
.cf-card .who { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.cf-card .who .av { width: 46px; height: 46px; border-radius: 50%; flex: none; }
.cf-card .who b { display: block; font-size: 14px; color: var(--ink); line-height: 1.2; margin-bottom: 2px; }
.cf-card .who span:not(.av-init) { font-size: 12.5px; color: var(--muted); }

/* ---------- Testimonials (mobile) ---------- */
.testimonials-mobile { display: none; }
.tm-head { padding: 0 16px; margin-bottom: 16px; }
.tm-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 16px 6px;
  scroll-snap-type: x mandatory;
}
.tm-card {
  flex: 0 0 auto;
  width: 280px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(11,27,43,.05);
}
.tm-stars { display: flex; gap: 2px; color: #FFB400; margin-bottom: 10px; letter-spacing: 2px; }
.tm-card blockquote {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.6;
  color: #35506A;
  font-style: italic;
}
.tm-who { display: flex; align-items: center; gap: 11px; padding-top: 12px; border-top: 1px solid #EDF2F7; }
.tm-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sky);
  display: grid;
  place-items: center;
  color: var(--blue-600);
  font-weight: 800;
  flex: 0 0 auto;
}
.tm-who b { display: block; font-size: 13.5px; color: var(--ink); }
.tm-who span:not(.tm-av) { font-size: 12px; color: var(--muted); }

/* ---------- Theo dõi MK (.social-sec) ---------- */
.social-sec { padding: 84px 0; background: var(--bg-2); }
.soc-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.soc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease;
}
.soc-card:hover { box-shadow: var(--sh); transform: translateY(-3px); }

.soc-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 20px;
  color: #fff;
}
.soc-fb-h { background: #1877F2; }
.soc-yt-h { background: #FF0000; }
.soc-tt-h { background: #111; }

.soc-head .si {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.18);
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
}
.soc-head .si svg { width: 22px; height: 22px; }
.soc-head .meta { flex: 1; min-width: 0; }
.soc-head .meta b { display: block; font-size: 14px; font-weight: 700; line-height: 1.25; }
.soc-head .meta span { font-size: 12px; opacity: .75; }
.soc-head .follow {
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 16px;
  background: rgba(255,255,255,.22);
  border: 1.5px solid rgba(255,255,255,.4);
  border-radius: var(--r-pill);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.soc-head .follow:hover { background: rgba(255,255,255,.35); }

.soc-carousel { position: relative; }
.soc-vids { padding: 16px 13%; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.soc-vids::-webkit-scrollbar { display: none; }
.soc-vid {
  flex: 0 0 74%;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: scale(.9);
  transition: transform .3s ease, opacity .3s ease;
  cursor: pointer;
}
.soc-vid.active { transform: scale(1); }

.soc-thumb {
  position: relative;
  width: 100%;
  border-radius: var(--r-sm);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #0b0b0b;
}
.soc-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(244,248,251,.62);
  backdrop-filter: saturate(.7);
  z-index: 2;
  opacity: 1;
  transition: opacity .3s ease;
}
.soc-vid.active .soc-thumb::after { opacity: 0; pointer-events: none; }
.soc-vid:not(.active) .soc-thumb iframe { pointer-events: none; }
.soc-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

.soc-nav {
  position: absolute;
  top: calc(50% - 26px);
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  transition: .15s;
}
.soc-nav:hover { background: var(--bg-2); transform: translateY(-50%) scale(1.06); }
.soc-nav.prev { left: 10px; }
.soc-nav.next { right: 10px; }
.soc-nav svg { width: 17px; height: 17px; color: var(--ink); }
.soc-nav[disabled] { opacity: 0; pointer-events: none; }

.soc-dots { display: flex; justify-content: center; gap: 7px; padding: 2px 0 18px; }
.soc-dots button { width: 7px; height: 7px; border-radius: 99px; border: 0; background: var(--line); cursor: pointer; padding: 0; transition: .2s; }
.soc-dots button.active { background: var(--blue); width: 22px; }

/* Avatar initial badge */
.av-init {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-600) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .03em;
  display: grid;
  place-items: center;
  flex: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cf-grid { grid-template-columns: 1fr; gap: 36px; }
  .cf-form-card { max-width: 520px; }
  .quicks-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .cf-cards { grid-template-columns: 1fr; }
  .soc-cols { grid-template-columns: 1fr 1fr; }
  .hero-cta { left: 50%; bottom: 18px; transform: translateX(-50%); flex-direction: row; justify-content: center; width: max-content; max-width: 92%; }
  .hero-banner-desktop { display: none; }
  .hero-banner-mobile { display: block; }
  .hero-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 14px 16px;
    background: #F5F8FB;
    border-bottom: 1px solid #EDF2F7;
    width: 100vw;
    margin: 0 calc(50% - 50vw);
  }
  .quicks { padding: 0; }
  .quicks-head-desktop, .quicks-grid-desktop { display: none; }
  .quicks-mobile {
    display: block;
    width: 100vw;
    margin: 0 calc(50% - 50vw);
    padding: 26px 16px 8px;
  }
  .why { padding: 0; }
  .why-wrap-desktop { display: none; }
  .why-mobile {
    display: block;
    width: 100vw;
    margin: 20px calc(50% - 50vw) 0;
    padding: 30px 18px 32px;
    background: linear-gradient(160deg, var(--blue-700), var(--blue));
  }
  .cf-right { display: none; }
  .testimonials-mobile { display: block; padding: 24px 0 8px; }
}
@media (max-width: 640px) {
  .why-grid { grid-template-columns: 1fr; }
  .philo-toggle { padding: 15px 16px; gap: 11px; }
  .philo-title { font-size: 14.5px; }
  .philo-panel p { padding: 0 16px 17px 43px; font-size: 14px; }
  .quicks-grid { grid-template-columns: repeat(2, 1fr); }
  .soc-cols { grid-template-columns: 1fr; }
  .hero-banner, .car-stage { border-radius: 0; box-shadow: none; }
  .hero-banner {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
  .hero-cta {
    position: static;
    left: auto; bottom: auto; transform: none;
    width: 100%; max-width: 100%;
    flex-direction: column; align-items: stretch;
    gap: 10px;
    margin-top: 16px;
  }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-cta .btn-lg { padding: 14px 20px; font-size: 15px; }
}
@media (max-width: 720px) {
  .cf-form-card {
    background: var(--sky-2);
    border: 1px solid var(--sky);
    border-radius: 20px;
    box-shadow: none;
  }
  .cf-form-card .modal-head { padding: 20px 18px 0; }
  .cf-form-card .modal-body { padding: 0 18px 20px; gap: 0; }
}
