/* ===== HERO SECTION ===== */
/* HERO IMAGE */
.page-id-17 .industry-hero{
  background: url("/wp-content/themes/chemtromech/assets/service-1.png") center/cover no-repeat !important;
}

.industry-hero {
    position: relative;
    width: 100%;
    min-height: 520px;
    overflow: hidden;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* overlay */
.page-id-17 .industry-hero__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.38);
  z-index: 1;
}

/* center content */
.page-id-17 .industry-hero__content{
  position: absolute;
  inset: 0;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  padding: 0 16px;
}

.page-id-17 .industry-hero__content h1{
  margin: 0;
  color: #fff;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: .2px;
  font-size: clamp(28px, 4vw, 62px);
  text-shadow: 0 10px 30px rgba(0,0,0,0.55);
}

/* responsive */
@media (max-width: 768px){
  .page-id-17 .industry-hero{ min-height: 420px; }
}
@media (max-width: 480px){
  .page-id-17 .industry-hero{ min-height: 360px; }
}



/* Dark overlay jesa screenshot me hai */
.onsite-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.55)
  );

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Content container */
.onsite-content{
  position: relative;
  max-width: 1000px;
  padding: 20px;
  text-align: center;
}

/* Heading style */
.onsite-title{
  margin: 0;
  font-size: 44px;
  line-height: 1.22;
  font-weight: 900;
  color: #ffffff;

  text-shadow: 0 8px 18px rgba(0,0,0,0.35);
  letter-spacing: 0.3px;
}

/* ===== Responsive ===== */

@media (max-width: 1100px){
  .onsite-hero{
    min-height: 460px;
  }

  .onsite-title{
    font-size: 38px;
  }
}

@media (max-width: 768px){
  .onsite-hero{
    min-height: 420px;
  }

  .onsite-title{
    font-size: 30px;
    line-height: 1.28;
  }
}

@media (max-width: 480px){
  .onsite-hero{
    min-height: 360px;
  }

  .onsite-title{
    font-size: 24px;
  }
}



.om-text-section{
  padding: 38px 18px;   /* section spacing */
  background: transparent; /* ✅ no background */
}

.om-text-wrap{
  max-width: 1100px;
  margin: 0 auto;
}

.om-para{
  margin: 0 0 16px;
  font-size: 16.5px;
  line-height: 1.85;
  color: #1c2b3a;
}

/* last paragraph bottom spacing remove */
.om-para:last-child{
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px){
  .om-text-section{
    padding: 28px 16px;
  }

  .om-para{
    font-size: 15.5px;
    line-height: 1.8;
  }
}

@media (max-width: 480px){
  .om-para{
    font-size: 15px;
    line-height: 1.75;
  }
}


/* ===== O&M Meaning Section ===== */
.om-meaning-section{
  padding: 60px 18px;
}

