/* ===== ERP Services Page Styles ===== */

/* Ensure section titles display as inline-block for proper gradient */
.erp-modules-section .tp-section-title,
.erp-why-section .tp-section-title,
.erp-hero-section .tp-section-title,
.erp-zatca-section .tp-section-title {
  display: inline-block;
}

.erp-modules-section .row.text-center .col-12,
.erp-why-section .row.text-center .col-12 {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hero Section → moved to service-common.css */

/* Achievement Stats Cards */
.erp-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* gap: 20px; */ /* old size */
  gap: 16px;
  /* margin-bottom: 40px; */ /* old size */
  margin-bottom: 30px;
  margin-top: 10px;
  /* padding: 0; */ /* old - no padding */
  padding: 0 60px;
}
.erp-stat-card {
  background: #fff;
  border: 1px solid #eef0f4;
  /* border-radius: 18px; */ /* old size */
  border-radius: 14px;
  /* padding: 28px 22px; */ /* old size */
  padding: 20px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}
.erp-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* height: 4px; */ /* old size */
  height: 3px;
  background: linear-gradient(90deg, #ce403d, #e8635f);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.erp-stat-card:hover {
  border-color: rgba(206, 64, 61, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(206, 64, 61, 0.12);
}
.erp-stat-card:hover::before {
  transform: scaleX(1);
}
.erp-stat-icon-wrap {
    /* width: 42px; */ /* old small size */
    width: 56px;
    /* height: 42px; */ /* old small size */
    height: 56px;
    background: rgba(206, 64, 61, 0.1);
    /* border-radius: 11px; */ /* old small size */
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin: 0 auto 10px; */ /* old small size */
    margin: 0 auto 14px;
    transition: all 0.3s ease;
  }
.erp-stat-card:hover .erp-stat-icon-wrap {
  background: #ce403d;
}
.erp-stat-icon-wrap svg {
    /* width: 20px; */ /* old small size */
    width: 28px;
    /* height: 20px; */ /* old small size */
    height: 28px;
  stroke: #ce403d;
  transition: stroke 0.3s ease;
}
.erp-stat-card:hover .erp-stat-icon-wrap svg {
  stroke: #fff;
}
.erp-stat-number {
    /* font-size: 28px; */ /* old small size */
    font-size: 38px;
    font-weight: 700;
    color: #ce403d;
    font-family: var(--tp-ff-platform);
    line-height: 1.2;
    /* margin-bottom: 4px; */ /* old small size */
    margin-bottom: 6px;
  }
  .erp-stat-label {
    /* font-size: 13px; */ /* old small size */
    font-size: 16px;
    color: #636368;
    font-family: p_r;
    letter-spacing: 0.3px;
  }
@media (max-width: 1199px) {
  .erp-stats-row {
    padding: 0 30px;
  }
}
@media (max-width: 991px) {
  .erp-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 0 20px;
  }
}
@media (max-width: 767px) {
    .erp-stats-row {
      padding: 0 10px;
      gap: 12px;
    }
    .erp-stat-card {
      padding: 16px 12px;
    }
    .erp-stat-number {
      font-size: 30px;
    }
    .erp-stat-label {
      font-size: 14px;
    }
    .erp-stat-icon-wrap {
      width: 46px;
      height: 46px;
      margin: 0 auto 10px;
    }
    .erp-stat-icon-wrap svg {
      width: 22px;
      height: 22px;
    }
  }
  @media (max-width: 575px) {
    .erp-stats-row {
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
      padding: 0 5px;
    }
    .erp-stat-card {
      padding: 14px 10px;
      border-radius: 10px;
    }
    .erp-stat-number {
      font-size: 26px;
    }
    .erp-stat-label {
      font-size: 13px;
    }
    .erp-stat-icon-wrap {
      width: 40px;
      height: 40px;
      border-radius: 11px;
      margin: 0 auto 8px;
    }
    .erp-stat-icon-wrap svg {
      width: 20px;
      height: 20px;
    }
  }

/* ERP Modules Section */
.erp-modules-section {
  background: #f8f9fb;
  position: relative;
}
.erp-modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 991px) {
  .erp-modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575px) {
  .erp-modules-grid {
    grid-template-columns: 1fr;
  }
}
/* Module Card → moved to service-common.css */

