/* Klap Business Maintenance - FLEX ONLY
   - no CSS grid
   - no global min-width/min-height lock
   - no section-level absolute positioning
   - scoped to .klap-business-maintenance
*/


/* =========================================================
   01. Root variables / page wrapper
   ========================================================= */

.klap-business-maintenance {
  --kbm-green: #005820;
  --kbm-green-bright: #00a651;
  --kbm-lime: #98da77;
  --kbm-ink: #0d1728;
  --kbm-muted: #5c6470;
  --kbm-border: #e8eaed;
  --kbm-bg-soft: #f8f8f8;
  --kbm-bg-soft-2: #f5f6f8;
  --kbm-radius: 24px;
  --kbm-container: 1120px;
  --kbm-font: "Plus Jakarta Sans", Helvetica, Arial, sans-serif;
  background: #fff;
  color: var(--kbm-ink);
  font-family: var(--kbm-font);
  overflow: hidden;
}


/* =========================================================
   02. Global / scoped reset
   ========================================================= */

* {
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

.site-switchers {
  display: none !important;
}

.klap-business-maintenance *,
.klap-business-maintenance *::before,
.klap-business-maintenance *::after {
  box-sizing: border-box;
}

.klap-business-maintenance h1,
.klap-business-maintenance h2,
.klap-business-maintenance h3,
.klap-business-maintenance p,
.klap-business-maintenance blockquote {
  margin: 0;
  font-family: inherit;
}

.klap-business-maintenance img {
  display: block;
  max-width: 100%;
  height: auto;
}

.klap-business-maintenance a {
  color: inherit;
  text-decoration: none;
}


/* =========================================================
   03. Shared layout utilities and components
   ========================================================= */

.kbm-container {
  width: min(var(--kbm-container), calc(100% - 48px));
  margin-inline: auto;
}

.kbm-eyebrow,
.kbm-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--kbm-green);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.kbm-eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  flex: 0 0 20px;
  border-radius: 999px;
  background: currentColor;
}

.kbm-label {
  display: block;
  font-size: 14px;
  letter-spacing: 2.5px;
}

.kbm-section-head {
  margin-bottom: 34px;
}

.kbm-section-head-center {
  text-align: center;
}

.kbm-section-head-center .kbm-label {
  text-align: center;
}

.kbm-section-head h2,
.kbm-section-copy h2,
.kbm-trust h2,
.kbm-final-card h2 {
  color: var(--kbm-ink);
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.15;
}

.kbm-section-copy {
  flex: 0 0 330px;
  max-width: 380px;
}

.kbm-section-copy > p:not(.kbm-label) {
  margin-top: 18px;
  color: var(--kbm-muted);
  font-size: 15px;
  line-height: 1.65;
}

.kbm-split {
  display: flex;
  align-items: center;
  gap: 35px;
}

.kbm-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.kbm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}

.kbm-btn:hover {
  transform: translateY(-1px);
  color: #005820;
}

.kbm-btn-primary {
  color: #fff !important;
  background: var(--kbm-green);
  box-shadow: 0 2px 8px rgba(0, 166, 81, .25);
}

.kbm-btn-secondary {
  color: var(--kbm-ink);
  background: #fff;
  border-color: #d9dde3;
}

.kbm-btn-light {
  color: var(--kbm-green);
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
}


/* =========================================================
   04. Hero
   ========================================================= */

.kbm-hero {
  position: relative;
  padding: 10px 0 34px;
  background: #fff;
}

.kbm-hero-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 510px;
  overflow-x: clip;
}

.kbm-hero-content {
  position: relative;
  z-index: 2;
  flex: 0 0 500px;
  max-width: 560px;
}

.kbm-hero-title {
  max-width: 590px;
  color: var(--kbm-ink);
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -2px;
  padding: 10px 0 20px;
}

.kbm-hero-text {
  margin: 24px 0 42px;
  max-width: 465px;
  color: var(--kbm-muted);
  font-size: 17px;
  line-height: 1.65;
  padding-bottom: 28px;
}

.kbm-hero-media {
  position: absolute;
  right: 0px;
  z-index: 1;
  width: 87%;
  overflow: hidden;
  pointer-events: none;
}

.kbm-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.kbm-hero-media::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 15%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to top,
    #fff 0%,
    rgba(255, 255, 255, 0.85) 35%,
    rgba(255, 255, 255, 0) 100%
  );
}
.kbm-hero-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 15%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    #fff 0%,
    rgba(255, 255, 255, 0.85) 35%,
    rgba(255, 255, 255, 0) 100%
  );
}

.kbm-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}


/* =========================================================
   05. Benefits strip
   ========================================================= */

.kbm-benefits {
  position: relative;
  z-index: 3;
  margin-top: -10px;
  padding-bottom: 70px;
}

