/* ==========================================================================
   HOMEPAGE SECTION SPACING & VERTICAL RHYTHM OPTIMIZATION
   ========================================================================== */

/* 1. Chuẩn hóa khoảng cách các section tiêu chuẩn: 5rem (50px) trên desktop */
body.home .section {
  padding: 5rem 0;
}

/* 2. Khắc phục lỗi phình to 160px do .is-decora:
   Trước: .is-decora pb 80px + .section pt 80px = 160px gap.
   Sau: 5.5rem pb + 4.5rem pt = 100px gap chuẩn nhịp điệu 8pt grid */
body.home .is-decora {
  padding-bottom: 5.5rem;
}
body.home .is-decora + .section {
  padding-top: 4.5rem;
}

/* 3. Hero: giảm padding-bottom từ 90px xuống 60px để chuyển tiếp mượt mà vào About */
body.home .hero-blue--leaders {
  padding-bottom: 6rem;
}

/* 4. Khối Đối tác (Site Trust): cân đối padding 4.5rem trên / 3.8rem dưới */
body.home .site-trust {
  padding: 4.5rem 0 3.8rem;
}

/* 5. Khối Fields: đồng bộ padding 5rem */
body.home .fields {
  padding-block: 5rem;
}

/* 6. Cân bằng Banner ngang xen kẽ (.global):
   Khắc phục bất đối xứng:
   - Banner 1: trước đây trên 90px / dưới 50px
   - Banner 2: trước đây trên 150px (do margin-top 10rem) / dưới 50px
   Tối ưu: margin 2rem trên và dưới đồng nhất */
body.home .global {
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
}
body.home .services + .global,
:is(body.home, body.p-geo-v2, body.p-seo-v2) .press + .global {
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
}

/* 7. Lead Form: cân đối padding top/bottom */
body.home .lead.section {
  padding-top: 4.5rem;
  padding-bottom: 5.5rem;
}

/* --------------------------------------------------------------------------
   Mobile Responsive Spacing (<= 575px)
   -------------------------------------------------------------------------- */
@media (max-width: 575px) {
  body.home .section {
    padding: 3.2rem 0;
  }
  body.home .is-decora {
    padding-bottom: 3.2rem;
  }
  body.home .is-decora + .section {
    padding-top: 3.2rem;
  }
  body.home .hero-blue--leaders {
    padding-bottom: 5rem;
  }
  body.home .site-trust {
    padding: 3rem 0 2.4rem;
  }
  body.home .fields {
    padding-block: 3.2rem;
  }
  body.home .global {
    margin-top: 1.6rem !important;
    margin-bottom: 1.6rem !important;
  }
  body.home .services + .global,
  :is(body.home, body.p-geo-v2, body.p-seo-v2) .press + .global {
    margin-top: 1.6rem !important;
    margin-bottom: 1.6rem !important;
  }
  body.home .lead.section {
    padding-top: 3.2rem;
    padding-bottom: 3.8rem;
  }
}

/* ==========================================================================
   HOMEPAGE MICRO-TYPOGRAPHY & COMPONENT DETAIL REFINEMENT
   ========================================================================== */

/* 1. Hero stats & lead readability */
body.home .hero-blue__stat span {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* 2. About section: tối ưu chiều dài dòng (line length) để không mỏi mắt */
body.home .about-card__body {
  max-width: 84rem;
  margin-inline: auto;
  font-size: 1.65rem;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.85);
}
body.home .about .tt-sub {
  font-size: 2.6rem;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

/* 3. Results section: quote trích dẫn uy tín & nổi bật */
body.home .results__quote {
  font-size: 1.7rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.88);
  max-width: 76rem;
}

/* 4. Fields section: phân cấp rõ ràng tiêu đề card doanh nghiệp */
body.home .fields .business-card strong {
  font-size: 1.75rem;
  color: var(--brand-blue-deep, #212079);
  display: block;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}
body.home .fields .business-card p {
  font-size: 1.45rem;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.75);
}

