/* ==========================================================================
   Axis Business Insights — Home Stylesheet (page-specific styles)
   base.css loaded first for shared reset, navbar, footer, hero, animations.
   ========================================================================== */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Colors */
  --color-primary:        #334472;
  --color-primary-dark:   #01113c;
  --color-primary-deeper: #00103d;
  --color-accent-light:   #e6eaf6;
  --color-accent-mid:     #b3bede;
  --color-accent-muted:   #6c83af;
  --color-white:          #ffffff;
  --color-overlay:        rgba(51, 68, 114, 0.28);

  /* Font Sizes — clamp for fluid scaling */
  --fs-h1:    clamp(1.75rem, 2.5vw, 2.25rem);
  --fs-h2:    clamp(2rem, 3.3vw, 3rem);
  --fs-h3:    clamp(1.25rem, 1.7vw, 1.5rem);
  --fs-h3-sm: clamp(1.15rem, 1.5vw, 1.375rem);
  --fs-body:  clamp(1rem, 1.39vw, 1.25rem);
  --fs-small: 0.875rem;

  /* Spacing */
  --space-20:  1.25rem;
  --space-21:  1.3125rem;
  --space-36:  2.25rem;
  --space-40:  2.5rem;
  --space-52:  3.25rem;
  --space-72:  4.5rem;
  --space-83:  5.1875rem;
  --space-107: 6.6875rem;
  --space-111: 6.9375rem;
  --space-120: 7.5rem;
  --space-143: 8.9375rem;
  --space-160: 10rem;

  /* Border Radius */
  --radius-sm: 0.625rem;
  --radius-lg: 1.5625rem;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);

  /* Widths */
  --content-lg: 75rem;
}

/* ---------- BASE OVERRIDE ---------- */
body {
  color: var(--color-primary);
  background: var(--color-primary);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-10) var(--space-24);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-body);
  line-height: normal;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
  border: 1.5px solid transparent;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
}
.btn--primary:focus-visible {
  outline: 2px solid var(--color-accent-light);
  outline-offset: 3px;
}
.btn--primary:active {
  transform: scale(0.97);
}

.btn--outline {
  background: transparent;
  color: var(--color-accent-muted);
  border-color: var(--color-accent-muted);
}
.btn--outline:hover {
  background: rgba(108, 131, 175, 0.12);
}
.btn--outline:focus-visible {
  outline: 2px solid var(--color-accent-muted);
  outline-offset: 3px;
}
.btn--outline:active {
  transform: scale(0.97);
}

/* ---------- NAVBAR OVERRIDES ---------- */
/* Underline animation on nav links */
.navbar__link {
  position: relative;
}

.navbar__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-accent-light);
  transition: width 0.3s ease;
}

.navbar__link:hover::after,
.navbar__link:focus-visible::after {
  width: 100%;
}

/* Contact button — no underline, white hover */
.navbar__link--btn::after {
  display: none;
}

.navbar__link--btn:hover {
  background: var(--color-white);
}

/* Toggle button size override */
.navbar__toggle {
  width: 36px;
  height: 36px;
  padding: 4px;
}

.navbar__toggle-bar {
  width: 100%;
  height: 2.5px;
}

/* ---------- HERO OVERRIDES ---------- */
/* Home hero: centered logo + divider + heading (flex row layout) */
.hero {
  align-items: center;
  justify-content: center;
}

.hero__gradient {
  background: linear-gradient(to top, var(--color-primary-deeper) 0%, rgba(0, 0, 0, 0) 60%);
}

.hero__content {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--space-52);
  padding: 0 var(--space-30);
  flex: unset;
  width: auto;
  margin: 0;
}

.hero__logo-mark img {
  width: clamp(200px, 31vw, 448px);
  height: auto;
}

.hero__divider {
  flex-shrink: 0;
  width: 2px;
  height: 222px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__divider img {
  width: 2px;
  height: 222px;
  object-fit: fill;
}

.hero__heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-h1);
  color: var(--color-white);
  line-height: normal;
  max-width: 440px;
}

/* ==========================================================================
   WHAT WE DO
   ========================================================================== */
.what-we-do {
  background: var(--color-primary-dark);
  padding: 8rem 4rem;
}

.what-we-do__inner {
   
  width: 900px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: var(--space-83);
}

.what-we-do__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-h2);
  color: var(--color-accent-light);
  white-space: nowrap;
  flex-shrink: 0;
}

.what-we-do__text {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-accent-light);
  line-height: 1.6;
  max-width: 613px;
}

.what-we-do__text p + p {
  margin-top: 1.25em;
}

/* ==========================================================================
   FEATURED PRODUCTS
   ========================================================================== */
.featured-products {
  background: var(--color-primary);
  padding: 8rem clamp(1.5rem, 7.8vw, 7rem);
}

.featured-products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-21);
  max-width: 1215px;
  margin: 0 auto;
}

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

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

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

.info-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-h3);
  color: var(--color-primary);
  line-height: normal;
  width: 100%;
}

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

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services {
  background: var(--color-white);
  padding: 8rem  clamp(1.5rem, 7.8vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-120);
}

.services__header {
  text-align: center;
}

.services__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-h2);
  color: var(--color-primary);
  margin-bottom: var(--space-16);
}

.services__subtitle {
  font-family: var(--font-body);
  font-size: var(--fs-h3);
  color: var(--color-primary);
  max-width: 544px;
  margin: 0 auto;
  line-height: 1.5;
}

.services__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  max-width: 1340px;
  width: 100%;
}