.kbm-benefits-card {
  display: flex;
  align-items: stretch;
  min-height: 75px;
  overflow: hidden;
  border: 1px solid var(--kbm-border);
  border-radius: var(--kbm-radius);
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .10);
}

.kbm-benefit-item {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 0;
  min-width: 0;
  padding: 18px 22px;
  border-right: 1px solid var(--kbm-border);
}

.kbm-benefit-item:last-child {
  border-right: 0;
}

.kbm-benefit-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  object-fit: contain;
}

.kbm-benefit-item strong {
  color: var(--kbm-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}


/* =========================================================
   06. Shared card rows / reusable cards
   Used by: Why, Equipment, Use cases, Impact rows
   ========================================================= */

.kbm-card-row,
.kbm-product-row,
.kbm-stat-row {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1 1 auto;
}

.kbm-info-card,
.kbm-product-card,
.kbm-stat-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 calc(25% - 8px);
  padding: 18px 16px;
  border: 1px solid #d9d9d9;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.kmb-info-top-container{

}

.kbm-info-card img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 14px;
}


section.kbm-services .kbm-service-card img {
    width: 100%;
    height: 135px;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 12px;
}

.kbm-info-card h3,
.kbm-product-card h3 {
  margin-bottom: 12px;
  color: var(--kbm-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.3px;
}

.kbm-info-card p,
.kbm-product-card p {
  color: var(--kbm-muted);
  font-size: 13px;
  line-height: 1.6;
}

.kbm-product-card {
  padding: 10px 10px 16px;
}

.kbm-product-card img {
  width: 100%;
  height: 145px;
  object-fit: contain;
  margin-bottom: 10px;
}


/* =========================================================
   07. Main content sections spacing
   Page order: Why → Steps → Services → Use cases → Impact
   ========================================================= */

.kbm-why,
.kbm-equipment,
.kbm-use-cases,
.kbm-impact {
  padding: 0 0 82px;
}


/* Use cases / impact heading override */

h2#kbm-use-cases-title, h2#kbm-impact-title {
    font-size: clamp(32px, 3vw, 32px);
    line-height: 1.4em;
}

@media (max-width: 820px) {

  section.kbm-use-cases .kbm-card-row {
      flex-direction: row;
  }

  article.kbm-info-card {
    width: auto;
    flex: 1 1 calc(50% - 10px);
}

}

/* =========================================================
   08. Steps / process
   ========================================================= */

.kbm-steps {
  padding: 0 0 82px;
}

.kbm-steps .kbm-container {
  padding: 36px 52px 36px;
  border-radius: 24px;
  background: var(--kbm-bg-soft-2);
}

.kbm-steps .kbm-section-head {
  margin-bottom: 38px;
}

.kbm-steps .kbm-label {
  margin: 0;
  color: var(--kbm-green);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-align: left;
}

.kbm-step-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 34px;
}

.kbm-step-card {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

.kbm-step-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 31px;
  left: calc(50% + 48px);
  width: calc(100% - 62px);
  height: 2px;
  background: var(--kbm-green);
}

.kbm-step-icon {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(13, 23, 40, 0.08);
  box-shadow: 0 2px 8px rgba(13, 23, 40, 0.10);
}

.kbm-step-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.kbm-step-number {
  display: block;
  margin-bottom: 14px;
  color: var(--kbm-ink);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.kbm-step-card h3 {
  margin: 13px auto 13px;
  max-width: 225px;
  color: var(--kbm-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.4px;
}

.kbm-step-card p {
  margin: 0 auto;
  max-width: 220px;
  color: var(--kbm-muted);
  font-size: 12px;
  line-height: 1.45;
}


/* =========================================================
   09. Maintenance services cards
   ========================================================= */

.kbm-services {
  padding: 0 0 78px;
}

.kbm-service-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.kbm-service-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 calc(16.666% - 12px);
  min-width: 170px;
  min-height: 255px;
  padding: 8px 8px 18px;
  border: 1px solid #d9d9d9;
  border-radius: 16px;
  background: #fff;
}

.kbm-service-card img {
  width: 100%;
  height: 135px;
  object-fit: contain;
  margin-bottom: 10px;
}

.kbm-service-card h3 {
  color: var(--kbm-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 6px;
}

.kbm-service-card p {
  color: var(--kbm-muted);
  font-size: 12.5px;
  line-height: 1.55;
}

@media (max-width: 1400px) {
  .kbm-service-card {
    flex: 1 1 calc(30% - 12px);
  }

  section.kbm-services .kbm-service-card img {
    height: 150px;
  }
}


/* =========================================================
   10. Impact / stats cards
   ========================================================= */

.kbm-stat-card {
  min-height: 255px;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 36px 28px 28px;
}

.kbm-stat-icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 38px;
  margin-bottom: 18px;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.kbm-stat-icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
}

.kbm-stat-prefix,
.kbm-stat-label {
  display: block;
  color: var(--kbm-muted);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.5;
}

.kbm-stat-prefix {
  min-height: 20px;
  margin-bottom: 8px;
}

.kbm-stat-number {
  display: block;
  margin: 0 0 10px;
  color: var(--kbm-green);
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1.4px;
}

.kbm-stat-number small {
  margin-left: 2px;
  font-size: 22px;
}

.kbm-stat-word {
    display: block;
    margin: 0 0 10px;
    color: var(--kbm-green);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.05em;
}

.kbm-stat-label {
  max-width: 190px;
}

@media (max-width: 820px) {

  section.kbm-impact .kbm-stat-row {
      flex-direction: row;
  }
    section.kbm-impact .kbm-stat-row article.kbm-stat-card {
        flex: 1 1 42%;
        background: #F5F6F8;
        border-color: #F5F6F8;
    }

    .kbm-stat-icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    display: block;
    background: #FFF;
    border-radius: 100%;
}

}