/* 5. Services section: thu gọn tiêu đề card dịch vụ để không chiếm 3-4 dòng */
body.home .services-tt {
  font-size: 2.2rem !important;
  line-height: 1.25 !important;
  font-weight: 600;
  min-height: 5.6rem;
}
body.home .services .business-card .mona-content {
  font-size: 1.45rem;
  line-height: 1.6;
}

/* 6. Process section: số bước timeline sắc nét & nội dung thẻ dễ đọc */
body.home .timeline-step {
  color: var(--brand-blue-deep, #212079);
  font-weight: 700;
  letter-spacing: var(--heading-tracking, 0.02em);
}
body.home .c-card .mona-content {
  font-size: 1.45rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.82);
}

/* 9. FAQ section: câu hỏi và nội dung trả lời */
body.home .faq-tt p {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
body.home .faq-content .mona-content {
  font-size: 1.5rem;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.82);
}

/* --------------------------------------------------------------------------
   Mobile Micro-refinements (<= 575px)
   -------------------------------------------------------------------------- */
@media (max-width: 575px) {
  /* Fix lỗi icon 114px chiếm 90% card trên mobile */
  body.home .metric-card picture {
    display: block;
    width: 5.4rem;
    height: 5.4rem;
    margin-inline: auto;
  }
  body.home .metric-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
  }
  body.home .metric-card {
    padding: 1.6rem 0.8rem !important;
    row-gap: 0.6rem !important;
  }
  body.home .metric-card p {
    font-size: 1.3rem !important;
    line-height: 1.35 !important;
  }
  body.home .metric-tt {
    font-size: 2.6rem !important;
    line-height: 1.1 !important;
  }

  /* Fix chữ 11px cực nhỏ ở Reasons section */
  body.home .reason-item,
  body.home .reason-wrap > div,
  body.home .reason-item p,
  body.home .reason-wrap p {
    font-size: 1.35rem !important;
    line-height: 1.55 !important;
  }
  body.home .reason-item h3,
  body.home .reason-wrap h3 {
    font-size: 2rem !important;
    margin-bottom: 0.4rem;
  }

  /* About trên mobile */
  body.home .about-card__body {
    font-size: 1.4rem;
    line-height: 1.55;
  }
  body.home .about .tt-sub {
    font-size: 1.85rem;
    line-height: 1.3;
  }

  /* Services trên mobile */
  body.home .services-tt {
    font-size: 1.85rem !important;
    min-height: auto;
  }

  /* FAQ trên mobile */
  body.home .faq-tt p {
    font-size: 1.35rem;
    line-height: 1.4;
  }
  body.home .faq-content .mona-content {
    font-size: 1.35rem;
    line-height: 1.6;
  }
}



/* Process timeline (trang chủ): số bước + tiêu đề nhỏ lại, 2 cột cân đối, card không tràn mép phải. */
body.home .process .c-wrap.cc-align_left {
  flex: 0 0 30%;
  width: 30%;
}

body.home .process .c-wrap.cc-align_right {
  flex: 1;
  width: auto;
}

body.home .process .timeline-step {
  font-size: clamp(3.2rem, 3.4vw, 4.4rem);
  line-height: 1.1;
}

body.home .process .timeline-tt {
  font-family: var(--font-body) !important;
  margin-top: .4rem;
  font-weight: 700;
  letter-spacing: 0 !important;
  line-height: 1.2;
  text-transform: none !important;
}

body.home .process .c-card {
  padding: 2rem 3.2rem;
}

@media screen and (max-width: 767px) {
  body.home .process .c-wrap.cc-align_left {
    flex-basis: 34%;
    width: 34%;
  }

  body.home .process .timeline-step {
    font-size: 2rem;
  }

  body.home .process .c-card {
    padding: 1.6rem;
  }
}