.om-meaning-wrap{
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

/* ----- Image Side ----- */
.om-meaning-image img{
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 18px;
}

/* ----- Text Side ----- */
.om-meaning-title{
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 900;
  color: #0a2a4d;
}

.om-meaning-para{
  margin: 0 0 14px;
  font-size: 16.5px;
  line-height: 1.85;
  color: #1c2b3a;
}

.om-meaning-para:last-child{
  margin-bottom: 0;
}

/* ===== Responsive ===== */
@media (max-width: 900px){
  .om-meaning-wrap{
    grid-template-columns: 1fr;
  }

  .om-meaning-image img{
    height: 300px;
  }
}

@media (max-width: 480px){
  .om-meaning-title{
    font-size: 26px;
  }

  .om-meaning-para{
    font-size: 15.5px;
  }
}


/* ===== Dedicated Service Engineering Team Section ===== */
.service-team-section{
  padding: 60px 18px;
  background: transparent; /* no background */
}

.service-team-wrap{
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.1fr 0.9fr; /* text wider, image a bit smaller */
  gap: 28px;
  align-items: center;
}

/* Text */
.service-team-title{
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 900;
  color: #0a2a4d;
}

.service-team-para{
  margin: 0 0 14px;
  font-size: 16.5px;
  line-height: 1.85;
  color: #1c2b3a;
}

.service-team-para:last-child{
  margin-bottom: 0;
}

/* Image */
.service-team-image img{
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 18px; /* clean, modern */
}

/* Responsive */
@media (max-width: 900px){
  .service-team-wrap{
    grid-template-columns: 1fr;
  }

  /* mobile: text first, image second */
  .service-team-image img{
    height: 300px;
  }

  .service-team-title{
    font-size: 28px;
  }

  .service-team-para{
    font-size: 15.5px;
    line-height: 1.8;
  }
}

@media (max-width: 480px){
  .service-team-image img{
    height: 260px;
    border-radius: 16px;
  }
}




.inv-section{
  padding: 60px 20px;
}

.inv-container{
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Image */
.inv-image{
  border-radius: 14px;
  overflow: hidden;
}

.inv-image img{
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

/* Text */
.inv-title{
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 14px;
  line-height: 1.18;
  color: #0f172a;

  white-space: nowrap;      /* aik line force */
  letter-spacing: -0.3px;
}


.inv-text{
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.75;
  color: #334155;
  max-width: 640px;
}

/* Responsive */
@media (max-width: 900px){
  .inv-container{
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .inv-image img{
    max-height: 280px;
  }

  .inv-title{
    font-size: 28px;
  }
}

@media (max-width: 520px){
  .inv-section{
    padding: 45px 16px;
  }
  .inv-title{
    font-size: 24px;
  }
  .inv-text{
    font-size: 15px;
  }
}






.safety-section{
  padding: 60px 20px;
}

.safety-container{
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* IMAGE SIDE */
.safety-image{
  border-radius: 14px;
  overflow: hidden;
}

.safety-image img{
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

/* TEXT SIDE */
.safety-title{
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 14px;
  line-height: 1.18;
  color: #0f172a;

  white-space: nowrap;   /* desktop pe aik line */
}

.safety-text{
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.75;
  color: #334155;
  max-width: 640px;
}

/* RESPONSIVE */
@media (max-width: 1100px){
  .safety-title{
    font-size: 28px;
  }
}

@media (max-width: 900px){
  .safety-container{
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .safety-title{
    white-space: normal;   /* mobile pe wrap allow */
    font-size: 26px;
  }

  .safety-image img{
    max-height: 280px;
  }
}

@media (max-width: 520px){
  .safety-section{
    padding: 45px 16px;
  }

  .safety-title{
    font-size: 22px;
  }

  .safety-text{
    font-size: 15px;
  }
}




.om-section{
  padding: 60px 20px;
}

.om-container{
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* IMAGE SIDE */
.om-image{
  border-radius: 14px;
  overflow: hidden;
}

.om-image img{
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

/* TEXT SIDE */
.om-title{
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 14px;
  line-height: 1.18;
  color: #0f172a;

  white-space: nowrap;   /* desktop pe aik line */
}

.om-text{
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.75;
  color: #334155;
  max-width: 640px;
}

/* RESPONSIVE */
@media (max-width: 1100px){
  .om-title{
    font-size: 28px;
  }
}

@media (max-width: 900px){
  .om-container{
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .om-title{
    white-space: normal;
    font-size: 26px;
  }

  .om-image img{
    max-height: 280px;
  }
}

@media (max-width: 520px){
  .om-section{
    padding: 45px 16px;
  }

  .om-title{
    font-size: 22px;
  }

  .om-text{
    font-size: 15px;
  }
}





/* =====================================
   O&M 5 Cards
   Desktop layout (guaranteed):
   [1][2][3]
     [4][5]
===================================== */

.om5-section{
  padding: 70px 20px;
  background: #ffffff;
}

.om5-wrap{
  max-width: 1200px;
  margin: 0 auto;
}

/* ✅ 6-column invisible grid = perfect centering */
.om5-grid{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

/* Row 1: each card spans 2 columns => 3 cards */
.om5-grid .om5-card:nth-child(1){ grid-column: 1 / span 2; }
.om5-grid .om5-card:nth-child(2){ grid-column: 3 / span 2; }
.om5-grid .om5-card:nth-child(3){ grid-column: 5 / span 2; }

/* Row 2: start at col 2 and col 4 => centered pair */
.om5-grid .om5-card:nth-child(4){ grid-column: 2 / span 2; }
.om5-grid .om5-card:nth-child(5){ grid-column: 4 / span 2; }

/* ===== Card style (light blue like your screenshot) ===== */
.om5-card{
  background: #f0f6ff;
  border: 1px solid #cddfff;
  border-radius: 16px;
  padding: 22px 22px 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);

  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  transform: translateZ(0);
}

/* Title */
.om5-title{
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: #1d4ed8;
  line-height: 1.25;
}

/* Text */
.om5-text{
  margin: 0 0 10px;
  color: #334155;
  line-height: 1.75;
  font-size: 15px;
}

/* List */
.om5-list{
  margin: 10px 0 0;
  padding-left: 18px;
}

.om5-list li{
  margin: 6px 0;
  color: #334155;
  line-height: 1.6;
  font-size: 14.5px;
}

/* ===== Hover: ONLY hovered card jiggle ===== */
@keyframes om5-jiggle{
  0%   { transform: translateY(0) rotate(0deg); }
  20%  { transform: translateY(-5px) rotate(-0.7deg); }
  40%  { transform: translateY(-5px) rotate(0.7deg); }
  60%  { transform: translateY(-5px) rotate(-0.45deg); }
  80%  { transform: translateY(-5px) rotate(0.45deg); }
  100% { transform: translateY(-5px) rotate(0deg); }
}

.om5-card:hover{
  border-color: #9bbcff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.10);
  animation: om5-jiggle .35s ease-in-out;
}

/* ===== Responsive ===== */
@media (max-width: 900px){
  .om5-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* reset manual placement */
  .om5-grid .om5-card:nth-child(1),
  .om5-grid .om5-card:nth-child(2),
  .om5-grid .om5-card:nth-child(3),
  .om5-grid .om5-card:nth-child(4),
  .om5-grid .om5-card:nth-child(5){
    grid-column: auto;
  }
}

@media (max-width: 560px){
  .om5-grid{
    grid-template-columns: 1fr;
  }

  .om5-card{
    padding: 18px;
  }

  .om5-title{
    font-size: 17px;
  }

  .om5-text{
    font-size: 14.7px;
  }
}




.om-cta{
  padding: 70px 20px;
}

.om-cta-wrap{
  max-width: 980px;
  margin: 0 auto;
}

.om-cta-title{
  margin: 0 0 14px;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.15;
  color: #0f172a;
  letter-spacing: -0.4px;
}

.om-cta-text{
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.85;
  color: #334155;
  max-width: 920px;
}

.om-cta-last{
  margin: 0;
  font-size: 16px;
  line-height: 1.85;
  color: #0f172a;
}

/* Link styling */
.om-cta-link{
  color: #1d4ed8;
  text-decoration: none;
  border-bottom: 2px solid rgba(29, 78, 216, 0.25);
  padding-bottom: 2px;
  transition: border-color .2s ease, color .2s ease;
}

.om-cta-link:hover{
  color: #0b3fb8;
  border-bottom-color: rgba(29, 78, 216, 0.6);
}

/* Responsive */
@media (max-width: 900px){
  .om-cta-title{ font-size: 30px; }
}

@media (max-width: 520px){
  .om-cta{ padding: 55px 16px; }
  .om-cta-title{ font-size: 24px; }
  .om-cta-text,
  .om-cta-last{ font-size: 15px; }
}







/* =========================
   CHEMTROMECH FOOTER (Screenshot Style)
========================= */

.cm-footer{
  width: 100%;
}

.cm-footer-bg{
  background: radial-gradient(1200px 420px at 50% 0%,
    rgba(19, 95, 160, 0.45) 0%,
    rgba(5, 34, 60, 0.92) 45%,
    rgba(2, 18, 34, 0.98) 100%);
  padding: 42px 18px 34px;
}

.cm-footer-wrap{
  max-width: 1200px;
  margin: 0 auto;
}

/* ====== TOP 3 CARDS ====== */
.cm-footer-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.cm-footer-card{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 22px 24px 20px;
  box-shadow: 0 18px 34px rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
}

.cm-footer-title{
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.2px;
}

.cm-footer-text{
  margin: 0;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  font-size: 14.8px;
}

.cm-footer-links{
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.cm-footer-link{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-weight: 700;
  font-size: 14.8px;
}

.cm-footer-link:hover{
  text-decoration: underline;
}

.cm-ico{
  font-size: 15px;
  opacity: 0.95;
}

/* ====== MIDDLE BAR ====== */
.cm-footer-bar{
  margin-top: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  box-shadow: 0 18px 34px rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
}

.cm-bar-col{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cm-bar-right{
  align-items: center;
  text-align: center;
}

.cm-bar-label{
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 900;
  color: rgba(255,255,255,0.72);
}

.cm-bar-value{
  color: #ffffff;
  text-decoration: none;
  font-weight: 900;
  font-size: 18px;
}

.cm-bar-value:hover{
  text-decoration: underline;
}

.cm-bar-phones{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.cm-dot{
  color: rgba(255,255,255,0.65);
  font-weight: 900;
}

/* ====== BOTTOM ROW ====== */
.cm-footer-bottom{
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cm-social{
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cm-social-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.25);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.cm-social-btn:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.22);
}

.cm-copy{
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  font-size: 14px;
  text-align: right;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 980px){
  .cm-footer-grid{
    grid-template-columns: 1fr;
  }

  .cm-footer-bar{
    grid-template-columns: 1fr;
  }

  .cm-bar-right{
    align-items: flex-start;
    text-align: left;
  }

  .cm-bar-phones{
    justify-content: flex-start;
  }

  .cm-copy{
    text-align: left;
  }
}
