/* =========================================================================
   services.css  (load immediately after index.css)
   ========================================================================= */

/* --------------------------------------------------------
   1)  HERO SECTION (uses hero.png as background)
   -------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('hero.png') center/cover no-repeat;
  filter: brightness(.7) grayscale(.1);
}
.hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 50vh;
  background: rgba(23, 28, 50, .84);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
  color: #F2F1E5;
  padding: 3rem 2rem;
}
.hero-overlay h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: .02em;
}
.hero-overlay .hero-sub {
  font-size: 1.1rem;
  max-width: 740px;
  line-height: 1.6;
}

/* --------------------------------------------------------
   2)  SERVICES GRID
   -------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;            /* horizontal gap */
  row-gap: 3.5rem;      /* vertical gap */
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Force exactly 4 columns on wider screens */
@media (min-width: 1050px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* --------------------------------------------------------
   3)  SERVICE ENTRY CARD
   -------------------------------------------------------- */
.service-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  text-align: center;
  /* Stretch to equal height within its row */
  height: 100%;
}
.service-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
}
.service-entry h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #171C32;
  margin: 0.5rem 0;
}
.service-entry p {
  font-size: 1rem;
  color: #232949;
  line-height: 1.7;
  flex: 1;              /* pushes the button to bottom */
  margin: 0 0 1rem;
}
.service-entry .cta-btn.small {
  font-size: 0.92rem;
  padding: 0.5rem 1.4rem;
  border-radius: 999px;
  background-color: #171C32;
  color: #ffffff;
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
  margin-top: auto;     /* align button at bottom */
}
.service-entry .cta-btn.small:hover {
  background-color: #F2F1E5;
  color: #171C32;
  transform: translateY(-2px) scale(1.04);
}

/* --------------------------------------------------------
   4)  “Why Choose Sanober Consultancy?” SECTION
   --- (uses background3.png + navy overlay)
   -------------------------------------------------------- */
.why-choose {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}
.why-choose .overlay {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(23, 28, 50, 0.78);
  z-index: 1;
}
.why-choose .container {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2.4rem;
}
.why-choose .section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-align: center;
  color: #F2F1E5;
}
.why-choose p {
  font-size: 1.05rem;
  color: #F2F1E5;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* --------------------------------------------------------
   5)  CTA BANNER (“Ready to Elevate Your Financial Strategy?”)
   -------------------------------------------------------- */
.cta-wide {
  background: #232949;
  color: #F2F1E5;
  text-align: center;
  padding: 5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.cta-wide h2 {
  font-size: 2.05rem;
  font-weight: 800;
}
.cta-wide p {
  font-size: 1.07rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}
.cta-wide .outline-pill {
  background: #fff;
  color: #171C32;
  border: 2px solid #171C32;
  transition: background-color .18s ease, transform .18s ease;
}
.cta-wide .outline-pill:hover {
  background: #171C32;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}

/* --------------------------------------------------------
   6)  REVEAL ANIMATION (triggered on load/scroll)
   -------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.active {
  opacity: 1;
  transform: none;
}
.reveal.slide-up {
  transition-delay: .15s;
}

/* --------------------------------------------------------
   7)  RESPONSIVE ADJUSTMENTS (≤ 840px)
   -------------------------------------------------------- */
@media (max-width: 840px) {
  .services-grid {
    display: grid;
    grid-template-columns: 1fr !important; /* stack one per row */
    gap: 2rem;
    row-gap: 2.5rem;
  }
  .service-entry {
    padding: 0;
  }
  .hero-overlay {
    padding: 2rem 1rem;
  }
  .cta-wide {
    padding: 3rem 1rem;
  }
  .cta-wide h2 {
    font-size: 1.8rem;
  }
  .cta-wide p {
    font-size: 1rem;
  }
  .cta-wide .outline-pill {
    font-size: 1rem;
    padding: 0.9rem 2rem;
  }
}

/* --------------------------------------------------------
   8)  CENTER SERVICES GRID WITH “EDGE” SPACE ON LARGE SCREENS
   --------------------------------------------------------
   On desktop (≥1200px), make the grid occupy 80vw centered
=========================================================== */
@media (min-width: 1200px) {
  .services-grid {
    position: relative;
    width: 80vw;               /* occupy 80% of viewport */
    left: 50%;
    transform: translateX(-50%); /* center that 80vw block */
    padding: 0 2.4rem;          /* restore container gutter inside */
  }
}
/* Revert to normal container behavior below 1200px */
@media (max-width: 1199px) {
  .services-grid {
    position: relative;
    width: auto;
    left: 0;
    transform: none;
    padding: 0;
  }
}