/* Process Section */
.erp-process-section {
  background: #ffffff;
  position: relative;
}
.erp-process-wrapper {
  display: flex;
  align-items: center;
  gap: 60px;
}
.erp-process-content {
  flex: 1;
}
.erp-process-header {
  margin-bottom: 40px;
}
.erp-section-title {
  font-size: 36px;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 15px;
  color: #141414;
  font-family: var(--tp-ff-platform);
  background-image: linear-gradient(
    90deg,
    #ce403d 0%,
    #ce403d 40%,
    #2a2f36 50%,
    #ce403d 60%,
    #ce403d 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.erp-process-subtitle {
  font-size: 16px;
  line-height: 1.7;
  color: #636368;
  font-family: p_r;
}
.erp-process-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.erp-process-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eef0f4;
}
.erp-process-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.erp-process-number {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: linear-gradient(135deg, #ce403d 0%, #b33835 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  font-family: p_m;
}
.erp-process-info {
  flex: 1;
}
.erp-process-title {
  font-size: 20px;
  font-weight: 600;
  color: #141414;
  margin-bottom: 10px;
  font-family: p_m;
}
.erp-process-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #636368;
  font-family: p_r;
  margin: 0;
}
.erp-process-image {
  flex: 0 0 45%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.erp-process-svg {
  width: 100%;
  max-width: 400px;
  height: auto;
}

/* ZATCA Compliance Section */
.erp-zatca-section {
  background: #ffffff;
  position: relative;
}
.erp-zatca-header {
  margin-bottom: 28px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.erp-zatca-header .tp-section-title {
  margin-bottom: 10px;
}
.erp-zatca-subtitle {
  font-size: 15px;
  line-height: 1.6;
  color: #636368;
  font-family: p_r;
  margin: 0;
}
.erp-zatca-content-row {
  margin-top: 0;
}
.erp-zatca-text {
  font-size: 16px;
  line-height: 1.75;
  color: #636368;
  font-family: p_r;
  margin-bottom: 20px;
}
.erp-zatca-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.erp-zatca-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #1e293b;
  font-family: p_r;
  margin-bottom: 12px;
}
.erp-zatca-list li:last-child {
  margin-bottom: 0;
}
.erp-zatca-list li svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  stroke: #ce403d;
}
.erp-zatca-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 100%;
}
.erp-zatca-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #f8f9fb;
  border: 1px solid #eef0f4;
  border-radius: 16px;
  padding: 24px 26px;
  transition: all 0.35s ease;
}
.erp-zatca-feature-card:hover {
  border-color: rgba(206, 64, 61, 0.4);
  box-shadow: 0 12px 32px rgba(206, 64, 61, 0.15);
  transform: translateY(-4px);
  background: #fff;
}
.erp-zatca-feature-card:hover .erp-zatca-feature-icon {
  background: #ce403d;
}
.erp-zatca-feature-card:hover .erp-zatca-feature-icon svg {
  stroke: #fff;
}
.erp-zatca-feature-card:hover .erp-zatca-feature-title {
  color: #ce403d;
}
.erp-zatca-feature-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: rgba(206, 64, 61, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s ease;
}
.erp-zatca-feature-icon svg {
  width: 26px;
  height: 26px;
  stroke: #ce403d;
  transition: stroke 0.35s ease;
}
.erp-zatca-feature-body {
  flex: 1;
  min-width: 0;
}
.erp-zatca-feature-title {
  font-size: 18px;
  font-weight: 600;
  color: #141414;
  margin-bottom: 8px;
  font-family: p_m;
  transition: color 0.35s ease;
}
.erp-zatca-feature-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #636368;
  font-family: p_r;
  margin: 0;
}
@media (max-width: 991px) {
  .erp-zatca-features {
    margin-top: 16px;
  }
  .erp-zatca-header {
    margin-bottom: 22px;
  }
}

/* Why Choose Section */
.erp-why-section {
  background: #f8f9fb;
  position: relative;
  overflow: hidden;
}
.erp-why-title {
  font-family: var(--tp-ff-platform);
  position: relative;
  z-index: 2;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
.erp-why-subtitle {
  color: #636368;
  font-family: p_r;
  font-size: 18px;
  max-width: 750px;
  margin: 0 auto 60px;
  line-height: 1.7;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
.erp-why-item {
  background: #fff;
  border-radius: 20px;
  padding: 35px 28px;
  height: 100%;
  border: 1px solid #eef0f4;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}
.erp-why-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(206, 64, 61, 0.08) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.erp-why-item:hover {
  border-color: rgba(206, 64, 61, 0.3);
  transform: translateY(-8px) !important;
  box-shadow: 0 15px 40px rgba(206, 64, 61, 0.12);
}
.erp-why-item:hover::before {
  opacity: 1;
}
.erp-why-icon {
  width: 56px;
  height: 56px;
  background: rgba(206, 64, 61, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}
.erp-why-item:hover .erp-why-icon {
  background: #ce403d;
}
.erp-why-icon svg {
  width: 28px;
  height: 28px;
  stroke: #ce403d;
  transition: stroke 0.3s ease;
}
.erp-why-item:hover .erp-why-icon svg {
  stroke: #fff;
}
.erp-why-item-title {
  font-size: 19px;
  font-weight: 600;
  color: #141414;
  margin-bottom: 12px;
  font-family: p_m;
  position: relative;
  z-index: 2;
}
.erp-why-item-text {
  font-size: 15px;
  color: #636368;
  line-height: 1.7;
  font-family: p_r;
  position: relative;
  z-index: 2;
}

/* CTA Section → moved to service-common.css */

/* Responsive */
@media (max-width: 991px) {
  /* Hero responsive rules → moved to service-common.css */
  .erp-process-wrapper {
    flex-direction: column;
    gap: 40px;
  }
  .erp-process-image {
    flex: none;
    width: 100%;
    order: -1;
  }
  .erp-section-title {
    font-size: 30px;
  }
}
@media (max-width: 767px) {
  /* Hero & CTA responsive rules → moved to service-common.css */
  .erp-section-title {
    font-size: 26px;
  }
  .erp-process-item {
    flex-direction: column;
    gap: 15px;
  }
  .erp-process-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 16px;
  }
}
/* @media (max-width: 480px) → all rules were hero-related, moved to service-common.css */
