/* ===== CM Page Specific Styles ===== */

.cm-hero {
  background:
    linear-gradient(to right, rgba(4,42,12,0.94) 0%, rgba(4,42,12,0.75) 45%, rgba(4,42,12,0.25) 100%),
    url('images/hero-cm.png') center / cover no-repeat;
  position: relative;
}

.cm-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, #f8fdf9);
}

.cm-hero .container {
  position: relative;
  z-index: 1;
}

.cm-hero .hero-text {
  max-width: 580px;
}

/* Section Headers */
.cm-section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 48px;
}

.cm-section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: #1a2332;
  line-height: 1.3;
  margin-bottom: 16px;
}

.cm-section-subtitle {
  font-size: 1.05rem;
  color: #495057;
  line-height: 1.7;
  max-width: 650px;
  margin: 0 auto;
}

/* Full-width visual sections */
.cm-transform-section,
.cm-platform-section,
.cm-capabilities-section,
.cm-audience-section {
  background: #fff;
  padding: 60px 0;
}

.cm-transform-section { background: #f8f9fa; }
.cm-capabilities-section { background: #f8f9fa; }

/* Transform Visual */
.cm-transform-visual {
  max-width: 900px;
  margin: 0 auto;
}

.cm-transform-visual svg {
  width: 100%;
  height: auto;
}

/* Platform Visual */
.cm-platform-visual {
  max-width: 900px;
  margin: 0 auto;
}

.cm-platform-visual svg {
  width: 100%;
  height: auto;
}

/* Capabilities Grid */
.cm-capabilities-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.cm-cap-card {
  background: #fff;
  border: 1.5px solid #e9ecef;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  flex: 0 1 200px;
  min-width: 180px;
  position: relative;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.cm-cap-card:hover {
  box-shadow: 0 8px 32px rgba(26, 35, 50, 0.1);
  border-color: #c87941;
}

.cm-cap-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #c87941;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 16px;
}

.cm-cap-icon {
  margin-bottom: 14px;
}

.cm-cap-icon svg {
  display: block;
  margin: 0 auto;
}

.cm-cap-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a2332;
  margin-bottom: 8px;
}

.cm-cap-card p {
  font-size: 0.88rem;
  color: #495057;
  line-height: 1.6;
}

.cm-cap-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  flex-shrink: 0;
}

/* Audience Visual */
.cm-audience-visual {
  max-width: 600px;
  margin: 0 auto;
}

.cm-audience-visual svg {
  width: 100%;
  height: auto;
}

/* Feature Rows */
.feature-row {
  background: #fff;
}

.feature-row:nth-child(even) {
  background: #f8fdf9;
}

.feature-row-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.feature-row-reverse .feature-row-inner {
  flex-direction: row-reverse;
}

.feature-row-image {
  flex: 1;
}

.feature-row-image svg {
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.feature-row-text {
  flex: 1;
}

.feature-row-text h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.3;
}

.feature-row-text p {
  font-size: 1rem;
  color: #495057;
  line-height: 1.7;
  margin-bottom: 8px;
}

/* Calculator */
.calculator-section {
  background: #f8f9fa;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.calculator-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-field label {
  font-size: 0.88rem;
  font-weight: 500;
  color: #495057;
}

.calc-field input,
.calc-field select {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 10px 14px;
  border: 1.5px solid #dee2e6;
  border-radius: 10px;
  background: #fff;
  color: #212529;
  transition: border-color 0.2s ease;
  outline: none;
}

.calc-field input:focus,
.calc-field select:focus {
  border-color: #2fb147;
  box-shadow: 0 0 0 3px rgba(47, 177, 71, 0.1);
}

.calculator-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.result-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-card.highlight {
  background: rgb(4, 42, 12);
  border-color: rgb(4, 42, 12);
}

.result-card.highlight .result-label {
  color: rgba(255,255,255,0.7);
}

.result-card.highlight .result-value {
  color: #2fb147;
  font-size: 1.5rem;
}

.result-label {
  font-size: 0.9rem;
  color: #495057;
  font-weight: 500;
}

.result-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #212529;
}

/* Responsive */
@media (max-width: 768px) {
  .cm-hero .hero-inner {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .feature-row-inner {
    flex-direction: column;
    gap: 30px;
  }

  .feature-row-reverse .feature-row-inner {
    flex-direction: column;
  }

  .calculator-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cm-capabilities-grid {
    flex-direction: column;
    gap: 20px;
  }

  .cm-cap-arrow {
    transform: rotate(90deg);
    padding: 4px 0;
  }

  .cm-cap-card {
    flex: 0 1 auto;
    width: 100%;
    max-width: 320px;
  }

  .cm-transform-visual svg,
  .cm-platform-visual svg {
    min-height: 180px;
  }

  .cm-section-header {
    margin-bottom: 32px;
  }

  .cm-section-title {
    font-size: 1.35rem;
  }

  .cm-audience-visual svg {
    min-height: 300px;
  }
}

@media (max-width: 480px) {
  .cm-transform-section,
  .cm-platform-section,
  .cm-capabilities-section,
  .cm-audience-section {
    padding: 40px 0;
  }
}