.service-item {
  width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-8);
  transition: transform 0.3s ease;
}

.service-item:hover {
  /*transform: translateY(-4px);*/
}

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

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

.service-item__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-h3-sm);
  color: var(--color-primary);
  line-height: normal;
}

.services__cta {
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   AI SECTION
   ========================================================================== */
.ai-section {
  position: relative;
  background: var(--color-accent-light);
  overflow: hidden;
}

.ai-section__bg {
  position: absolute;
  inset: 0;
}

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

.ai-section__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-72);
  padding: 8rem  clamp(1.5rem, 7.8vw, 7rem);
  max-width: 780px;
}

.ai-section__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-h2);
  color: var(--color-primary);
  line-height: normal;
  max-width: 584px;
}

.ai-section__text {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-primary);
  line-height: 1.6;
  max-width: 537px;
}

.ai-section__text p + p {
  margin-top: 1.25em;
}

.ai-section__buttons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-left: var(--space-10);
}

/* ==========================================================================
   THIRD-PARTY PRODUCTS
   ========================================================================== */
.tpp-section {
  background: var(--color-white);
  padding: 8rem  clamp(1.5rem, 7.8vw, 7rem);
}

.tpp-section__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 6vw, 5rem);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 7rem;
}

.tpp-section__blocks {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--space-36) - 3px);
  width: 30%;
  flex-shrink: 0;
}

.key-area-card {
  background: linear-gradient(to top, var(--color-primary), var(--color-accent-mid));
  border-radius: var(--radius-lg);
  min-height: 114px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-28) var(--space-28);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.key-area-card:hover {
  /*transform: translateY(-3px);*/
}

.key-area-card__text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-h3);
  color: var(--color-white);
  text-align: center;
  line-height: normal;
}

.tpp-section__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-40);
  max-width: 50%;
}

.tpp-section__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-h2);
  color: var(--color-primary);
  line-height: normal;
}

.tpp-section__text {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-primary);
  line-height: 1.6;
  max-width: 537px;
}

.tpp-section__text p + p {
  margin-top: 1.25em;
}

.tpp-section__buttons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-left: var(--space-10);
}


/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
  
  .hero {
    min-height: 100vh;
  }

  .hero__content {
    gap: var(--space-30);
  }

  .hero__divider {
    height: 140px;
  }

  .hero__divider img {
    height: 140px;
  }

  .what-we-do__inner {
    flex-direction: column;
    gap: var(--space-40);
    text-align: center;
	width:100%
  }

  .what-we-do__text {
    max-width: 100%;
  }

  .featured-products__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services__grid {
    gap: var(--space-16);
  }

  .service-item {
    width: 230px;
  }

  .ai-section__content {
    max-width: 100%;
    margin-left: 0;
  }

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

  .tpp-section__inner {
    flex-direction: column-reverse;
    text-align: center;
  }

  .tpp-section__blocks {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    max-width: 640px;
  }

  .tpp-section__content {
    max-width: 100%;
    align-items: center;
  }

  .tpp-section__text {
    max-width: 100%;
  }

  .tpp-section__buttons {
    justify-content: center;
    padding-left: 0;
  }

  .footer__inner {
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  /* Nav background override (home uses darker shade) */
  .navbar__nav {
    background: var(--color-primary-dark);
    max-width: 320px;
    height: 100dvh;
  }

  /* Contact button spacing */
  .navbar__link--btn {
    margin-top: var(--space-16);
  }

  /* Hero */
  .hero {
    min-height: 100vh;
  }

  .hero__content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-24);
    padding: 0 var(--space-20);
    flex: unset;
    width: auto;
    margin: 0;
  }

  .hero__divider {
    width: 160px;
    height: 2px;
    transform: none;
  }

  .hero__divider img {
    width: 160px;
    height: 2px;
    object-fit: fill;
  }

  .hero__heading {
    font-size: clamp(1.5rem, 5vw, 2rem);
    max-width: 100%;
  }

  /* What We Do */
  .what-we-do {
    padding: var(--space-72) var(--space-24);
  }

  /* Featured Products */
  .featured-products {
    padding: var(--space-72) var(--space-20);
  }

  .featured-products__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  /* Services */
  .services {
    padding: var(--space-72) var(--space-20);
    gap: var(--space-52);
  }

  .services__grid {
    flex-direction: column;
    align-items: center;
  }

  .service-item {
    width: 100%;
    max-width: 280px;
  }

  /* AI Section */
  .ai-section {
    min-height: auto;
  }

  .ai-section__content {
    max-width: 100%;
    margin-left: 0;
    padding: var(--space-72) var(--space-24);
    gap: var(--space-40);
  }

  .ai-section__buttons {
    flex-direction: column;
    gap: var(--space-16);
    padding-left: 0;
  }

  .tpp-section__inner{
	padding: 0 0;
  }

  /* TPP Section */
  .tpp-section {
    padding: var(--space-72) var(--space-20);
  }

  .tpp-section__blocks {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .tpp-section__buttons {
    flex-direction: column;
    gap: var(--space-16);
    padding-left: 0;
  }
}

/* Small Mobile (≤ 320px) */
@media (max-width: 320px) {
  .hero__logo-mark img {
    width: 180px;
  }

  .hero__heading {
    font-size: 1.35rem;
  }

  .what-we-do__title {
    font-size: 1.75rem;
  }

  .info-card {
    padding: var(--space-20);
  }

  .service-item__icon-wrap {
    width: 80px;
    height: 80px;
  }
}
