/* ============================================================
   CLOUD-HOSTED SERVICES — Axis Fintech
   Shared tokens/reset/navbar/footer → css/global.css
   ============================================================ */

/* ---------- Page-specific CSS Variables ---------- */
:root {
  --color-primary-overlay: rgba(51, 68, 114, 0.28);
  --color-footer-text:    #e6eaf6;

  --text-hero-title:   clamp(2.75rem, 5.2vw, 5.25rem);
  --text-hero-sub:     clamp(1.25rem, 2vw, 2rem);
  --text-section-title: clamp(1.75rem, 3vw, 3rem);
  --text-section-sub:  clamp(1rem, 1.5vw, 1.5rem);
  --text-card-title:   clamp(1.125rem, 1.5vw, 1.5rem);
  --text-card-body:    clamp(0.9375rem, 1.25vw, 1.25rem);
  --text-nav:          1rem;
  --text-back:         clamp(1.125rem, 1.5vw, 1.5rem);
  --text-scroll:       1.25rem;
  --text-footer:       1rem;

  --space-16:  1rem;
  --space-21:  1.3125rem;
  --space-29:  1.8125rem;
  --space-31:  1.9375rem;
  --space-34:  2.125rem;
  --space-35:  2.1875rem;
  --space-36:  2.25rem;
  --space-43:  2.6875rem;
  --space-45:  2.8125rem;
  --space-47:  2.9375rem;
  --space-58:  3.625rem;
  --space-85:  5.3125rem;
  --space-98:  6.125rem;
  --space-110: 6.875rem;
  --space-128: 8rem;
  --space-153: 9.5625rem;

  --radius-card: 1.5625rem;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-43) var(--space-30);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-primary-overlay);
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-primary-dark) 0%, rgba(0, 0, 0, 0) 100%);
}

.hero__back {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--space-16);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-back);
  margin-bottom: auto;
  transition: opacity 0.2s ease;
  align-self: flex-start;
}

.hero__back:hover,
.hero__back:focus-visible { opacity: 0.8; }

.hero__back-arrow { flex-shrink: 0; }

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  padding: var(--space-43) var(--space-30);
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  width: 100%;
}

.hero__heading-block {
  margin-top: auto;
  margin-bottom: auto;
  padding-left: 98px;
  max-width: 720px;
}


.hero__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-hero-title);
  color: var(--color-white);
  line-height: 1.1;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-hero-sub);
  color: var(--color-white);
  max-width: 768px;
  line-height: 1.4;
}

.hero__scroll {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  margin-top: auto;
  align-self: center;
  color: var(--color-white);
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero__scroll-text {
  font-family: var(--font-heading);
  font-size: var(--text-scroll);
}

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

/* ============================================================
   PRODUCTS SECTION
   ============================================================ */
.products {
  position: relative;
  width: 100%;
  padding: 8rem var(--space-98);
  overflow: hidden;
  background: #ffffff;
}

.products__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.products__bg-img {
  position: absolute;
  bottom: 0;
  right: 0;
  height:100%;
  width:1440px;
}

.products__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-47);
  max-width: 1244px;
  margin: 0 auto;
}

/* ============================================================
   INFO CARD
   ============================================================ */
.info-card {
  background: linear-gradient(to top, var(--color-light), var(--color-white));
  border-radius: var(--radius-card);
  padding: var(--space-28) var(--space-36);
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: var(--space-21);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover { transform: translateY(-4px); }

.info-card__icon { width: 60px; height: 60px; flex-shrink: 0; }

.info-card__icon-svg,
.info-card__icon-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.info-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-card-title);
  color: var(--color-primary);
  line-height: 1.3;
  width: calc(100% - 60px - var(--space-21));
}

.info-card__desc {
  font-family: var(--font-body);
  font-size: var(--text-card-body);
  color: var(--color-primary);
  line-height: 1.5;
  width: 100%;
}

/* ============================================================
   CLOUD-HOSTED SERVICES SECTION
   ============================================================ */
.cloud-services {
  background: var(--color-primary);
  padding: 8rem var(--space-110);
  width: 100%;
}

.cloud-services__header {
  text-align: center;
  margin-bottom: var(--space-85);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-34);
}

.cloud-services__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-section-title);
  color: var(--color-white);
  line-height: 1.2;
}

.cloud-services__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-section-sub);
  color: var(--color-white);
  max-width: 531px;
  line-height: 1.5;
}

.cloud-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-58) var(--space-35);
  max-width: 1219px;
  margin: 0 auto;
}

/* ============================================================
   RESPONSIVE: Tablet (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .hero__content { margin-left: var(--space-30); }
  .products { padding: var(--space-85) var(--space-30); }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .cloud-services { padding: var(--space-58) var(--space-30); }
  .cloud-services__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-35); }

  .products__bg-img {
	height:auto;
	width:100%;
   }
}

/* ============================================================
   RESPONSIVE: Mobile (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    padding: var(--space-30) var(--space-16);
  }

  .hero__content {
    margin-left: 0;
    gap: var(--space-28);
  }

  .products__grid { grid-template-columns: 1fr; }

  .cloud-services__grid {
    grid-template-columns: 1fr;
    gap: var(--space-28);
  }

  .info-card__title { width: 100%; }
}

/* ============================================================
   RESPONSIVE: Small mobile (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .navbar__inner { padding: var(--space-16); }
  .hero__logo-large img {
    width: 160px;
  }

  .hero { min-height: 100vh; }
  .hero__heading-block {
  
	padding-left: 0px;

  }
  .products { padding: var(--space-45) var(--space-16); }
  .cloud-services { padding: var(--space-45) var(--space-16); }
  .cloud-services__header { margin-bottom: var(--space-45); }
  .info-card { padding: var(--space-21) var(--space-28); }
}
