/* ════════════════════════════════════════════════════════
   TMS THEME — page-home.css
   Homepage-only styles. All vars from global.css.
════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────
   SHARED PAGE SECTION HEAD
────────────────────────────────────── */
.hp-section-head            { margin-bottom: 52px; }
.hp-section-head .tms-section-subtitle { margin: 16px auto 0; }


/* ──────────────────────────────────────
   1. HERO
────────────────────────────────────── */
.hp-hero {
  background: var(--color-surface);
  padding: 88px var(--content-padding) 0;
  position: relative;
  overflow: hidden;
}
/* Top accent bar */
.hp-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.hp-hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: flex-end;
}

/* Badge */
.hp-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary-light);
  border: 1.5px solid rgba(26,111,216,0.18);
  color: var(--color-primary);
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 28px;
}
.hp-hero__badge i { color: var(--color-accent); }

/* Title */
.hp-hero__title {
  font-size: clamp(36px, 4.8vw, 60px);
  font-weight: 900;
  color: var(--color-text);
  letter-spacing: -0.05em;
  line-height: 1.06;
  margin-bottom: 22px;
}
.hp-hero__title em {
  font-style: normal;
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}
.hp-hero__title em::after {
  content: '';
  position: absolute;
  bottom: 1px; left: 0; right: 0;
  height: 5px;
  background: var(--gradient-primary);
  border-radius: 3px;
  opacity: 0.4;
}

	9px;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 38px;
  max-width: 530px;
}

/* CTA row */
.hp-hero__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.hp-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 28px;
  background: rgba(255,255,255,0.9);
  color: var(--color-primary);
  border: 2px solid rgba(26,111,216,0.2);
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-base);
  font-family: var(--font-family);
}
.hp-btn-outline:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
}

