/**
 * Deferred CSS for Deltadots Home Page
 * Loaded asynchronously after first paint
 * Contains: Solutions, Results, Why Deltadots, Insights
 * Note: Section-specific CSS (expertise, testimonials, faq, cta, contact, book-call)
 * is loaded dynamically via Fast_Pages::section()
 */

/* =====================
   SOLUTIONS CAROUSEL
   ===================== */
.solutions-section {
  padding: 80px 0;
  background: var(--color-bg-light);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.solutions-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.solutions-header h2 {
  font-size: 40px;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  color: var(--color-text);
  margin-bottom: 10px;
}

.solutions-header p {
  color: var(--color-text);
  font-size: 1.25rem;
}

.solutions-nav {
  display: flex;
  gap: 10px;
}

.solutions-nav button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-border-light);
  background: var(--color-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.solutions-nav button:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.solutions-nav button:hover svg path {
  stroke: #fff;
}

.solutions-nav button:disabled,
.solutions-nav button.swiper-button-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.solutions-carousel {
  overflow: hidden;
}

.solutions-carousel .swiper-wrapper {
  display: flex;
  gap: 30px;
}

.solutions-carousel .swiper-slide {
  flex-shrink: 0;
  width: 360px;
  height: auto;
  transition: width 0.5s ease;
}

.solutions-carousel .swiper-slide:hover {
  width: 630px;
}

.solutions-carousel .swiper-slide:last-child {
  transition: width 0.5s ease, transform 0.5s ease;
}
.solutions-carousel .swiper-slide:last-child:hover {
  transform: translateX(-270px);
}

.solutions-carousel.swiper-initialized {
  overflow: visible;
}

.solutions-carousel.swiper-initialized .swiper-wrapper {
  gap: 0;
}

.solution-card {
  background: var(--color-bg);
  border-radius: 10px;
  padding: 50px 30px 50px 30px;
  height: 100%;
  min-height: 475px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all ease 0.5s;
}

.solution-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.solution-card__icon {
  width: 76px;
  height: 76px;
  margin-bottom: 10px;
  transition: all ease 0.5s;
}

.solution-card:hover .solution-card__icon {
  width: 50px;
  height: 50px;
}

.solution-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.solution-card__title {
  font-size: 40px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 42px;
  margin-bottom: 20px;
  transition: all ease 0.3s;
  transition-delay: 0.2s;
}

.solution-card:hover .solution-card__title {
  font-size: 34px;
  line-height: 36px;
}

.solution-card__desc {
  color: var(--color-text);
  font-size: 18px;
  font-weight: 400;
  line-height: 27.79px;
  letter-spacing: 0.04em;
  overflow: hidden;
  height: 1px;
  opacity: 0;
  transition: all ease 0.5s;
}

.solution-card:hover .solution-card__desc {
  opacity: 1;
  height: 200px;
  transition-delay: 0.2s;
}

.solution-card__link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 57px;
  width: 57px;
  border-radius: 57px;
  padding: 0;
  background: #e9e9e9;
  color: var(--color-text, #1d1d1f);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: width 0.5s ease, background 0.4s ease, color 0.4s ease;
  position: absolute;
  bottom: 35px;
  right: 20px;
}

.solution-card__link:hover {
  background: #000;
  color: #fff;
}

.solution-card__link-text {
  width: 0;
  overflow: hidden;
  opacity: 0;
  transition: width 0.5s ease, opacity 0.3s ease;
  transition-delay: 0s;
  white-space: nowrap;
}

.solution-card:hover .solution-card__link {
  width: 150px;
}

.solution-card:hover .solution-card__link-text {
  width: 75px;
  opacity: 1;
  transition-delay: 0.2s;
}

.solution-card__link svg {
  width: 20px;
  height: 15px;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.solution-card__link svg path {
  transition: fill 0.3s ease;
}

.solution-card:hover .solution-card__link svg path {
  fill: #fff;
}

.solution-card__pattern {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  pointer-events: none;
  opacity: 0.4;
}

.solution-card__pattern--grid {
  background-image: linear-gradient(to right, #d0d5dd 1px, transparent 1px),
    linear-gradient(to bottom, #d0d5dd 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to top right, black 0%, transparent 60%);
  -webkit-mask-image: linear-gradient(to top right, black 0%, transparent 60%);
}

.solution-card__pattern--hexagon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='48' viewBox='0 0 56 48'%3E%3Cpath fill='none' stroke='%23d0d5dd' stroke-width='1' d='M28 0l24 14v20L28 48 4 34V14z'/%3E%3C/svg%3E");
  background-size: 56px 48px;
  mask-image: linear-gradient(to top right, black 0%, transparent 60%);
  -webkit-mask-image: linear-gradient(to top right, black 0%, transparent 60%);
}

@media (max-width: 768px) {
  .solutions-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .solutions-nav {
    display: none;
  }
  .solutions-carousel .swiper-slide {
    width: 300px;
  }
  .solutions-carousel .swiper-slide:hover {
    width: 300px;
  }
  .solution-card {
    padding: 28px 24px;
    min-height: 380px;
    justify-content: flex-start;
  }
  .solution-card__icon {
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
  }
  .solution-card:hover .solution-card__icon {
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
  }
  .solution-card__title {
    font-size: 22px;
    line-height: 30px;
    margin-bottom: 12px;
  }
  .solution-card:hover .solution-card__title {
    font-size: 22px;
    line-height: 30px;
  }
  .solution-card__desc {
    opacity: 1;
    height: auto;
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 10px;
  }
  .solution-card:hover .solution-card__desc {
    height: auto;
  }
  .solution-card__link {
    position: relative;
    bottom: auto;
    right: auto;
    width: auto;
    height: auto;
    padding: 12px 20px;
    background: #1d1d1f;
    color: #fff;
    animation: none !important;
    margin-top: auto;
  }
  .solution-card:hover .solution-card__link {
    animation: none !important;
    width: auto;
  }
  .solution-card__link-text {
    width: auto;
    opacity: 1;
    animation: none !important;
  }
  .solution-card__pattern {
    width: 150px;
    height: 150px;
  }
  .solutions-header h2 {
    font-size: 28px;
  }
  .solutions-header p {
    font-size: 0.9375rem;
  }
}

@media (max-width: 480px) {
  .solutions-header h2 {
    font-size: 24px;
  }
  .solutions-header p {
    font-size: 0.875rem;
  }
}

/* =====================
   RESULTS/STATS SECTION
   ===================== */
.results-section {
  padding: 100px 0;
  background: var(--color-bg-dark);
  position: relative;
  z-index: 1;
}

.results-label {
  color: var(--color-primary);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.results-title {
  font-size: 3.125rem;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  color: #fff;
  margin-bottom: 20px;
}

.results-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.25rem;
  margin-bottom: 50px;
  line-height: 1.6;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.result-card {
  background: #191919;
  border-radius: 10px;
  padding: 20px 35px;
  display: flex;
  flex-direction: column;
  min-height: 26.4rem;
}

.result-card__text {
  font-size: 1.5rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.5;
  margin-bottom: auto;
}

.result-card__stat {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 40px;
}

.result-card__number {
  font-size: clamp(3.5rem, 6vw, 4.5rem);
  font-weight: 400;
  color: #fff;
  line-height: 1;
  letter-spacing: 0.02rem;
}

.result-card__icon {
  width: 23px;
  height: 23px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}

.result-card__icon svg {
  width: 16px;
  height: 16px;
}

.result-card__divider {
  width: 95px;
  height: 2px;
  background: var(--color-primary);
  margin: 15px 0;
}

.result-card__label {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 1);
  font-weight: 400;
  letter-spacing: 0.02rem;
}

@media (max-width: 768px) {
  .results-section {
    padding: 60px 0;
  }
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .result-card {
    padding: 30px 24px;
    min-height: 260px;
  }
  .result-card__text {
    font-size: 1.1rem;
  }
  .result-card__number {
    font-size: 3rem;
  }
  .results-label {
    font-size: 1rem;
  }
  .results-title {
    font-size: 1.75rem;
  }
  .results-desc {
    font-size: 0.9375rem;
  }
}

@media (max-width: 480px) {
  .results-grid {
    grid-template-columns: 1fr;
  }
  .result-card {
    min-height: auto;
  }
  .results-title {
    font-size: 1.5rem;
  }
  .result-card__text {
    font-size: 1rem;
  }
  .result-card__number {
    font-size: 2.5rem;
  }
  .result-card__label {
    font-size: 0.9375rem;
  }
}

/* =====================
   WHY DELTADOTS - STICKY CARD STACK
   ===================== */
.why-stack {
  background: var(--color-bg);
  position: relative;
  z-index: 1;
}

.why-stack__header {
  padding: 40px 0 80px;
}

.why-stack__title {
  font-size: 40px;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  color: var(--color-text);
  margin-bottom: 16px;
}

.why-stack__subtitle {
  font-size: 1.25rem;
  color: var(--color-text);
}

.why-stack__scroll-area {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
}

.why-stack__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.why-stack__inner {
  display: flex;
  width: 100%;
  gap: 40px;
}

.why-stack__nav {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.why-stack__nav-item {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text-muted, #666);
  /* cursor: pointer; */
  transition: color 0.3s;
  padding: 4px 0;
  border: none;
  background: none;
  text-align: left;
}

.why-stack__nav-item.is-active {
  color: var(--color-primary);
}

.why-stack__nav-skip {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 1.125rem;
  color: var(--color-text-muted, #666);
  cursor: pointer;
  border: none;
  background: none;
}
.why-stack__nav-skip > span {
  transform: rotate(-90deg) translateX(4px) translateY(-3px);
}
.why-stack__cards {
  flex: 1;
  position: relative;
  height: 500px;
  overflow: visible;
}

.why-stack__card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--color-bg-light);
  border-radius: 10px;
  padding: 36px 36px 36px 95px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  opacity: 0;
  transform: translateY(100px);
  will-change: transform, opacity;
  transform-origin: top center;
  box-shadow: 0px -20px 16px -23px rgba(0, 0, 0, 0.06);
}

.why-stack__card-content {
  padding: 30px 0;
  max-width: 340px;
}

.why-stack__card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.why-stack__card.is-stacked {
  opacity: 1;
}

.why-stack__card.is-below {
  opacity: 1;
}

.why-stack__card-number {
  font-size: clamp(2.5rem, 8vw, 3.75rem);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.why-stack__card-title {
  font-size: 1.875rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.3;
}

.why-stack__card-desc {
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 30px;
}

.why-stack__card-buttons {
  display: flex;
  gap: 12px;
}

.why-stack__card-img {
  border-radius: 16px;
  overflow: hidden;
  height: 367px;
}

.why-stack__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1023px) {
  .why-stack__header {
    padding: 60px 0 30px;
  }
  .why-stack__nav {
    display: none;
  }
  .why-stack__scroll-area {
    height: auto !important;
  }
  .why-stack__sticky {
    position: relative;
    height: auto;
    padding-bottom: 60px;
  }
  .why-stack__cards {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  .why-stack__card {
    position: relative;
    top: auto;
    left: auto;
    padding: 40px;
    gap: 40px;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    will-change: auto;
  }
  .why-stack__card-img {
    height: 150px;
  }
  .why-stack__title {
    font-size: 28px;
  }
  .why-stack__subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .why-stack__header {
    padding: 50px 0 30px;
  }
  .why-stack__sticky {
    padding-bottom: 50px;
  }
  .why-stack__cards {
    gap: 24px;
  }
  .why-stack__card {
    grid-template-columns: 1fr;
    padding: 15px;
    gap: 20px;
  }
  .why-stack__card-content {
    padding: 0;
  }
  .why-stack__card-img {
    height: 150px;
    order: -1;
  }
  .why-stack__card-number {
    font-size: 3rem;
    margin-bottom: 12px;
  }
  .why-stack__card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
  }
  .why-stack__card-desc {
    font-size: 0.9375rem;
    margin-bottom: 20px;
  }
  .why-stack__card-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .why-stack__card {
    padding: 20px;
    border-radius: 16px;
  }
  .why-stack__card-img {
    height: 150px;
    border-radius: 12px;
  }
  .why-stack__card-number {
    font-size: 2.5rem;
  }
  .why-stack__card-title {
    font-size: 1.125rem;
  }
  .why-stack__title {
    font-size: 24px;
  }
  .why-stack__subtitle {
    font-size: 0.875rem;
  }
}

/* =====================
   INDUSTRY INSIGHTS (BLOG)
   ===================== */
.insights-section {
  padding: 100px 0;
  background: var(--color-bg);
  position: relative;
  z-index: 1;
}

.insights-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}

.insights-header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.insights-nav {
  display: flex;
  gap: 8px;
}

.insights-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--color-text);
}

