/* ===== INDUSTRY HERO SECTION ===== */

/* HERO IMAGE */
/* ==============================
   HERO — Water Softening Page (Page ID 17)
   Exact match with your HTML:
   .industry-hero
   .industry-overlay
   .industry-content
============================== */

.page-id-17 .industry-hero{
  position: relative;
  width: 100%;
  min-height: 520px;
  overflow: hidden;

  background-image: url("/wp-content/themes/chemtromech/assets/watersoftrening.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Overlay */
.page-id-17 .industry-hero .industry-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.38);
  z-index: 1;
}

/* Center content */
.page-id-17 .industry-hero .industry-content{
  position: absolute;
  inset: 0;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  padding: 0 16px;

  /* protect from inherited weird alignment */
  margin: 0 auto;
}

/* Heading */
.page-id-17 .industry-hero .industry-content h1{
  margin: 0;
  color: #fff;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: .2px;
  font-size: clamp(26px, 4vw, 62px);
  text-shadow: 0 10px 30px rgba(0,0,0,0.55);

  /* safety: stop any transform/padding issues from theme */
  transform: none !important;
}

/* Responsive heights */
@media (max-width: 768px){
  .page-id-17 .industry-hero{ min-height: 420px; }
}
@media (max-width: 480px){
  .page-id-17 .industry-hero{ min-height: 360px; }
}

/* =========================================
   CTM Split Section (No Background)
========================================= */

.ctm-split-section{
  padding: 90px 0;
  background: none;   /* background remove */
}

