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

/* ---------- Page-specific CSS Variables ---------- */
:root {
  --color-bg-hero-grad: #00103d;

  --fs-hero-title:      clamp(3rem, 5.2vw, 5.25rem);
  --fs-hero-subtitle:   clamp(1.25rem, 2.2vw, 2rem);
  --fs-section-heading: clamp(1.75rem, 3.3vw, 3rem);
  --fs-body:            clamp(1rem, 1.25vw, 1.25rem);
  --fs-nav:             1rem;
  --fs-card-title:      clamp(1rem, 1.4vw, 1.375rem);
  --fs-back-btn:        clamp(1.125rem, 1.5vw, 1.5rem);
  --fs-footer:          1rem;

  --space-16:   1rem;
  --space-31:   1.9375rem;
  --space-35:   2.1875rem;
  --space-43:   2.6875rem;
  --space-45:   2.8125rem;
  --space-55:   3.4375rem;
  --space-70:   4.375rem;
  --space-123:  7.6875rem;
  --space-163:  10.1875rem;
  --space-282:  17.625rem;

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  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:
    linear-gradient(to top, var(--color-bg-hero-grad) 0%, transparent 70%),
    var(--color-overlay);
}

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

.hero__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-45);
  margin-top: auto;
  margin-bottom: auto;
  max-width: 755px;
  padding-left: 98px;
}

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

.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--fs-hero-subtitle);
  font-weight: 400;
  color: var(--color-white);
  line-height: 1.35;
  max-width: 755px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-16);
  color: var(--color-white);
  transition: opacity var(--transition-fast);
}

.back-btn:hover,
.back-btn:focus-visible { opacity: 0.7; }

.back-btn__arrow { flex-shrink: 0; }

.back-btn__text {
  font-family: var(--font-heading);
  font-size: var(--fs-back-btn);
  font-weight: 700;
  color: var(--color-white);
}

.hero__scroll {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  z-index: 1;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero__scroll-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-white);
}

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

/* ============================================================
   MAIN CONTENT — White section
   ============================================================ */
.main-content {
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-123);
  padding: 8rem 7rem;
}

.services-intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-55);
  max-width: 876px;
  width: 100%;
}

.services-intro__heading {
  font-family: var(--font-heading);
  font-size: var(--fs-section-heading);
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
}

.services-intro__desc {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--color-primary);
  line-height: 1.65;
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
  width: 100%;
  max-width: 876px;
}

.services-grid__inner {
  
  display: flex; 
  flex-wrap: wrap; 
  justify-content: center; 
  gap: var(--space-70);
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 200px;
  max-width: 200px;
  transition: transform var(--transition-base);
}

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

.service-card__icon {
  width: 120px;
  height: 120px;
  margin-bottom: var(--space-24);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card__icon img {
  width: auto;
  height: 100%;
  object-fit: contain;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-card-title);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.35;
}

/* ============================================================
   RESPONSIVE — Tablet (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .main-content { padding: 6rem 3rem; gap: 5rem; }
  .hero__text { padding-left: 0; }
  .services-grid__inner { gap: 3rem; }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  .hero { min-height: 100vh; }
  .hero__text { max-width: 100%; gap: 1.5rem; }
  .main-content { padding: 4rem 1.5rem; gap: 3.5rem; }
  .services-grid__inner {  gap: 2.5rem; }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .navbar__inner { padding: 1rem;}
  .navbar__logo-img { width: 90px; }
  .hero { min-height: 100vh; }
  .hero__content { padding: 1.5rem 1rem; }
  .hero__text { gap: 1rem; }
  .hero__scroll { bottom: 20px; }
  .main-content { padding: 3rem 1rem; gap: 3rem; }
  .services-intro { gap: 1.5rem; }
  .service-card {
	  
	  width: 150px;
	  max-width: 150px;
	  
	}
  .services-grid__inner {gap: 2.5rem; }
  .service-card__icon { width: 90px; height: 90px; }
  .footer { padding: 1.25rem 1rem; }
}