/* Loại hình doanh nghiệp (trang chủ): màu theo brand guideline trong tokens.css.
   Tiêu đề card = xanh brand (heading). Số liệu in đậm = highlight: chữ xanh trên
   vạch vàng nhạt, vì chữ vàng #ffb214 trên nền trắng không đạt contrast (1.81). */
body.home .fields .business-tt,
body.home .fields .business-tt strong {
  color: var(--heading-color);
}

body.home .fields .business-content strong {
  display: inline;
  padding: 0 .2rem;
  color: var(--heading-color);
  background: linear-gradient(transparent 58%, var(--brand-yellow-soft) 58%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Hero trang chủ (desktop): headline co theo chiều cao màn hình để cả hero
   (kể cả hàng số liệu 2M+/30+/200+) nằm trọn trong màn hình đầu, không phải cuộn.
   Selector cần mạnh hơn rule h1 !important của typography.css. */
@media (min-width: 801px) {
  body.home .hero-blue--leaders {
    padding-bottom: clamp(6.4rem, 8vh, 9rem);
  }

  body.home .hero-blue--leaders h1.hero-blue__title {
    font-size: clamp(3.2rem, min(3.6vw, 5.4vh), 5.2rem) !important;
    line-height: 1.12 !important;
  }

  body.home .hero-blue--leaders .hero-blue__eyebrow {
    margin-bottom: clamp(1.4rem, 2.2vh, 2.2rem);
  }

  body.home .hero-blue--leaders .hero-blue__lead {
    margin-top: clamp(1.4rem, 2.2vh, 2.2rem);
    font-size: clamp(1.4rem, min(1.15vw, 2vh), 1.6rem);
    line-height: 1.55;
  }

  body.home .hero-blue--leaders .hero-blue__actions {
    margin-top: clamp(1.8rem, 3vh, 2.8rem);
  }

  body.home .hero-blue--leaders .hero-blue__btn {
    min-height: 4.6rem;
    padding-block: 1.2rem;
  }

  body.home .hero-blue--leaders .hero-blue__stats {
    margin-top: clamp(2rem, 3.4vh, 3.6rem);
  }

  body.home .hero-blue--leaders .hero-blue__stat strong {
    font-size: clamp(2.6rem, min(2.6vw, 4.4vh), 3.8rem);
  }
}

/* Hero: vạch cong trắng chạm đúng 2 góc dưới ở mọi độ rộng màn hình.
   Elip rộng 120% (left/right -10%) cắt mép màn ở 55.3% chiều cao elip,
   nên kéo xuống đúng 0.553 × height thì 2 đầu cong trùng góc section. */
body .hero-blue--leaders::after {
  height: 10rem;
  bottom: calc(10rem * -.553);
}

/* Footer (desktop/tablet): chữ + khoảng cách nhỏ lại 1 bậc; dòng bản quyền
   không còn absolute 50% (trước đè lên cột menu "About us") mà nằm dưới cùng, kẻ full width. */
@media (min-width: 768px) {
  body .site-footer {
    padding-top: 4rem;
    padding-bottom: 3.2rem;
  }

  body .site-footer .header-logo {
    margin-bottom: 2.4rem;
  }

  body .site-footer .header-logo img {
    height: 3.4rem;
  }

  body .site-footer .footer-tt {
    font-size: 1.3rem;
    letter-spacing: .02em;
  }

  body .site-footer .footer-list a,
  body .site-footer .footer-list li,
  body .site-footer .footer-column .menu-item {
    font-size: 1.4rem;
  }

  body .site-footer .footer-list li,
  body .site-footer .footer-column .menu-item {
    margin-top: 1.6rem;
  }

  body .site-footer .footer-list li ul {
    margin-top: 1.6rem;
  }

  body .site-footer .footer-list li ul li {
    margin-top: .6rem;
  }

  body .site-footer .footer-list--contact li > a > img,
  body .site-footer .footer-list--contact li > img {
    width: 1.8rem;
  }

  body .site-footer .footer-column--wide {
    row-gap: 1.8rem;
  }

  body .site-footer .footer-social a img {
    width: 2.6rem;
    height: 2.6rem;
  }

  body .site-footer .footer-bottom {
    position: relative;
    bottom: auto;
    width: 100%;
    margin-top: 3.2rem;
    padding-top: 1.6rem;
  }
}

/* Review khách hàng + Báo chí trên trang GEO v2: dùng chung partial + style với trang chủ.
   Chặn các rule chung của geo-v2.css (p justify, container 1180px) lấn vào 2 khối này. */
body.p-geo-v2 :is(.testimonials, .press) > .container {
  max-width: var(--container-wide);
  padding-inline: 1.5rem;
}

body.p-geo-v2 :is(.testimonials, .press) p {
  text-align: inherit;
  text-justify: auto;
}

/* Shared press section on the homepage and service pages.
   Cards in a row share one height, the screenshot spans the card width,
   and every read link sits on the same bottom line. */
body .press.press--shared {
  padding-block: var(--space-section);
}

body .press.press--shared > .container {
  max-width: var(--container-wide);
  height: auto;
  padding-inline: 1.5rem;
}

body .press.press--shared .sec-tt {
  margin: 0;
  text-align: center;
  color: var(--brand-blue);
}

.press.press--shared .projects-slider {
  margin-top: 2.8rem;
  margin-inline: -1.2rem;
  padding-bottom: 3.2rem;
}

.press.press--shared .swiper-wrapper {
  align-items: stretch;
}

.press.press--shared .swiper-pagination {
  display: flex;
  justify-content: center;
  left: 0;
  width: 100%;
  transform: none;
}

.press.press--shared .swiper-pagination-bullet {
  flex-shrink: 0;
}

.press.press--shared .swiper-slide {
  display: flex;
  align-items: stretch;
  width: calc(100% / 3);
  min-width: 0;
  height: auto;
  padding: .8rem 1.2rem;
}

.press.press--shared .press-article {
  display: flex;
  flex: 1 1 auto;
  align-self: stretch;
  flex-direction: column;
  width: 100%;
  height: auto;
  padding: 1.6rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: var(--surface);
  box-shadow: 0 .4rem 1.6rem rgba(60, 59, 223, .05);
}

.press.press--shared .press-article__media {
  width: calc(100% + 3.2rem);
  margin: -1.6rem -1.6rem 0;
  aspect-ratio: 2.45 / 1;
  border-radius: 0;
  background: var(--surface-alt);
}

.press.press--shared .press-article__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.press.press--shared .press-article__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 1.2rem;
  justify-content: flex-start;
  padding: 1.4rem 0 0;
}

.press.press--shared .press-article__badge {
  align-self: flex-start;
  padding: .5rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--brand-yellow-soft);
  color: var(--brand-blue);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

body .press.press--shared .press-article__title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--brand-blue);
  line-height: 1.35 !important;
  text-wrap: wrap;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