.ctm-split-wrap{
  width: min(1200px, 92%);
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Text */
.ctm-split-content h2{
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 18px;
  color: #111;
}

.ctm-split-content p{
  font-size: 16px;
  line-height: 1.9;
  margin: 0 0 18px;
  color: #444;
  max-width: 620px;
}

/* Image */
.ctm-split-image img{
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;

  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

/* Mobile */
@media (max-width: 900px){
  .ctm-split-wrap{
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ctm-split-content h2{
    font-size: 30px;
  }

  .ctm-split-image img{
    height: auto;
  }
}

/* DARK OVERLAY FOR READABILITY */
.industry-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

/* TEXT CENTER */
.industry-content{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 90%;
  max-width: 1000px;
  text-align: center;
  z-index: 5;
}

.industry-content h1{
  color: #ffffff;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.5px;
}

/* ===== RESPONSIVE ===== */

@media(max-width: 1024px){
  .industry-hero{
    height: 460px;
  }

  .industry-content h1{
    font-size: 38px;
  }
}

@media(max-width: 768px){
  .industry-hero{
    height: 420px;
  }

  .industry-content h1{
    font-size: 32px;
  }
}

@media(max-width: 480px){
  .industry-hero{
    height: 380px;
  }

  .industry-content h1{
    font-size: 26px;
  }
}


/* ===== PRETREATMENT TEXT SECTION ===== */
.pretreat-text{
  width: 100%;
  background: #fff;          /* screenshot jesa */
  padding: 22px 0;           /* top/bottom spacing */
}

.pretreat-wrap{
  width: min(980px, 92%);    /* centered container */
  margin: 0 auto;
}

.pretreat-wrap p{
  margin: 0 0 14px;
  color: #111;               /* dark text */
  font-size: 15.5px;         /* screenshot-like size */
  line-height: 1.8;          /* airy readable */
  font-weight: 400;
}

.pretreat-wrap p:last-child{
  margin-bottom: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px){
  .pretreat-text{ padding: 18px 0; }
  .pretreat-wrap p{
    font-size: 15px;
    line-height: 1.75;
  }
}

@media (max-width: 480px){
  .pretreat-text{ padding: 16px 0; }
  .pretreat-wrap p{
    font-size: 14.5px;
    line-height: 1.7;
  }
}



/* ===== ACF SECTION ===== */
.acf-section{
  width: 100%;
  padding: 48px 0;          /* clean spacing */
  background: #fff;         /* no background color look */
}

.acf-wrap{
  width: min(1100px, 92%);
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 1.05fr; /* image + text */
  gap: 34px;
  align-items: center;
}

/* IMAGE */
.acf-media{
  width: 100%;
}

.acf-media img{
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 14px;       /* modern */
  display: block;
}

/* TEXT */
.acf-content h2{
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  color: #111;
}

.acf-content p{
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.8;
  color: #111;
}

.acf-content p:last-child{
  margin-bottom: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px){
  .acf-wrap{
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .acf-media img{
    height: 320px;
  }

  .acf-content h2{
    font-size: 26px;
  }
}

@media (max-width: 520px){
  .acf-section{ padding: 38px 0; }

  .acf-media img{
    height: 240px;
    border-radius: 12px;
  }

  .acf-content h2{
    font-size: 22px;
  }

  .acf-content p{
    font-size: 14.5px;
    line-height: 1.75;
  }
}


/* ===== PERFORMANCE SECTION ===== */
.perf-section{
  width: 100%;
  padding: 48px 0;
  background: #fff;
}

.perf-wrap{
  width: min(1100px, 92%);
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.05fr 1fr; /* text slightly wider */
  gap: 34px;
  align-items: center;
}

/* TEXT */
.perf-content h2{
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  color: #111;
}

.perf-content p{
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.8;
  color: #111;
}

.perf-content p:last-child{
  margin-bottom: 0;
}

/* IMAGE */
.perf-media img{
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px){
  .perf-wrap{
    grid-template-columns: 1fr;  /* stack */
    gap: 20px;
  }

  /* mobile pe image upar ya neeche adjust karna ho to order use kar sakte ho */
  .perf-media img{
    height: 300px;
  }

  .perf-content h2{
    font-size: 26px;
  }
}

@media (max-width: 520px){
  .perf-section{ padding: 38px 0; }

  .perf-media img{
    height: 230px;
    border-radius: 12px;
  }

  .perf-content h2{
    font-size: 22px;
  }

  .perf-content p{
    font-size: 14.5px;
    line-height: 1.75;
  }
}


/* ===== INTEGRATION SECTION ===== */
.integration-section{
  width: 100%;
  padding: 48px 0;
  background: #fff;
}

.integration-wrap{
  width: min(1100px, 92%);
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 1.05fr; /* image + text */
  gap: 34px;
  align-items: center;
}

/* IMAGE */
.integration-media img{
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

/* TEXT */
.integration-content h2{
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  color: #111;
}

.integration-content p{
  margin: 0;
  font-size: 15.5px;
  line-height: 1.8;
  color: #111;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px){
  .integration-wrap{
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .integration-media img{
    height: 300px;
  }

  .integration-content h2{
    font-size: 26px;
  }
}

@media (max-width: 520px){
  .integration-section{ padding: 38px 0; }

  .integration-media img{
    height: 230px;
    border-radius: 12px;
  }

  .integration-content h2{
    font-size: 22px;
  }

  .integration-content p{
    font-size: 14.5px;
    line-height: 1.75;
  }
}



/* ==============================
   SOFTENING & FILTRATION - CARDS
============================== */

.sf-cards-section{
  width: 100%;
  padding: 64px 0;
}

.sf-wrap{
  width: min(1200px, 92%);
  margin: 0 auto;
}

.sf-head{
  margin-bottom: 28px;
}

.sf-head h2{
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.2;
  margin: 0 0 10px;
  color: #0b2b4f;
  font-weight: 800;
}

.sf-head p{
  margin: 0;
  color: #2b4a67;
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 820px;
}

/* ROWS */
.sf-row{
  display: grid;
  gap: 18px;
}

.sf-row-3{
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.sf-row-2{
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: center;
  max-width: 840px;   /* keeps 2 cards centered as a group */
  margin: 0 auto;
}

/* CARD */
.sf-card{
  background: #eaf4ff;            /* light blue */
  border: 1px solid #cfe6ff;
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 10px 24px rgba(11, 43, 79, 0.08);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
  position: relative;
  overflow: hidden;
  cursor: default;
  outline: none;
}

/* subtle top glow */
.sf-card::before{
  content:"";
  position:absolute;
  inset: 0;
  background: radial-gradient(900px 260px at 20% 0%, rgba(255,255,255,0.75), transparent 55%);
  opacity: .9;
  pointer-events: none;
}

/* hover / active trigger */
.sf-card:hover,
.sf-card.is-active,
.sf-card:focus-visible{
  transform: translateY(-6px);
  border-color: #7cc0ff;
  background: #e3f1ff;
  box-shadow: 0 18px 38px rgba(11, 43, 79, 0.14);
}

.sf-card h3{
  margin: 0 0 10px;
  color: #083055;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
}

.sf-card p{
  margin: 0 0 10px;
  color: #2b4a67;
  font-size: 14.8px;
  line-height: 1.7;
}

.sf-muted{
  color: #1f4f7a;
  font-weight: 700;
}

.sf-note{
  margin-top: 10px !important;
  font-weight: 650;
  color: #0b3d66;
}

.sf-card ul{
  margin: 8px 0 0 18px;
  padding: 0;
}

.sf-card li{
  margin: 6px 0;
  color: #203e59;
  font-size: 14.6px;
  line-height: 1.55;
}

/* RESPONSIVE */
@media (max-width: 992px){
  .sf-row-3{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sf-row-2{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
  }
}

@media (max-width: 640px){
  .sf-cards-section{
    padding: 44px 0;
  }
  .sf-row-3,
  .sf-row-2{
    grid-template-columns: 1fr;
  }
  .sf-row-2{
    max-width: 100%;
  }
  .sf-card{
    border-radius: 14px;
    padding: 16px;
  }
}


/* ==============================
   CTA - EVALUATION (SIMPLE LIKE SCREENSHOT)
============================== */

.cta-eval{
  width: 100%;
  padding: 44px 0;
  background: transparent; /* screenshot style */
}

.cta-eval-wrap{
  width: min(1200px, 92%);
  margin: 0 auto;
}

.cta-eval-wrap h2{
  margin: 0 0 14px;
  color: #0b2b4f;
  font-weight: 800;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.2;
}

.cta-eval-wrap p{
  margin: 0 0 16px;
  color: #2b4a67;
  font-size: 15.5px;
  line-height: 1.75;
  max-width: 980px;
}

/* last line as link */
.cta-eval-link{
  display: inline-block;
  font-weight: 800;
  color: #0b2b4f;
  text-decoration: none;
  border-bottom: 2px solid rgba(11, 43, 79, 0.25);
  padding-bottom: 2px;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.cta-eval-link:hover{
  color: #0a57a6;
  border-bottom-color: rgba(10, 87, 166, 0.55);
  transform: translateY(-1px);
}

.cta-eval-link:focus-visible{
  outline: 3px solid rgba(124, 192, 255, 0.7);
  outline-offset: 4px;
  border-bottom-color: transparent;
}

/* responsive spacing */
@media (max-width: 640px){
  .cta-eval{
    padding: 34px 0;
  }
  .cta-eval-wrap p{
    font-size: 15px;
  }
}
