/* ==========================================================================
   Engage Web — Home Page Styles
   ========================================================================== */

/* ---------- Section 1: Hero Header ---------- */
.section_home-header {
  display: flex;
  flex-direction: column;
  padding-top: var(--sp-section-top);
  min-height: 900px;
}
.home-header_wrapper {
  display: flex;
  flex-direction: column;
}
.home-header_component {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.home-header_heading-wrap {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.home-header_heading-wrap .heading-style-h1 {
  display: inline;
}
.home-header_heading-wrap .heading-style-h1 span {
  display: inline;
}
.display-inline { display: inline; }
.icon-large { width: 80px; height: 80px; flex-shrink: 0; }
.home-header_sub-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
}
.home-header_images-wrapper {
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.home-header_images-wrap {
  display: flex;
  gap: 16px;
  width: 100%;
  max-width: 1400px;
}
.home-header_image {
  flex: 1;
  height: 500px;
  object-fit: cover;
  border-radius: var(--r-md);
}
.home-header_image._1 { transform: translateY(40px); }
.home-header_image._2 { transform: translateY(-20px); }
.home-header_image._3 { transform: translateY(60px); }

/* ---------- Section 2: Services (Sticky) ---------- */
.section_home-services {
  position: relative;
  height: 3600px;
}
.home-services_sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.home-services_content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 700px;
}
.home-services_heading-wrap {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.home-services_heading-wrap .heading-style-h2 { line-height: 1; }
.home-services_tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.home-services_tab {
  font-size: var(--fs-h2);
  font-weight: var(--fw-medium);
  line-height: var(--lh-h2);
  color: var(--c-grey-200);
  cursor: pointer;
  transition: color var(--t-fast);
}
.home-services_tab.is-active,
.home-services_tab:hover { color: var(--c-black); }

/* ---------- Section 3: Brands ---------- */
.section_brands {
  overflow: hidden;
  padding: 96px 0;
}
.padding-section-small { height: 96px; }
.brands_wrapper {
  display: flex;
  position: relative;
  animation: brandsScroll 30s linear infinite;
}
.brands_wrap {
  display: grid;
  grid-template-columns: repeat(7, 256px);
  gap: 16px;
  flex-shrink: 0;
}
.brands_item {
  width: 256px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brands_logo { max-width: 160px; max-height: 40px; opacity: 0.6; }
@keyframes brandsScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Section 4: Feature (3 sticky items) ---------- */
.section_home-feature {
  position: relative;
}
.home-feature_wrapper {
  display: flex;
  flex-direction: column;
}
.home-feature_item {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 48px;
}
.home-feature_component {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 1344px;
  margin: 0 auto;
  background: var(--c-purple);
  padding: 80px;
  border-radius: var(--r-xl);
  height: 804px;
}
.home-feature_component._2 { background: var(--c-sky); }
.home-feature_component._3 { background: var(--c-green-bg); }
.home-feature_content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.home-feature_content .label { color: var(--c-black); }
.home-feature_content p { color: var(--c-grey-600); font-weight: var(--fw-normal); }
.home-feature_image-wrap {
  flex: 1;
  border-radius: var(--r-md);
  overflow: hidden;
}
.home-feature_image {
  width: 576px;
  max-width: 100%;
  height: 603px;
  object-fit: cover;
  border-radius: 0;
  align-self: center;
}

/* ---------- Section 5: Solutions ---------- */
.section_home-solutions {
  padding-bottom: 80px;
}
.home-solutions_component {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.home-solutions_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.home-solutions_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.home-solutions_item {
  position: relative;
  overflow: hidden;
  min-height: 518px;
  cursor: pointer;
}
.home-solutions_front,
.home-solutions_back {
  position: absolute;
  inset: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: opacity var(--t-default), transform var(--t-default);
}
.home-solutions_front {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  opacity: 1;
}
.home-solutions_back {
  background: var(--c-black);
  color: var(--c-white);
  opacity: 0;
  transform: translateY(20px);
}
.home-solutions_item.is-flipped .home-solutions_front { opacity: 0; transform: translateY(-20px); }
.home-solutions_item.is-flipped .home-solutions_back { opacity: 1; transform: translateY(0); }
.home-solutions_icon { width: 32px; height: 32px; }
.home-solutions_image-large,
.home-solutions_image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--r-sm);
}
.home-solutions_back .label { color: var(--c-grey-300); }
.home-solutions_back p { color: var(--c-grey-300); }
.home-solutions_action-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  cursor: pointer;
}
.home-solutions_action-text {
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-semibold);
}
.home-solutions_arrow { width: 20px; height: 20px; }