body .press.press--shared .press-article__excerpt {
  display: -webkit-box;
  margin: 0;
  padding: 0 0 0 1.2rem;
  overflow: hidden;
  border-left: 2px solid var(--brand-yellow);
  color: var(--muted);
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.6;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

body .press.press--shared .press-article__excerpt p {
  display: contents;
}

body .press.press--shared .press-article__read {
  align-self: flex-start;
  margin-top: auto;
  padding-top: .4rem;
  color: var(--brand-blue);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}

body .press.press--shared .press-article__read:hover {
  text-decoration: underline;
}

body .press.press--shared .press-article__read:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: .4rem;
}

@media (max-width: 991px) {
  .press.press--shared .swiper-slide {
    width: 50%;
  }
}

@media (max-width: 575px) {
  body .press.press--shared {
    padding-block: var(--space-section-mobile);
  }

  .press.press--shared .projects-slider {
    margin-top: 2rem;
  }

  .press.press--shared .swiper-slide {
    width: 100%;
  }

  .press.press--shared .press-article {
    padding: 1.4rem;
    border-radius: 1.6rem;
  }

  .press.press--shared .press-article__media {
    width: calc(100% + 2.8rem);
    margin: -1.4rem -1.4rem 0;
  }
}

/* ═══════════════════════════════════════
   Site Popup — modal liên hệ (checklist + reviews + form)
   Trigger: a[href="#popup"] hoặc [data-open-popup]
   ═══════════════════════════════════════ */