.insights-nav-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.insights-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.insights-nav-btn svg {
  width: 20px;
  height: 20px;
}

.insights-title {
  font-size: 40px;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  color: var(--color-text);
}

.insights-btn {
  font-size: var(--btn-md-font-size);
  border-radius: 200px;
}

a.btn.btn--outline.insights-btn {
  background: #f2f2f2;
  color: var(--color-text, #1d1d1f);
  padding: var(--btn-sm-padding);
  height: var(--btn-sm-height);
  border: none;
}

a.btn.btn--outline.insights-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

a.btn.btn--outline.insights-btn:hover svg,
a.btn.btn--outline.insights-btn:hover svg path {
  fill: #fff;
  stroke: #fff;
}

.insights-slider {
  overflow: hidden;
}

.insights-slider .swiper-slide {
  width: auto;
}

.insights-empty {
  text-align: center;
  color: var(--color-text-muted);
  padding: 40px 0;
}

.blog-card {
  display: flex;
  flex-direction: column;
}

.blog-card__image {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 20px;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.05);
}

.blog-card__content {
  padding: 0 4px;
}

.blog-card__title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__date {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

@media (max-width: 1023px) {
  .insights-section {
    padding: 60px 0;
  }
  .insights-header {
    margin-bottom: 32px;
  }
  .insights-title {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .insights-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .insights-header__right {
    width: 100%;
    justify-content: space-between;
  }
  .insights-title {
    font-size: 24px;
  }
  .blog-card__title {
    font-size: 0.9375rem;
  }
  .insights-nav-btn {
    width: 40px;
    height: 40px;
  }
}
