/* ==============================
   HERO (Navbar ke baad)
============================== */
/* HERO IMAGE */
/* ==============================
   HERO FIX — Water Testing (page-id-27)
============================== */

.page-id-27 .water-hero{
  position: relative;     /* MUST */
  width: 100%;
  min-height: 520px;
  overflow: hidden;

  background-image: url("/wp-content/themes/chemtromech/assets/watertestingbanner.png"); /* <-- filename check */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* overlay */
.page-id-27 .water-hero__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.38);
  z-index: 1;
}

/* center content */
.page-id-27 .water-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-27 .water-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-27 .water-hero{ min-height: 420px; }
}
@media (max-width: 480px){
  .page-id-27 .water-hero{ min-height: 360px; }
}



.water-hero__bg{
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.02);
}

.water-hero__overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(2, 18, 34, 0.30),
    rgba(2, 18, 34, 0.70)
  );
}

.water-hero__content{
  position: relative;
  height: 100%;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0 18px;
  text-align: center;
}

.water-hero__content h1{
  margin: 0;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: -0.6px;

  font-size: clamp(26px, 3.6vw, 60px);
  line-height: 1.08;

  max-width: 1100px;
  text-shadow: 0 10px 26px rgba(0,0,0,0.45);
}

/* Responsive tweak */
@media (max-width: 600px){
  .water-hero{
    height: 420px;
    min-height: 360px;
  }
}




/* ===== Clean Text Section (No bg / no card / no border) ===== */
.lab-text-section{
  width: 100%;
  padding: 28px 0; /* section spacing */
}

.lab-text-wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 0 18px; /* responsive side padding */
}

.lab-text-wrap p{
  margin: 0 0 14px;
  font-size: 16.5px;
  line-height: 1.75;
  color: #1e293b; /* professional dark */
  font-weight: 400;
}

/* last paragraph bottom space remove */
.lab-text-wrap p:last-child{
  margin-bottom: 0;
}

/* Responsive tweaks */
@media (max-width: 768px){
  .lab-text-section{ padding: 22px 0; }
  .lab-text-wrap p{
    font-size: 15.8px;
    line-height: 1.7;
  }
}

@media (max-width: 420px){
  .lab-text-wrap{
    padding: 0 14px;
  }
  .lab-text-wrap p{
    font-size: 15.3px;
  }
}




/* ===== Water Testing Matters (Image + Text) ===== */
.wtm-section{
  width: 100%;
  padding: 34px 0;
}

.wtm-wrap{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;

  display: grid;
  grid-template-columns: 1fr 1.15fr; /* image | text */
  gap: 34px;
  align-items: center;
}

/* IMAGE */
.wtm-media{
  width: 100%;
}

.wtm-media img{
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 14px; /* modern but still clean */
  display: block;
}

/* TEXT */
.wtm-content h2{
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.15;
  color: #0f172a;
  font-weight: 800;
}

.wtm-content p{
  margin: 0 0 12px;
  font-size: 16.5px;
  line-height: 1.75;
  color: #334155;
}

.wtm-lead{
  margin-top: 12px;
  font-weight: 500;
  color: #1f2937;
}

/* LIST */
.wtm-list{
  margin: 12px 0 0;
  padding-left: 22px;
}

.wtm-list li{
  margin: 7px 0;
  font-size: 16.2px;
  line-height: 1.6;
  color: #1f2937;
}