/* =========================================================
   11. Trust / logos / testimonial
   ========================================================= */

.kbm-trust {
  padding: 16px 0 86px;
}

.kbm-trust-wrap {
  display: flex;
  align-items: flex-start;
  gap: 72px;
}

.kbm-trust-content {
  flex: 1 1 auto;
  text-align: center;
}

.kbm-trust-content .kbm-label {
  color: #2a7a40;
  text-align: center;
}

.kbm-trust-content h2 {
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: clamp(32px, 3vw, 36px);
}

.kbm-logo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 690px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #545454;
  border-radius: 16px;
}

.kbm-logo-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  color: #545454;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.kbm-testimonial {
  flex: 0 0 405px;
  min-height: 200px;
  padding: 30px 48px 28px;
  border: 1px solid var(--kbm-border);
  border-radius: var(--kbm-radius);
  background: var(--kbm-bg-soft);
}

.kbm-quote-mark {
  display: block;
  height: 24px;
  color: var(--kbm-green-bright);
  font-size: 50px;
  font-weight: 900;
  line-height: .7;
}

.kbm-testimonial p {
  margin: 10px 0 16px;
  color: var(--kbm-ink);
  font-size: 14px;
  font-style: italic;
  line-height: 2;
}

.kbm-testimonial strong,
.kbm-testimonial span {
  display: block;
}

.kbm-testimonial strong {
  font-size: 15px;
  font-weight: 700;
}

.kbm-testimonial span:not(.kbm-quote-mark) {
  margin-top: 4px;
  color: var(--kbm-muted);
  font-size: 13px;
}


/* =========================================================
   12. Final CTA
   ========================================================= */

