/* ==========================================================================
   SERVICE — SAP S/4HANA PAGE
   Dedicated stylesheet; depends on shared tokens defined in style.css
   ========================================================================== */

/* -----------------------------------------------------------------------
   0. SERVICES BANNER + TAB BAR  (shared pattern across all service pages)
   ----------------------------------------------------------------------- */
.svc-banner {
  position: relative;
  min-height: 140px;
  background-image: url('../images/service/Service-SAP-banner.avif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.svc-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.1);
  pointer-events: none;
}

.svc-banner__label {
  position: relative;
  z-index: 2;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: #ffffff;
  text-align: center;
  padding: 28px 0 56px;
}

.svc-tab-bar {
  position: relative;
  z-index: 10;
  margin-top: -14px;       /* pull up so it overlaps the banner slightly */
}

.svc-tab-row {
  display: flex;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(16, 42, 92, 0.22);
  gap: 1.5%;
  width: calc(100% - 4.2%);
  margin: auto;
}

.svc-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, #9BBFF9 100%, #266AD9 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.svc-tab:last-child {
  border-right: none;
}

.svc-tab:hover {
  background: linear-gradient(180deg, #b2d0ff 100%, #7fadf6 100%);
}

.svc-tab--active {
  background: linear-gradient(180deg, #ffffff 0%, #BED7FF 100%);
  box-shadow: 0 14px 26px rgba(16, 42, 92, 0.22);
  position: relative;
  z-index: 2;
}

.svc-tab-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.svc-tab-logo--oracle {
  height: 30px;
}

.svc-tab-logo--staff {
  height: 80px;
}

.svc-tab-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #16305c;
  line-height: 1.25;
  white-space: nowrap;
}

.svc-tab--active .svc-tab-label {
  color: #0f2a5c;
}
img.sap-why-img {
    max-width: 175px;
    margin: auto;
}
/* -----------------------------------------------------------------------
   3D Perspective for below menu
   ----------------------------------------------------------------------- */

.perspective-container {
  width: 100%;
  height: 15px;
  perspective: 50px; /* Adjust this value to make the 3D effect stronger or weaker */
  perspective-origin: center;
}

.box-3d {
  width: 100%;
  height: 100%;
  background:linear-gradient(0deg, #b9d4ff 0%, #a9c9ff 100%);
  transform: rotateX(15deg); /* Example 3D transform */
  transform-style: preserve-3d;
}



/* -----------------------------------------------------------------------
   1. SAP INTRO — "SAP" title + eyebrow lead line
   ----------------------------------------------------------------------- */
.sap-intro {
  padding: 44px 0 8px;
}

.sap-intro__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  color:var(--primary-blue);
  margin-bottom: 12px;
}

.sap-intro__lead {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #374151;
  font-weight: 800;
  max-width: 650px;
}

.sap-intro__lead .accent {
  color: var(--primary-blue);
}

/* -----------------------------------------------------------------------
   2. SAP S/4HANA — RISE WITH SAP  (text + strategy diagram)
   ----------------------------------------------------------------------- */
.sap-rise {
  padding: 20px 0;
}

.sap-rise__grid {
  display: grid;
  grid-template-columns: 1fr 600px;
  gap: 40px;
  align-items: center;
}

.sap-rise__title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 14px;
}

.sap-rise__subtitle {
  font-size: 1.02rem;
  font-weight: 700;
  color: #374151;
  line-height: 1.5;
  margin-bottom: 16px;
}

.sap-rise__desc {
  font-size: 0.94rem;
  line-height: 1.65;
  color: #475467;
  margin-bottom: 14px;
}

.sap-rise__img-col {
  display: flex;
  justify-content: center;
}

.sap-rise__img {
  width: 100%;
  max-width: 440px;
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(16, 42, 92, 0.14));
}

/* -----------------------------------------------------------------------
   3. WHAT CAN AN ERP LIKE SAP PROVIDE — 4 benefit cards on tinted band
   ----------------------------------------------------------------------- */
.sap-benefits {
  padding: 54px 0 60px;
  background: var(--bg-dark-blue);
}

.sap-benefits__head {
  margin-bottom: 30px;
}

.sap-benefits__eyebrow {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #102a5c;
  margin-bottom: 6px;
}

.sap-benefits__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 2.4vw, 1.7rem);
  font-weight: 700;
  color: var(--primary-blue);
}

