/* ============================================
   Commercial2 Page CSS - Solar Surge
   Figma-accurate Commercial Solutions page
   ============================================ */

:root {
  --cm2-gradient: linear-gradient(90deg, #69eefd 0%, #efc052 54.33%, #f19231 100%);
  --cm2-navy: #0d192e;
  --cm2-orange: #f19231;
  --cm2-cyan: #69eefd;
}

/* ===== HERO ===== */
.cm2-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  max-height: 1080px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cm2-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cm2-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cm2-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.3) 0%, rgba(37,74,95,0.5) 100%);
}

.cm2-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1208px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.cm2-hero-content h1 {
  text-transform: uppercase;
}

.cm2-hero-small {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 40px);
  line-height: 1.17;
  background: var(--cm2-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cm2-hero-big {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 60px);
  line-height: 1.17;
  background: var(--cm2-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cm2-hero-content p {
  font-size: clamp(1rem, 1.8vw, 30px);
  line-height: 1.38;
  color: #fff;
  max-width: 1180px;
}

.cm2-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: #fff;
  border: 2px solid var(--cm2-cyan);
  border-radius: 73px;
  padding: 5px 20px 5px 5px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 10px;
}

.cm2-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(105, 238, 253, 0.3);
}

.cm2-hero-cta-icon {
  width: 47px;
  height: 47px;
  border-radius: 50%;
}

.cm2-hero-cta span {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #000;
}

/* ===== SHARED ===== */
.cm2-label {
  display: block;
  font-weight: 500;
  font-size: 24px;
  text-transform: uppercase;
  color: var(--cm2-orange);
}

.cm2-label--light {
  color: var(--cm2-orange);
}

.cm2-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 3.5vw, 60px);
  line-height: 1.17;
  color: rgba(13, 25, 46, 0.8);
}

/* ===== THE BUSINESS RISK ===== */
.cm2-risk {
  padding: 114px 0;
}

.cm2-risk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: start;
}

.cm2-risk-left .cm2-heading {
  margin-bottom: 20px;
}

.cm2-risk-text p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--cm2-navy);
  margin-bottom: 4px;
}

.cm2-risk-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cm2-risk-img {
  max-width: 100%;
  height: auto;
}

.cm2-risk-alert {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fffbed;
  border: 2px solid #ff7171;
  border-radius: 19px;
  padding: 20px 30px;
  margin-top: 20px;
}

.cm2-risk-alert-num {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 36px;
  color: #f22;
  flex-shrink: 0;
}

.cm2-risk-alert-text {
  font-weight: 500;
  font-size: 20px;
  color: #f22;
  line-height: 1.3;
}

/* ===== THE DIFFERENCE ===== */
.cm2-difference {
  background: var(--cm2-navy);
  padding: 91px 0 0;
}

.cm2-diff-header {
  text-align: center;
  margin-bottom: 0;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 40px;
}

.cm2-diff-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 3.5vw, 60px);
  line-height: 1;
  color: #fff;
  margin-bottom: 11px;
  white-space: nowrap;
}

.cm2-diff-sub {
  font-size: clamp(1rem, 1.5vw, 26px);
  color: #fff;
  max-width: 922px;
  margin: 0 auto;
}

/* Cards - edge-to-edge */
.cm2-diff-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 40px;
}

.cm2-diff-card {
  position: relative;
  height: 875px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 100px 24px 24px;
}

.cm2-diff-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.cm2-diff-card-body {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cm2-diff-card-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(1.2rem, 1.8vw, 30px);
  background: var(--cm2-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cm2-diff-card-line {
  width: 115px;
  height: 2px;
  background: rgba(255,255,255,0.3);
}

.cm2-diff-card-body p {
  font-size: 16px;
  color: #fff;
  line-height: 1.5;
  max-width: 393px;
}

/* ===== CTA ===== */
.cm2-cta {
  background: var(--cm2-navy);
  padding: 100px 0;
  text-align: center;
}

.cm2-cta-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 60px);
  line-height: 1.04;
  color: #fff;
  max-width: 1320px;
  margin: 0 auto 8px;
}

.cm2-cta-sub {
  font-size: clamp(1rem, 1.5vw, 26px);
  color: #fff;
  margin-bottom: 48px;
}

.cm2-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 400px;
  height: 82px;
  padding: 0 60px;
  background: var(--cm2-gradient);
  border-radius: 73px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #000;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cm2-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(241, 146, 49, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .cm2-diff-card {
    height: 700px;
  }
}

@media (max-width: 1024px) {
  .cm2-hero-content {
    padding: 0 40px;
  }

  .cm2-risk-grid {
    gap: 40px;
  }

  .cm2-diff-cards {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 40px auto 0;
  }

  .cm2-diff-card {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .cm2-hero {
    height: auto;
    min-height: 80vh;
    padding: 120px 0 60px;
  }

  .cm2-hero-content {
    padding: 0 20px;
  }

  .cm2-risk {
    padding: 50px 0;
  }

  .cm2-risk-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cm2-risk-right {
    order: -1;
  }

  .cm2-heading {
    font-size: 1.6rem;
  }

  .cm2-risk-text p {
    font-size: 14px;
  }

  .cm2-risk-alert {
    flex-direction: column;
    text-align: center;
    padding: 16px 20px;
    gap: 8px;
  }

  .cm2-risk-alert-num {
    font-size: 28px;
  }

  .cm2-risk-alert-text {
    font-size: 16px;
  }

  .cm2-diff-card {
    height: 400px;
    padding: 60px 20px 20px;
  }

  .cm2-diff-heading {
    white-space: normal;
    font-size: 1.6rem;
  }

  .cm2-diff-sub {
    font-size: 0.95rem;
  }

  .cm2-difference {
    padding: 60px 0 0;
  }

  .cm2-cta {
    padding: 60px 0;
  }

  .cm2-cta-btn {
    min-width: auto;
    width: 100%;
    max-width: 400px;
    height: 56px;
    font-size: 16px;
    padding: 0 24px;
  }
}

@media (max-width: 480px) {
  .cm2-hero {
    padding: 100px 0 50px;
    min-height: 70vh;
  }

  .cm2-hero-small {
    font-size: 1rem;
  }

  .cm2-hero-big {
    font-size: 1.3rem;
  }

  .cm2-hero-content p {
    font-size: 0.9rem;
  }

  .cm2-hero-cta {
    padding: 4px 16px 4px 4px;
    gap: 10px;
  }

  .cm2-hero-cta-icon {
    width: 38px;
    height: 38px;
  }

  .cm2-hero-cta span {
    font-size: 14px;
  }

  .cm2-label {
    font-size: 14px;
  }

  .cm2-heading {
    font-size: 1.4rem;
  }

  .cm2-risk {
    padding: 40px 0;
  }

  .cm2-diff-card {
    height: 350px;
    padding: 40px 16px 16px;
  }

  .cm2-diff-card-body p {
    font-size: 14px;
  }

  .cm2-cta {
    padding: 40px 0;
  }

  .cm2-cta-heading {
    font-size: 1.4rem;
  }

  .cm2-cta-sub {
    font-size: 0.9rem;
    margin-bottom: 24px;
  }

  .cm2-cta-btn {
    height: 50px;
    font-size: 14px;
  }
}
