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

/* ---------- Hero banner ---------- */
.hero-shell { position: relative; }
.hero-banner {
  overflow: hidden;
}
.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;
}
/* ---------- Đối tác của MK (partner marquee) ---------- */
@keyframes mk-marquee-fwd { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes mk-marquee-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.partners {
  background: #fff;
  margin: 36px 40px 0;
  padding: 56px 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  overflow: hidden;
}
.partners-banner {
  text-align: center;
  padding: 34px 24px;
  margin: 0 40px 34px;
  border-radius: var(--r);
  background: linear-gradient(120deg, var(--blue) 0%, #4338CA 100%);
}
.partners-banner .eyebrow-inv { color: #DCE7FF; font-size: 13px; letter-spacing: .12em; font-weight: 700; }
.partners-banner h2 { font-size: clamp(22px, 3vw, 30px); margin: 8px 0 0; color: #fff; font-weight: 800; }
.partners-banner p { color: #DCE7FF; font-size: 15px; margin: 10px 0 0; }

.marquee-stack { display: flex; flex-direction: column; gap: 16px; }
.marquee-row {
  overflow: hidden;
  padding: 0 40px;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track { display: flex; width: max-content; gap: 14px; }
.marquee-fwd { animation: mk-marquee-fwd 140s linear infinite; }
.marquee-rev { animation: mk-marquee-rev 160s linear infinite; }
.marquee-slow { animation-duration: 190s; }
.marquee-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 11px 20px;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .1px;
}
.marquee-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--blue-600);
  display: grid;
  place-items: center;
  flex: none;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0;
}

/* ---------- Quick categories ---------- */
.quicks { padding: 56px 0 8px; }
.quicks-head-desktop {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.quicks-head-desktop h2 { font-size: clamp(26px, 3vw, 30px); margin: 6px 0 0; }
.quicks-viewall {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.quicks-viewall:hover { color: var(--blue); }

.quicks-photo-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.quicks-photo-grid::-webkit-scrollbar { display: none; }
.quicks-photo-grid .qphoto {
  flex: 0 0 calc((100% - 5 * 14px) / 6);
  scroll-snap-align: start;
}
.qphoto { display: flex; flex-direction: column; text-decoration: none; color: inherit; cursor: pointer; }
.qphoto-img {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: var(--r);
  background: var(--sky);
}
.qphoto-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.qphoto:hover .qphoto-img img { transform: scale(1.05); }
.qphoto-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--blue-600); }
.qphoto-fallback svg { width: 38px; height: 38px; }
.qphoto-label {
  display: block;
  text-align: center;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding-top: 12px;
}

.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 {
  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); }

/* ---------- Vì sao chọn MK ---------- */
.why {
  padding: 76px 0 88px;
  background: linear-gradient(180deg, #EAF2FB 0%, #F4F8FC 55%, #FFFFFF 100%);
}
.why-banner {
  text-align: center;
  margin: 0 auto 36px;
  max-width: 900px;
  border-radius: var(--r);
  padding: 32px 28px;
  background: linear-gradient(120deg, var(--blue) 0%, #4338CA 100%);
}
.why-banner h2 { font-size: clamp(24px, 3vw, 32px); color: #fff; line-height: 1.3; }
.why-banner p { color: #DCE7FF; font-size: 15.5px; margin: 14px auto 0; max-width: 640px; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.why-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border-radius: var(--r);
  padding: 22px 24px;
  transition: box-shadow .18s ease, transform .18s ease;
}
.why-card:hover { box-shadow: var(--sh); transform: translateY(-3px); }
.why-ic {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
}
.why-ic svg { width: 22px; height: 22px; }
.why-card h3 { font-size: 16.5px; font-weight: 700; color: var(--ink); letter-spacing: .01em; }
.why-card p { color: var(--ink-2); font-size: 14px; line-height: 1.6; margin-top: 6px; }

/* ---------- Consult + Feedback (.cf) ---------- */
.cf { background: #10192B; padding: 76px 0; }

.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }

.cf-col { display: flex; flex-direction: column; height: 100%; }
.cf-col-head { margin-bottom: 24px; }
.cf-eyebrow { display: block; color: #5FC7F0; font-size: 13px; letter-spacing: .12em; font-weight: 600; }
.cf-col-head h2 { font-size: 26px; margin: 8px 0 0; color: #fff; font-weight: 700; }
.cf-col-head p { color: #9AA4B2; font-size: 14.5px; margin: 8px 0 0; }

/* Embedded form card — pixel-matches the mock's white bordered box */
.cf-form-card {
  flex: 1;
  display: grid;
  background: #fff;
  border: 1px solid #E3E0D8;
  border-radius: 4px;
  overflow: hidden;
}
.cf-form-card .modal-form { display: flex; flex-direction: column; height: 100%; }
.cf-form-card .modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
}
.cf-form-card .modal-success { padding: 44px 28px; }
.cf-form-card .field { margin-bottom: 0; }
.cf-form-card .field label { color: #5B6472; font-weight: 400; font-size: 13px; }
.cf-form-card .field input,
.cf-form-card .field select,
.cf-form-card .field textarea {
  background: #fff;
  border: 1px solid #E3E0D8;
  border-radius: 3px;
  padding: 11px 12px;
  font-size: 14px;
}
.cf-form-card .field input:focus,
.cf-form-card .field select:focus,
.cf-form-card .field textarea:focus { background: #fff; border-color: var(--blue); box-shadow: none; }
.cf-form-card .field textarea { min-height: 96px; }
.cf-form-card .btn { border-radius: 3px; box-shadow: none; }
.cf-form-card .btn:hover { transform: none; }
.cf-form-card .btn-lg { padding: 14px; font-size: 14.5px; letter-spacing: .5px; }

.stars-label { align-self: center; margin-left: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }

/* ---------- Khách hàng nói gì (.tm-sec) ---------- */
.tm-sec { background: #10192B; padding: 76px 0; }
.tm-head { text-align: center; margin: 0 auto 40px; }
.tm-eyebrow { color: var(--blue); font-size: 13px; letter-spacing: 2px; font-weight: 600; }
.tm-head h2 { color: #fff; font-size: 28px; margin: 8px 0 0; font-weight: 700; }

.tm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.tm-card {
  background: #182640;
  border-radius: 4px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tm-stars { color: #FFB020; font-size: 13px; letter-spacing: 2px; }
.tm-card p { color: #D9DDE4; font-size: 14.5px; line-height: 1.6; margin: 0; flex: 1; }
.tm-name { color: #fff; font-size: 14px; font-weight: 600; }
.tm-org { color: #8B93A1; font-size: 12.5px; margin-top: 2px; }

/* ---------- 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; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cf-grid { grid-template-columns: 1fr; gap: 36px; }
  .cf-form-card { max-width: 520px; }
}
@media (max-width: 900px) {
  .soc-cols { grid-template-columns: 1fr 1fr; }
  .hero-banner-desktop { display: none; }
  .hero-banner-mobile { display: block; }
  .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;
  }
}
@media (max-width: 640px) {
  .why-grid { grid-template-columns: 1fr; gap: 14px; }
  .why-card { padding: 18px; gap: 14px; }
  .why-banner { padding: 24px 20px; }
  .partners { margin: 20px 16px 0; }
  .partners-banner { margin: 0 20px 24px; padding: 24px 18px; }
  .marquee-row { padding: 0 16px; }
  .marquee-stack { gap: 0; }
  .marquee-row:nth-child(n + 2) { display: none; }
  .marquee-fwd { animation-duration: 280s; }
  .soc-cols { grid-template-columns: 1fr; }
  .cf-form-card .field-row { grid-template-columns: 1fr; gap: 12px; }
  .cf-col-head { margin-bottom: 20px; }
  .cf-form-card .modal-body { padding: 20px; gap: 12px; }
  .cf-form-card .modal-success { padding: 32px 20px; }
  .tm-grid {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100vw;
    margin: 0 calc(50% - 50vw);
    padding: 4px 16px 6px;
  }
  .tm-grid::-webkit-scrollbar { display: none; }
  .tm-card { flex: 0 0 auto; width: 280px; scroll-snap-align: start; }
}