/* Responsive */
@media (max-width: 900px){
  .wtm-wrap{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .wtm-media img{
    height: 280px;
  }

  .wtm-content h2{
    font-size: 30px;
  }
}

@media (max-width: 420px){
  .wtm-section{ padding: 26px 0; }

  .wtm-media img{
    height: 240px;
    border-radius: 12px;
  }

  .wtm-content h2{
    font-size: 26px;
  }

  .wtm-content p,
  .wtm-list li{
    font-size: 15.5px;
  }
}







/* ===== On-Site Water Analysis Section ===== */
.onsite-section{
  width: 100%;
  padding: 36px 0;
}

.onsite-wrap{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;

  display: grid;
  grid-template-columns: 1.15fr 1fr; /* TEXT | IMAGE */
  gap: 32px;
  align-items: center;
}

/* TEXT SIDE */
.onsite-content h2{
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.15;
  color: #0f172a;
  font-weight: 800;
}

.onsite-content p{
  margin: 0 0 12px;
  font-size: 16.5px;
  line-height: 1.75;
  color: #334155;
}

.onsite-lead{
  margin-top: 10px;
  font-weight: 500;
  color: #1f2937;
}

/* LIST */
.onsite-list{
  margin: 10px 0 0;
  padding-left: 22px;
}

.onsite-list li{
  margin: 6px 0;
  font-size: 16.2px;
  color: #1f2937;
}

/* IMAGE SIDE */
.onsite-media img{
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

/* ===== Responsive ===== */
@media (max-width: 900px){
  .onsite-wrap{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .onsite-media img{
    height: 280px;
  }

  .onsite-content h2{
    font-size: 30px;
  }
}

@media (max-width: 420px){
  .onsite-section{ padding: 26px 0; }

  .onsite-media img{
    height: 240px;
    border-radius: 12px;
  }

  .onsite-content h2{
    font-size: 26px;
  }

  .onsite-content p,
  .onsite-list li{
    font-size: 15.5px;
  }
}




/* ===== Laboratory Testing Support (Left Image | Right Text) ===== */
.lab-support{
  width: 100%;
  padding: 36px 0;
}

.lab-support-wrap{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;

  display: grid;
  grid-template-columns: 1fr 1.15fr; /* IMAGE | TEXT */
  gap: 32px;
  align-items: center;
}

/* IMAGE */
.lab-support-media img{
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

/* TEXT */
.lab-support-content h2{
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.15;
  color: #0f172a;
  font-weight: 800;
}

.lab-support-content p{
  margin: 0 0 12px;
  font-size: 16.5px;
  line-height: 1.75;
  color: #334155;
}

.lab-support-lead{
  margin-top: 10px;
  font-weight: 600;
  color: #1f2937;
}

/* LIST */
.lab-support-list{
  margin: 10px 0 0;
  padding-left: 22px;
}

.lab-support-list li{
  margin: 6px 0;
  font-size: 16.2px;
  line-height: 1.6;
  color: #1f2937;
}

/* ===== Responsive ===== */
@media (max-width: 900px){
  .lab-support-wrap{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .lab-support-media img{
    height: 280px;
  }

  .lab-support-content h2{
    font-size: 30px;
  }
}

@media (max-width: 420px){
  .lab-support{
    padding: 26px 0;
  }

  .lab-support-media img{
    height: 240px;
    border-radius: 12px;
  }

  .lab-support-content h2{
    font-size: 26px;
  }

  .lab-support-content p,
  .lab-support-list li{
    font-size: 15.5px;
  }
}




/* ===============================
   TESTING SERVICES - 4 CARDS GRID
================================ */
.testing-cards-section{
  width: 100%;
  padding: 56px 0;
}

.testing-cards-wrap{
  width: min(1200px, 92%);
  margin: 0 auto;
}

.testing-cards-head{
  margin-bottom: 22px;
}

.testing-cards-head h2{
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.2;
  margin: 0 0 8px;
  font-weight: 800;
  color: #0b1b2b;
}

.testing-cards-head p{
  margin: 0;
  color: #4a5b6b;
  font-size: 15px;
  line-height: 1.7;
  max-width: 720px;
}

/* GRID: 4 cards in one row (desktop) */
.testing-cards-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 18px;
}

/* CARD */
.tcard{
  background: #eef7ff;             /* very light blue */
  border: 1px solid #d7ecff;
  border-radius: 16px;
  padding: 18px 18px 16px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  box-shadow: 0 8px 22px rgba(11, 27, 43, 0.06);
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

/* subtle top glow line */
.tcard::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(0,128,255,.18), rgba(0,128,255,0));
  opacity: .8;
}

/* TOP ROW */
.tcard-top{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.tcard-icon{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #dff1ff;
  border: 1px solid #cbe7ff;
  font-size: 16px;
  flex: 0 0 auto;
  transition: transform .25s ease;
}

.tcard h3{
  margin: 0;
  font-size: 16.5px;
  line-height: 1.3;
  color: #0b1b2b;
  font-weight: 800;
}

.tcard-sub{
  margin: 6px 0 10px;
  color: #355268;
  font-size: 13.5px;
  line-height: 1.6;
}

.tcard-list{
  margin: 0;
  padding-left: 18px;
  color: #1d3242;
}

.tcard-list li{
  margin: 6px 0;
  line-height: 1.55;
  font-size: 13.5px;
}

.tcard-note{
  margin: 10px 0 0;
  color: #4a5b6b;
  font-size: 13px;
  line-height: 1.6;
}

/* HOVER TRIGGER */
.tcard:hover{
  transform: translateY(-8px);
  border-color: #9dd6ff;
  box-shadow: 0 16px 34px rgba(11, 27, 43, 0.12);
}

.tcard:hover .tcard-icon{
  transform: scale(1.07) rotate(-2deg);
}

/* Smooth "trigger" animation when hover starts */
.tcard.is-hovered{
  animation: cardPulse .35s ease;
}

@keyframes cardPulse{
  0%{ transform: translateY(0); }
  50%{ transform: translateY(-10px); }
  100%{ transform: translateY(-8px); }
}

/* RESPONSIVE */
@media (max-width: 1100px){
  .testing-cards-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px){
  .testing-cards-grid{ grid-template-columns: 1fr; }
  .tcard{ min-height: auto; }
}


/* ==============================
   MONITOR WATER CTA SECTION
============================== */

.monitor-cta{
  width: 100%;
  padding: 50px 0;
}

.monitor-wrap{
  width: min(1000px, 92%);
  margin: 0 auto;
}

.monitor-title{
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  color: #0b1b2b;
  margin: 0 0 14px;
  line-height: 1.2;
}

.monitor-text{
  font-size: 15px;
  color: #2f4556;
  line-height: 1.7;
  margin: 0 0 12px;
  max-width: 880px;
}

.monitor-text.strong{
  font-weight: 700;
  margin-top: 10px;
}

/* CONTACT LINK */
.monitor-link{
  display: inline-block;
  margin-left: 6px;
  color: #0066cc;
  text-decoration: none;
  font-weight: 800;
  transition: all .2s ease;
}

.monitor-link:hover{
  text-decoration: underline;
  transform: translateX(4px);
}

/* RESPONSIVE */
@media (max-width: 600px){
  .monitor-cta{
    padding: 36px 0;
  }

  .monitor-text{
    font-size: 14px;
  }
}