/* Trust bar */
.hp-hero__trust {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hp-trust-faces { display: flex; }
.hp-trust-faces img {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  margin-left: -10px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.hp-trust-faces img:first-child { margin-left: 0; }
.hp-trust-stars { display: flex; gap: 3px; color: #F59E0B; font-size: 12px; margin-bottom: 4px; }
.hp-trust-text strong { display: block; font-size: 14px; font-weight: 700; color: var(--color-text); letter-spacing: -0.01em; }
.hp-trust-text span   { font-size: 13px; color: var(--color-text-muted); }

/* Hero image */
.hp-hero__visual { position: relative; align-self: flex-end; }
.hp-hero__img-wrap { border-radius: 28px 28px 0 0; overflow: hidden; }
.hp-hero__img-wrap img {
  width: 100%; height: 580px;
  object-fit: cover; object-position: top center;
  display: block;
}

/* Floating cards */
.hp-hero__float {
  position: absolute;
  background: #fff;
  border-radius: 20px;
  padding: 18px 22px;
  box-shadow: 0 20px 60px rgba(26,111,216,0.14);
  border: 1px solid var(--color-border);
  min-width: 158px;
  animation: hp-float 4s ease-in-out infinite;
}
.hp-hero__float--tl { top: 40px;  left: -36px; animation-delay: 0s; }
.hp-hero__float--br { bottom: 80px; right: -32px; animation-delay: 2s; }

@keyframes hp-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.hp-float__icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; margin-bottom: 12px;
}
.hp-float__icon--blue { background: #EBF2FF; color: var(--color-primary); }
.hp-float__icon--teal { background: var(--color-accent-light); color: var(--color-accent); }
.hp-float__num   { font-size: 26px; font-weight: 800; color: var(--color-text); letter-spacing: -0.04em; line-height: 1; }
.hp-float__label { font-size: 12px; color: var(--color-text-muted); margin-top: 4px; }


/* ──────────────────────────────────────
   2. LOGO STRIP
────────────────────────────────────── */
.hp-logos {
  background: #fff;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 32px var(--content-padding);
}
.hp-logos__inner { max-width: var(--max-width); margin: 0 auto; }
.hp-logos__label {
  text-align: center;
  font-size: 11.5px; font-weight: 700;
  color: var(--color-text-faint);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 24px;
}
.hp-logos__track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px; flex-wrap: wrap;
}
.hp-logo-item {
  display: flex; align-items: center; gap: 8px;
  color: #94A3B8; font-size: 13.5px; font-weight: 700;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  border: 1.5px solid #E8EFF8;
  transition: var(--transition-base);
  white-space: nowrap;
}
.hp-logo-item i { font-size: 16px; }
.hp-logo-item:hover {
  color: var(--color-primary);
  border-color: rgba(26,111,216,0.25);
  background: var(--color-primary-light);
}


/* ──────────────────────────────────────
   3. SERVICES GRID
────────────────────────────────────── */
.hp-services { background: var(--color-surface); }

.hp-services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.hp-service-card {
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex; flex-direction: column;
  transition: var(--transition-slow);
}
.hp-service-card:hover {
  border-color: rgba(26,111,216,0.3);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(26,111,216,0.1);
}
.hp-service-card__icon {
  width: 54px; height: 54px;
  background: var(--icon-bg);
  color: var(--icon-color);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.hp-service-card:hover .hp-service-card__icon { transform: scale(1.08) rotate(-5deg); }
.hp-service-card h3 { font-size: 15.5px; font-weight: 700; color: var(--color-text); margin-bottom: 10px; letter-spacing: -0.02em; }
.hp-service-card p  { font-size: 13.5px; color: var(--color-text-muted); line-height: 1.7; flex: 1; }
.hp-service-card__link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 18px; font-size: 13.5px; font-weight: 700;
  color: var(--color-primary); text-decoration: none;
  transition: gap 0.2s;
}
.hp-service-card:hover .hp-service-card__link { gap: 12px; }

.hp-services__footer {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; margin-top: 44px;
}
.hp-services__footer p { font-size: 18px; color: var(--color-text-muted); }


/* ──────────────────────────────────────
   4. STATS BAND
────────────────────────────────────── */
.hp-stats {
  background: var(--color-text);
  padding: 76px var(--content-padding);
  position: relative; overflow: hidden;
}
.hp-stats::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hp-stats__inner {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; position: relative;
}
.hp-stats__item { text-align: center; }
.hp-stats__num-wrap {
  display: flex; align-items: baseline; justify-content: center;
  gap: 3px; line-height: 1; margin-bottom: 14px;
}
.hp-stats__num {
  font-size: 52px; font-weight: 900; letter-spacing: -0.06em;
  background: var(--gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hp-stats__num--static {
  font-size: 52px; font-weight: 900; letter-spacing: -0.06em;
  background: var(--gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hp-stats__suffix { font-size: 28px; font-weight: 800; color: var(--color-accent); }
.hp-stats__divider { width: 36px; height: 3px; background: var(--gradient-primary); border-radius: 2px; margin: 0 auto 14px; }
.hp-stats__label   { font-size: 14.5px; color: rgba(255,255,255,0.5); font-weight: 500; }


/* ──────────────────────────────────────
   5. WHY CHOOSE US
   ⬇ FIXED: Both columns stretch to the
   same height. Left column uses flex to
   fill full height, image grows to fill
   remaining space so nothing is shorter.
────────────────────────────────────── */
.hp-why { background: #fff; padding: var(--space-xl) 0; }

.hp-why__grid {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 var(--content-padding);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  /* Key fix: align-items stretch so both columns are equal height */
  align-items: stretch;
}

/* ── Left visual column ── */
.hp-why__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  /* Makes the column fill the grid row height */
  min-height: 0;
}
.hp-why__img-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  /* Fill remaining height after chip offset */
  flex: 1;
  min-height: 380px;
}
.hp-why__img-wrap img {
  width: 100%;
  /* 100% height fills the wrapper which is flex: 1 */
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hp-why__chip {
  position: absolute;
  bottom: -20px; left: 24px;
  background: var(--gradient-brand);
  border-radius: 20px;
  padding: 20px 26px;
  color: #fff;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow-primary-lg);
}
.hp-why__chip-icon { font-size: 26px; }
.hp-why__chip-num  { font-size: 28px; font-weight: 900; letter-spacing: -0.05em; line-height: 1; }
.hp-why__chip-label { font-size: 12px; opacity: 0.82; margin-top: 3px; }

/* ── Right content column ── */
.hp-why__content {
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertically centre content in full-height column */
}

.hp-why__features { display: grid; gap: 14px; margin-top: 4px; }

.hp-why__feat {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 22px;
  border: 1.5px solid var(--color-border);
  border-radius: 18px;
  transition: var(--transition-base);
}
.hp-why__feat:hover {
  border-color: rgba(26,111,216,0.25);
  background: var(--color-primary-light);
  box-shadow: 0 8px 24px rgba(26,111,216,0.07);
}
.hp-why__feat-icon {
  width: 46px; height: 46px;
  background: var(--feat-bg); color: var(--feat-color);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; flex-shrink: 0;
}
.hp-why__feat h3 { font-size: 15px; font-weight: 700; color: var(--color-text); margin-bottom: 5px; letter-spacing: -0.01em; }
.hp-why__feat p  { font-size: 15px; color: var(--color-text-muted); line-height: 1.7; }


/* ──────────────────────────────────────
   6. ABOUT INTRO
────────────────────────────────────── */
.hp-about { background: var(--color-surface); padding: var(--space-xl) 0; }
.hp-about__grid {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 var(--content-padding);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}
.hp-about__checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp-about__check {
  display: flex; align-items: center; gap: 10px;
  font-size: 14.5px; font-weight: 500; color: var(--color-text-body);
}
.hp-about__check i { color: var(--color-accent); font-size: 16px; flex-shrink: 0; }

.hp-about__visual { position: relative; }
.hp-about__img-main { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.hp-about__img-main img { width: 100%; height: 420px; object-fit: cover; display: block; }
.hp-about__img-accent {
  position: absolute; bottom: -28px; left: -24px;
  width: 52%; border-radius: var(--radius-lg);
  overflow: hidden; border: 5px solid #fff;
  box-shadow: var(--shadow-lg);
}
.hp-about__img-accent img { width: 100%; height: 180px; object-fit: cover; display: block; }
.hp-about__stat-pill {
  position: absolute; top: 24px; right: -14px;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gradient-brand); color: #fff;
  padding: 10px 18px; border-radius: var(--radius-full);
  font-size: 13.5px; font-weight: 700;
  box-shadow: var(--shadow-primary);
}


/* ──────────────────────────────────────
   7. TESTIMONIALS
────────────────────────────────────── */
.hp-testimonials { background: var(--color-surface); padding: var(--space-xl) 0; }
.hp-test__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hp-test__card {
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: flex; flex-direction: column;
  transition: var(--transition-base);
}
.hp-test__card:hover {
  border-color: rgba(26,111,216,0.25);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(26,111,216,0.08);
}
.hp-test__quote { font-size: 48px; line-height: 1; font-weight: 900; color: #E8EFF8; margin-bottom: 10px; font-family: Georgia, serif; }
.hp-test__stars { display: flex; gap: 3px; color: #F59E0B; font-size: 14px; margin-bottom: 16px; }
.hp-test__card > p { font-size: 14.5px; color: var(--color-text-muted); line-height: 1.75; flex: 1; margin-bottom: 26px; }
.hp-test__author {
  display: flex; align-items: center; gap: 13px;
  padding-top: 22px; border-top: 1px solid var(--color-border);
}
.hp-test__author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 3px solid var(--color-primary-light); flex-shrink: 0; }
.hp-test__author strong { display: block; font-size: 14px; font-weight: 700; color: var(--color-text); }
.hp-test__author span   { font-size: 12.5px; color: var(--color-text-faint); margin-top: 2px; }


/* ──────────────────────────────────────
   8. FAQ
────────────────────────────────────── */
.hp-faq { background: #fff; padding: var(--space-xl) 0; }
.hp-faq__grid {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 var(--content-padding);
  display: grid; grid-template-columns: 1fr 1.65fr;
  gap: 80px; align-items: flex-start;
}
.hp-faq__aside { position: sticky; top: calc(var(--header-height) + 24px); }

.hp-faq__item { border-bottom: 1px solid var(--color-border); }
.hp-faq__item:first-child { border-top: 1px solid var(--color-border); }

.hp-faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 21px 0; background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-family); font-size: 15px; font-weight: 600; color: var(--color-text);
  transition: color 0.2s;
}
.hp-faq__q:hover { color: var(--color-primary); }
.hp-faq__q-icon {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: var(--radius-full); border: 1.5px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary); font-size: 12px;
  transition: var(--transition-base);
}
.hp-faq__item.is-open .hp-faq__q-icon {
  background: var(--color-primary); color: #fff; border-color: var(--color-primary);
  transform: rotate(45deg);
}
.hp-faq__a {
  overflow: hidden; max-height: 0;
  transition: max-height 0.38s ease, padding 0.2s;
}
.hp-faq__a[hidden] { display: block; } /* stay in DOM for animation */
.hp-faq__a p { font-size: 14.5px; color: var(--color-text-muted); line-height: 1.8; padding-bottom: 20px; }
.hp-faq__item.is-open .hp-faq__a { max-height: 400px; }


/* ──────────────────────────────────────
   9. CTA BAND
────────────────────────────────────── */
.hp-cta { background: var(--color-surface); padding: 80px var(--content-padding); }
.hp-cta__box {
  max-width: var(--max-width); margin: 0 auto;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl); padding: 76px 72px;
  text-align: center; position: relative; overflow: hidden;
}
.hp-cta__box::before {
  content: ''; position: absolute; top: -120px; left: -120px;
  width: 400px; height: 400px; background: rgba(255,255,255,0.06); border-radius: 50%;
}
.hp-cta__box::after {
  content: ''; position: absolute; bottom: -100px; right: -100px;
  width: 350px; height: 350px; background: rgba(0,196,180,0.18); border-radius: 50%;
}
.hp-cta__chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; padding: 8px 20px; border-radius: var(--radius-full);
  font-size: 13.5px; font-weight: 600; margin-bottom: 22px; position: relative; z-index: 1;
}
.hp-cta__title {
  font-size: clamp(26px, 3.5vw, 44px); font-weight: 900; color: #fff;
  letter-spacing: -0.05em; line-height: 1.1; margin-bottom: 16px;
  position: relative; z-index: 1;
}
.hp-cta__sub {
  font-size: 17px; color: rgba(255,255,255,0.78); max-width: 560px;
  margin: 0 auto 40px; line-height: 1.7; position: relative; z-index: 1;
}
.hp-cta__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.hp-cta-btn-white {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 34px; background: #fff; color: var(--color-primary);
  border-radius: var(--radius-full); font-size: 16px; font-weight: 700;
  text-decoration: none; transition: var(--transition-base);
  box-shadow: 0 6px 24px rgba(0,0,0,0.15); font-family: var(--font-family);
}
.hp-cta-btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.22); }
.hp-cta-btn-ghost {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 30px; background: rgba(255,255,255,0.1); color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3); border-radius: var(--radius-full);
  font-size: 16px; font-weight: 600; text-decoration: none;
  transition: var(--transition-base); font-family: var(--font-family);
}
.hp-cta-btn-ghost:hover { background: rgba(255,255,255,0.2); }