.kbm-final-cta {
  padding: 0 0 90px;
}
.kbm-final-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    #022015 0%,
    #083524 75%,
    rgba(0, 88, 32, 0.5) 100%
  );
  pointer-events: none;
}
.kbm-final-card {
  position:relative;
  display: flex;
  isolation: isolate;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  min-height: 174px;
  padding: 40px 64px;
  overflow: hidden;
  border-radius: var(--kbm-radius);
  background: linear-gradient(135deg, #005820 0%, #063d22 100%);
  background-image: url('/wp-content/themes/klap/assets/klap-business-home/img/impact-masurabil-klap.png');
  background-repeat: no-repeat;
  background-position: right;
  background-size: contain;
}




.kbm-final-copy {
  max-width: 650px;
}

.kbm-final-card h2 {
    color: #fff;
    font-size: clamp(30px, 3vw, 35px);
}

.kbm-final-card p {
  margin-top: 10px;
  color: rgba(255,255,255,.86);
  font-size: 15px;
  line-height: 1.5;
}


/* =========================================================
   13. Responsive overrides
   Keep this section at the end: order is cascade-sensitive.
   ========================================================= */


/* 13.1 Shared tablet/mobile overrides */

@media (max-width: 1180px) {
  .kbm-container {
    margin: 0;
  }

  .kbm-final-card {
    background: linear-gradient(135deg, #005820 0%, #063d22 100%);
    isolation: isolate;
    background-image: url(/wp-content/themes/klap/assets/klap-business-home/img/copaci-resurse-economisite-mobile-opt.jpg);
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
}

  .kbm-split,
  .kbm-trust-wrap,
  .kbm-final-card {
    flex-wrap: wrap;
  }

  .kbm-section-copy,
  .kbm-trust-content,
  .kbm-testimonial {
    flex: 1 1 100%;
    max-width: unset;
  }

  .kbm-hero {
    padding-top: 0;
  }

  .kbm-hero-wrap {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    min-height: auto;
    width: 100% !important;
  }

  .kbm-hero-content {
    flex-basis: auto;
    padding: 0px 0px;
    max-width: unset;
  }

  .kbm-btn {
    width: 100%;
  }

  .kbm-hero-title {
    max-width: 100%;
  }
.kbm-hero-media{
  height: 575px;
}
  .kbm-hero-media {
   position: relative;
        inset: auto;
        margin-top: 0px;
        border-radius: 22px;
        width: 100%;
        margin-bottom: 15px;
  }

  .kbm-benefits-card {
    flex-wrap: wrap;
  }

  .kbm-benefit-item {
    flex: 1 1 calc(50% - 1px);
    flex-direction: column;
    text-align: center;
    border-bottom: 1px solid var(--kbm-border);
  }

  .kbm-info-card,
  .kbm-product-card,
  .kbm-stat-card {
    flex: 1 1 calc(50% - 10px);
  }

  .kbm-step-row {
    flex-wrap: wrap;
  }

  .kbm-step-card {
    flex: 1 1 calc(50% - 10px);
  }

  .kbm-step-row::before {
    display: none;
  }

  .kbm-testimonial {
    max-width: 520px;
    margin-inline: auto;
  }
}

@media (max-width: 820px) {
  .kbm-container {
    width: min(100% - 16px, var(--kbm-container));
            margin: 0 auto;
  }

  .kbm-hero-media {
    height: 63vw;
  }

  .kbm-split,
  .kbm-card-row,
  .kbm-product-row,
  .kbm-stat-row,
  .kbm-step-row,
  .kbm-trust-wrap,
  .kbm-final-card {
    flex-direction: column;
  }

  .kbm-info-card,
  .kbm-product-card,
  .kbm-stat-card,
  .kbm-step-card,
  .kbm-benefit-item {
    flex: 1 1 auto;
    width: 100%;
  }

  .kbm-steps .kbm-container {
    padding: 40px 22px;
  }

  .kbm-final-card {
    align-items: stretch;
    padding: 40px 22px;
  }

  .kbm-logo-strip {
    justify-content: center;
  }
}


/* 13.2 Maintenance services responsive */

@media (max-width: 1180px) {
  .kbm-service-card {
    flex: 1 1 calc(33.333% - 10px);
  }
}

@media (max-width: 820px) {
  .kbm-service-row {
    flex-direction: row;
  }

}


/* 13.3 Steps responsive refinements */

@media (max-width: 1180px) {
  .kbm-steps .kbm-container {
    padding: 36px 28px;
  }

  .kbm-step-row {
    flex-wrap: wrap;
    gap: 34px 20px;
  }

  .kbm-step-card {
    flex: 1 1 calc(50% - 10px);
  }

  .kbm-step-card::after {
    display: none;
  }
}

/* Mobile steps timeline - Maintenance */
@media (max-width: 820px) {
  .kbm-steps {
    padding: 0 0 40px;
  }

  .kbm-steps .kbm-container {
    width: 100%;
    margin: 0;
    padding: 34px 24px 38px;
    border-radius: 0;
    background: var(--kbm-bg-soft-2);
  }

  .kbm-steps .kbm-section-head {
    margin-bottom: 24px;
  }

  .kbm-steps .kbm-label {
    text-align: left;
    color: var(--kbm-green);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 3px;
    line-height: 1.2;
  }

  .kbm-step-row {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 0;
  }

  .kbm-step-row::before {
    content: "";
    position: absolute;
    top: 28px;
    bottom: 28px;
    left: 26px;
    width: 2px;
    display: block;
    background: #d9dde3;
    pointer-events: none;
  }

  .kbm-step-card {
    position: relative;
    display: block;
    width: 100%;
    min-height: 84px;
    padding: 0 0 58px 74px;
    text-align: left;
  }

  .kbm-step-card:last-child {
    padding-bottom: 0;
  }

  .kbm-step-card::after,
  .kbm-step-card:not(:last-child)::after {
    display: none;
  }

  .kbm-step-icon {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 0;
    border-radius: 999px;
    border: 1px solid #dfe4e7;
    background: #fff;
    box-shadow: 0 2px 8px rgba(13, 23, 40, 0.08);
  }

  .kbm-step-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
  }

  .kbm-step-number {
    display: block;
    margin: 0 0 6px;
    color: var(--kbm-green);
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
  }

  .kbm-step-card h3 {
    max-width: 100%;
    margin: 0 0 8px;
    color: var(--kbm-ink);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.25;
    text-align: left;
  }

  .kbm-step-card p {
    max-width: 100%;
    margin: 0;
    color: var(--kbm-muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.55;
    text-align: left;
  }
}