.sap-benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.sap-benefit-card {
  background: var(--primary-blue);
  background: linear-gradient(160deg, #1a6bdb 0%, #0f4fac 100%);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(16, 42, 92, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sap-benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(16, 42, 92, 0.24);
}

.sap-benefit-card__label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #bfe0ff;
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.sap-benefit-card__text {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #eaf3ff;
}

.sap-benefit-card__text ul {
  margin-top: 6px;
  padding-left: 18px;
  list-style: disc;
}

.sap-benefit-card__text li {
  margin-bottom: 4px;
}

/* -----------------------------------------------------------------------
   4. GLOBAL ECOSYSTEM — full-width process graphic
   ----------------------------------------------------------------------- */
.sap-ecosystem {
  padding: 0 0 50px 0;
  background: var(--bg-dark-blue);
}

.sap-ecosystem__img-wrap {
  display: flex;
  justify-content: center;
}

.sap-ecosystem__img {
  width: 100%;
  max-width: 1080px;
  height: auto;
  border-radius: var(--radius-md);
}

/* -----------------------------------------------------------------------
   5. WHY SHOULD ENTERPRISES GO FOR SAP
   ----------------------------------------------------------------------- */
.sap-why {
  padding: 60px 0 20px;
  text-align: center;
}

.sap-why__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 12px;
}

.sap-why__desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.sap-why__img-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 44px;
}

.sap-why__img {
  width: 100%;
  max-width: 980px;
  height: auto;
}

.sap-why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: left;
}

.sap-why-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sap-why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.sap-why-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.sap-why-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #102a5c;
  margin: 0 0 10px 7px;
  display: inline-block;
}

.sap-why-card__desc {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* -----------------------------------------------------------------------
   6. DIGITALIZATION — headline + 4 image cards
   ----------------------------------------------------------------------- */
.sap-digital {
  padding: 20px 0 60px;
  background: var(--bg-section-about);
  text-align: center;
}

.sap-digital__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 2.2vw, 1.5rem);
  font-weight: 600;
  color: #1d2939;
  margin-bottom: 40px;
}

.sap-digital__title strong {
  color: var(--primary-blue);
  font-weight: 800;
}

.sap-digital__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: left;
}

.sap-digital-card {
  background: var(--primary-blue);
  background: linear-gradient(160deg, #1a6bdb 0%, #0f4fac 100%);
  border-radius: var(--radius-md);
  overflow: hidden;
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(16, 42, 92, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.sap-digital-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(16, 42, 92, 0.24);
}

.sap-digital-card__img-wrap {
  background: rgba(255, 255, 255, 0.08);
}

.sap-digital-card__img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: none;
}

.sap-digital-card__body {
  padding: 18px 18px 22px;
}

.sap-digital-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.2;
}

.sap-digital-card__text {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #dfeaff;
}

.sap-digital-card__text ul {
  padding-left: 16px;
  list-style: disc;
}

.sap-digital-card__text li {
  margin-bottom: 4px;
}

/* -----------------------------------------------------------------------
   7. NUTSHELL + CLOUD DEPLOYMENT MODELS — 2 columns
   ----------------------------------------------------------------------- */
.sap-split {
  padding: 60px 0;
  background: var(--bg-dark-blue);
}

.sap-split__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  text-align: center;
}

.sap-split-col__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 2vw, 1.3rem);
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 8px;
  line-height: 1.35;
}

.sap-split-col__desc { 
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.65;
  margin-bottom: 20px;
  padding-right: 100px;
}

.sap-split-col__img-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.sap-split-col__img {
  width: 100%;
  height: auto;
  display: block;
}



/* -----------------------------------------------------------------------
   8. CLOUD OFFERING — full-width comparison graphic
   ----------------------------------------------------------------------- */
.sap-cloud-offer {
  padding: 10px 0 60px;
  background: var(--bg-light-blue);
}
.sap-cloud-offer-col{
  max-width: 700px;
  text-align: center;
  margin: auto;
  padding: 40px 0 0 0;
}
.sap-cloud-offer__title{
  font-family: var(--font-heading);
  font-size: clamp(2rem, 2vw, 1.3rem);
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 8px;
  line-height: 1.35;
}
.sap-cloud-offer__img-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.sap-cloud-offer__img {
  width: 100%;
  height: auto;
  display: block;
}

/* -----------------------------------------------------------------------
   9. RESPONSIVE BREAKPOINTS
   ----------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .sap-rise__grid {
    grid-template-columns: 1fr 380px;
  }

  .sap-benefits__grid,
  .sap-why__grid,
  .sap-digital__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 840px) {
  .svc-tab-label {
    display: none;
  }

  .sap-rise__grid {
    grid-template-columns: 1fr;
  }

  .sap-rise__img-col {
    order: -1;
  }

  .sap-split__grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

@media (max-width: 600px) {
  .svc-banner__label {
    font-size: 1.25rem;
    letter-spacing: 2px;
  }
/*-----Service menus----------*/
  .svc-tab {
    padding: 12px 8px;
  }

  .sap-benefits__grid,
  .sap-why__grid,
  .sap-digital__grid {
    grid-template-columns: 1fr;
  }

  .sap-intro__title {
    font-size: 1.7rem;
  }
  .sap-split-col__title, .sap-split-col__desc, .sap-split-col__img-wrap {
    text-align: center; 
  }
  .sap-split-col__desc{
    padding-right: 0;
  }
  .svc-tab-logo--staff, .svc-tab-logo{
    height: 40px;
  }
}