/* ──────────────────────────────────────
   RESPONSIVE
────────────────────────────────────── */
@media (max-width: 1200px) {
  .hp-services__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .hp-hero__inner    { grid-template-columns: 1fr; gap: 0; padding-bottom: 72px; }
  .hp-hero__visual   { display: none; }
  .hp-why__grid,
  .hp-about__grid    { grid-template-columns: 1fr; gap: 48px; }
  /* Stack: image on top on tablet */
  .hp-why__visual    { order: -1; min-height: 400px; }
  .hp-why__img-wrap  { min-height: 380px; }
  .hp-faq__grid      { grid-template-columns: 1fr; gap: 48px; }
  .hp-faq__aside     { position: static; }
  .hp-services__grid { grid-template-columns: repeat(2, 1fr); }
  .hp-about__img-main img { height: 320px; }
}

@media (max-width: 768px) {
  .hp-hero        { padding: 56px var(--content-padding) 56px; }
  .hp-stats__inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .hp-test__grid  { grid-template-columns: 1fr; }
  .hp-cta__box    { padding: 48px 28px; }
  .hp-about__checklist { grid-template-columns: 1fr; }
  .hp-about__img-accent { display: none; }
}

@media (max-width: 640px) {
  .hp-services__grid { grid-template-columns: 1fr; }
  .hp-hero__actions  { flex-direction: column; align-items: stretch; }
  .hp-hero__actions a { text-align: center; justify-content: center; }
  .hp-stats__num, .hp-stats__num--static { font-size: 40px; }
  .hp-cta__btns { flex-direction: column; align-items: stretch; }
  .hp-cta-btn-white, .hp-cta-btn-ghost { justify-content: center; }
  .hp-cta__box { padding: 40px 24px; }
}