/* ---------- Section 6: Cases List ---------- */
.section_cases-list {
  padding-bottom: 80px;
}
.cases-list_component {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.cases-list_header {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cases-list_header .button { margin-left: auto; }
.cases-list_header .icon-small { width: 40px; height: 40px; }
.cases-list_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cases-list_item {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-fast);
}
.cases-list_item:hover { transform: translateY(-4px); }
.cases-list_image {
  width: 100%;
  height: 288px;
  object-fit: cover;
  border-radius: var(--r-lg);
  display: inline-block;
  position: relative;
}
.cases-list_content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cases-list_categories {
  display: flex;
  gap: 12px;
}
.cases-list_category-text {
  font-size: var(--fs-body-md);
  font-weight: var(--fw-medium);
  color: var(--c-grey-400);
}
.cases-list_content p { color: var(--c-grey-400); font-weight: var(--fw-normal); }

/* ---------- Section 7: CTA (Sticky with parallax) ---------- */
.section_cta-version-1 {
  position: relative;
  height: 3400px;
}
.cta-version-1_wrapper {
  position: relative;
}
.cta-version-1_sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cta-version-1_content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
  z-index: 2;
  position: relative;
}
.cta-version-1_content .heading-style-h3 {
  display: flex;
  flex-direction: column;
  max-width: 800px;
}
.cta-version-1_images {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-version-1_image {
  position: absolute;
  width: 291px;
  height: 291px;
  object-fit: cover;
  border-radius: 45px;
}
.cta-version-1_image._1 { top: 10%; left: 15%; }
.cta-version-1_image._2 { top: 15%; right: 20%; }
.cta-version-1_image._3 { top: 30%; left: 8%; }
.cta-version-1_image._4 { top: 50%; right: 10%; }
.cta-version-1_image._5 { bottom: 20%; left: 20%; }
.cta-version-1_image._6 { bottom: 15%; right: 15%; }
.cta-version-1_image._7 { bottom: 30%; left: 35%; }
.cta-version-1_image._8 { top: 20%; right: 40%; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .home-header_image { height: 350px; }
  .home-services_content { max-width: 100%; }
  .home-feature_component { flex-direction: column !important; gap: 32px; }
  .home-feature_image { height: 400px; }
  .home-solutions_grid { grid-template-columns: 1fr; }
  .cases-list_grid { grid-template-columns: 1fr; }
  .cases-list_header .button { margin-left: 0; }
}

@media (max-width: 767px) {
  .section_home-header { min-height: auto; padding-top: 100px; }
  .home-header_images-wrap { flex-direction: column; gap: 12px; }
  .home-header_image { height: 280px; transform: none !important; }
  .home-header_sub-wrap { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section_home-services { height: auto; }
  .home-services_sticky { position: relative; height: auto; padding: 80px 0; }
  .home-services_tab { font-size: var(--fs-h3); line-height: var(--lh-h3); }
  .section_home-feature { height: auto; }
  .home-feature_item { position: relative; height: auto; padding: 60px 0; }
  .home-feature_image { height: 280px; }
  .section_cta-version-1 { height: auto; padding: 80px 0; }
  .cta-version-1_sticky { position: relative; height: auto; padding: 60px 0; }
  .cta-version-1_images { display: none; }
  .home-solutions_header { flex-direction: column; gap: 24px; align-items: flex-start; }
  .cases-list_header { flex-direction: column; align-items: flex-start; gap: 16px; }
}