.site-popup {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
  background: rgba(10, 20, 40, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.site-popup.is-open {
  opacity: 1;
  visibility: visible;
}
.site-popup__card {
  position: relative;
  display: grid;
  max-width: 92rem;
  width: 100%;
  max-height: 90dvh;
  overflow-y: auto;
  border-radius: 2rem;
  background: #fff;
  box-shadow: 0 3.2rem 8rem rgba(10, 20, 40, 0.28);
  transform: translateY(2.4rem);
  transition: transform 0.24s ease;
  overscroll-behavior: contain;
}
.site-popup.is-open .site-popup__card {
  transform: translateY(0);
}
.site-popup__card--split {
  grid-template-columns: 1fr 1fr;
}
.site-popup__card--single {
  grid-template-columns: 1fr;
}
.site-popup__close {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  color: #333;
  cursor: pointer;
  transition: background 0.15s;
  flex: none;
}
.site-popup__close:hover,
.site-popup__close:focus-visible {
  background: rgba(0, 0, 0, 0.18);
  outline: none;
}
.site-popup__left {
  padding: 4rem 3.6rem;
  background: #0d1b35;
  border-radius: 2rem 0 0 2rem;
  color: #fff;
}
.site-popup__card--single .site-popup__left {
  border-radius: 2rem;
}
.site-popup__right {
  padding: 4rem 3.6rem;
  border-radius: 0 2rem 2rem 0;
}
.site-popup__card--single .site-popup__right {
  border-radius: 2rem;
}
/* Checklist */
.site-popup__checklist {
  list-style: none;
  margin: 0 0 2.8rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.site-popup__check-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
}
.site-popup__check-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #b9e769;
  color: #0d1b35;
}
/* Reviews */
.site-popup__reviews {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.site-popup__review {
  padding: 1.6rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.07);
}
.site-popup__review-body {
  font-size: 1.3rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1.2rem;
}
.site-popup__review-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.site-popup__review-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.site-popup__review-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.site-popup__review-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}
.site-popup__review-role {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
}
.site-popup__review-logo {
  height: 2rem;
  width: auto;
  margin-left: auto;
  opacity: 0.75;
  object-fit: contain;
}
/* Right side */
.site-popup__form-title {
  font-size: 2.2rem;
  font-weight: 700;
  font-family: var(--font-heading, sans-serif);
  color: #0d1b35;
  margin: 0 0 2rem;
  line-height: 1.2;
}
/* Mobile */
@media (max-width: 680px) {
  .site-popup__card--split {
    grid-template-columns: 1fr;
  }
  .site-popup__left {
    border-radius: 2rem 2rem 0 0;
    padding: 2.8rem 2.4rem;
  }
  .site-popup__right {
    border-radius: 0 0 2rem 2rem;
    padding: 2.4rem;
  }
}

/* Homepage reasons icon */
.reason-card .reason-icon {
  width: 4.8rem;
  height: 4.8rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
}
.reason-card .reason-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Uniform card alignment & equal-height across components */
body.home .fields .business-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
body.home .fields .business-card .business-tt {
  min-height: 4.6em;
  display: flex;
  align-items: flex-start;
}
body.home .fields .business-card .mona-content {
  flex: 1 1 auto;
}

body.home .services .business-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
body.home .services .business-card .services-tt {
  min-height: 3.4em;
  display: flex;
  align-items: flex-start;
}
body.home .services .business-card .btn--thir {
  margin-top: auto;
}

.reason-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.reason-card .tt-sub {
  min-height: 2.6em;
  display: flex;
  align-items: flex-start;
}
.reason-card p {
  flex: 1 1 auto;
}
