/* ============================================================
   Company Profile — frontend.css
   ============================================================ */

/* Base */
.cp-row {
  max-width: 1400px;
  position: relative;
  overflow: visible;
  margin: auto;
}

.cp-row *,
.cp-row *::before,
.cp-row *::after {
  box-sizing: border-box;
}

.cp-skew {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 1;
  transform-origin: left top;
}

.cp-inner {
  position: relative;
  z-index: 2;
}

.cp-title {
  padding-top: 18px;
  position: relative;
  line-height: 1.4;
  margin: 0;
  font-size: 38px;
  font-weight: 700;
}

.cp-desc-col {
  text-align: justify;
}

.cp-desc-col p {
  margin: 0 0 1em 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.cp-divider {
  width: 100%;
  border-bottom: 1px solid #d9d9d9;
}

/* Stats */
.cp-stat-num {
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.cp-stat-label {
  font-weight: bold;
  text-align: center;
  margin-top: 8px;
  line-height: 1.4;
}


/* ===== Large Desktop ≤ 1440px ===== */
@media screen and (max-width: 1440px) {
  .cp-inner {
    padding-left: 4%;
    padding-right: 4%;
  }
}

/* ===== Small Desktop ≤ 1280px ===== */
@media screen and (max-width: 1280px) {
  .cp-title {
    font-size: 28px !important;
  }
}

/* ===== Tablet Landscape ≤ 1024px ===== */
@media screen and (max-width: 1024px) {
  .cp-title {
    font-size: 24px !important;
    margin-bottom: 24px !important;
  }
  .cp-desc-col,
  .cp-desc-col p {
    font-size: 15px !important;
  }
}

/* ===== Tablet Portrait ≤ 800px ===== */
@media screen and (max-width: 800px) {
  .cp-row {
    padding: 20px 0 !important;
  }
  .cp-inner {
    padding-bottom: 20px;
  }
  .cp-title {
    padding-top: 0;
    font-size: 20px !important;
    line-height: 1.3;
    margin-bottom: 16px !important;
  }
  /* Force single column on tablet */
  .cp-desc-row {
    flex-direction: column !important;
    gap: 0 !important;
  }
  .cp-desc-col {
    width: 100% !important;
    text-align: left;
    padding: 0;
  }
  /* Divider */
  .cp-divider {
    margin-bottom: 0;
  }
  /* Stats grid */
  .cp-stats-grid {
    margin-bottom: 0;
  }
  .cp-stat-item {
    width: 25% !important;
  }
  .cp-stat-num span:first-child {
    font-size: 28px !important;
  }
  .cp-stat-num span:last-child {
    font-size: 12px !important;
  }
  .cp-stat-label {
    font-size: 11px !important;
    margin-top: 4px;
  }
}

/* ===== Large Phone ≤ 640px ===== */
@media screen and (max-width: 640px) {
  .cp-title {
    font-size: 18px !important;
  }
  .cp-desc-col,
  .cp-desc-col p {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }
  .cp-stat-num span:first-child {
    font-size: 26px !important;
  }
  .cp-stat-label {
    font-size: 10px !important;
  }
}

/* ===== Phone ≤ 480px ===== */
@media screen and (max-width: 480px) {
  .cp-stat-item {
    width: 50% !important;
    margin-bottom: 16px;
  }
  .cp-stat-num span:first-child {
    font-size: 24px !important;
  }
  .cp-desc-col,
  .cp-desc-col p {
    font-size: 13px !important;
  }
}

/* ===== Small Phone ≤ 375px ===== */
@media screen and (max-width: 375px) {
  .cp-title {
    font-size: 16px !important;
  }
  .cp-stat-num span:first-child {
    font-size: 20px !important;
  }
  .cp-stat-num span:last-child {
    font-size: 10px !important;
  }
  .cp-desc-col,
  .cp-desc-col p {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }
}
