
/* ==============================
   HERO FIX — Dosing & Monitoring (page-id-29)
============================== */

.page-id-29 .industry-hero{
  position: relative;   /* MUST */
  width: 100%;
  min-height: 520px;
  overflow: hidden;

  background-image: url("/wp-content/themes/chemtromech/assets/dosing-banner.png"); /* <-- filename check */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* overlay */
.page-id-29 .industry-hero__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.38);
  z-index: 1;
}

/* center content */
.page-id-29 .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-29 .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-29 .industry-hero{ min-height: 420px; }
}
@media (max-width: 480px){
  .page-id-29 .industry-hero{ min-height: 360px; }
}



/* ✅ Dark overlay for readability */
.industry-hero__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

/* ✅ Center content */
.industry-hero__content{
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 18px;
}

/* ✅ Title */
.industry-hero__title{
  margin: 0;
  color: #fff;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: .2px;

  /* responsive font like screenshot */
  font-size: clamp(28px, 4.2vw, 64px);
  text-shadow: 0 10px 30px rgba(0,0,0,0.55);
}

/* ✅ Subtle fade-in */
.industry-hero__content{
  animation: industryHeroFade .9s ease both;
}

@keyframes industryHeroFade{
  from{ opacity: 0; transform: translateY(14px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* ✅ Responsive */
@media (max-width: 768px){
  .industry-hero{
    height: 62vh;
    min-height: 360px;
  }
  .industry-hero__title{
    font-size: clamp(24px, 6vw, 44px);
  }
}

@media (max-width: 480px){
  .industry-hero{
    height: 58vh;
    min-height: 320px;
  }
  .industry-hero__title{
    font-size: clamp(22px, 7vw, 36px);
  }
}


/* ==============================
   DIGITAL TEXT SECTION
============================== */
.digital-text{
  padding: 60px 18px;
  background: #ffffff;
}

.digital-wrap{
  max-width: 1000px;
  margin: 0 auto;
}

/* Paragraph styling exactly like screenshot feel */
.digital-wrap p{
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.9;
  color: #1f2a37;
}

/* Last paragraph gap control */
.digital-wrap p:last-child{
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px){
  .digital-text{
    padding: 42px 16px;
  }

  .digital-wrap p{
    font-size: 15.5px;
    line-height: 1.85;
  }
}



/* ===== MAIN WRAPPER ===== */
.auto-control{
  width: 100%;
  padding: 60px 5%;
  background: #fff;
}

/* ===== ROW LAYOUT ===== */
.ac-row{
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 70px;
}

/* Alternate layout */
.ac-row.reverse{
  flex-direction: row-reverse;
}

/* ===== CONTENT ===== */
.ac-content{
  flex: 1;
}

.ac-content h2{
  font-size: 28px;
  margin-bottom: 15px;
  color: #0b3d6c;
}

.ac-content p{
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 12px;
  color: #333;
}

/* ===== IMAGE ===== */
.ac-image{
  flex: 1;
  text-align: center;
}

.ac-image img{
  width: 100%;
  max-width: 520px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  transition: .3s;
}

.ac-image img:hover{
  transform: translateY(-4px);
}


/* ===== RESPONSIVE ===== */

@media(max-width: 992px){
  .ac-row{
    gap: 25px;
  }

  .ac-content h2{
    font-size: 24px;
  }
}

@media(max-width: 768px){

  .ac-row,
  .ac-row.reverse{
    flex-direction: column;
  }

  .ac-content{
    text-align: center;
  }

  .ac-content h2{
    font-size: 22px;
  }

  .ac-image img{
    max-width: 100%;
  }
}


/* ==============================
   5 CARDS: 3 TOP + 2 CENTER ROW
============================== */

.service-cards-wrap{
  width:100%;
  padding:60px 5%;
  background:#fff;
}

/* Top row (3 cards) */
.service-cards-top{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:22px;
  margin-bottom:22px;
}

/* Bottom row (2 cards centered) */
.service-cards-bottom{
  display:flex;
  gap:22px;
  justify-content:center;   /* ✅ center align */
}

/* Bottom cards same width, like top cards */
.service-cards-bottom .svc-card{
  width: calc((100% - 44px) / 3); /* ✅ equals 1 column of 3-grid */
}

/* Card style */
.svc-card{
  background:#eef6ff;             /* light blue */
  border:1px solid #cfe3ff;
  border-radius:16px;
  padding:22px 22px 18px;
  box-shadow:0 10px 26px rgba(0,0,0,.06);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  height:100%;
}

.svc-card:hover{
  transform:translateY(-6px);     /* ✅ only hovered */
  box-shadow:0 16px 40px rgba(0,0,0,.12);
  border-color:#8fbfff;
}

/* Typography */
.svc-card h3{
  margin:0 0 12px;
  font-size:22px;
  line-height:1.25;
  font-weight:900;
  color:#0b3d6c;
}

.svc-card p{
  margin:0 0 10px;
  font-size:15px;
  line-height:1.7;
  color:#222;
}

.svc-lead{
  margin-top:8px;
  font-weight:800;
  color:#173a5b;
}

.svc-note{
  margin-top:10px;
  font-weight:700;
  color:#173a5b;
}

/* Bullets */
.svc-list{
  margin:10px 0 0;
  padding-left:18px;
}
.svc-list li{
  margin:7px 0;
  font-size:15px;
  line-height:1.6;
  color:#1f1f1f;
}

/* ============ Responsive ============ */

/* Tablet: 2 columns */
@media(max-width:1024px){
  .service-cards-top{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .service-cards-bottom{
    flex-wrap:wrap;
  }

  .service-cards-bottom .svc-card{
    width: calc(50% - 11px);
  }
}

/* Mobile: 1 column */
@media(max-width:640px){
  .service-cards-wrap{
    padding:44px 16px;
  }

  .service-cards-top{
    grid-template-columns:1fr;
    gap:16px;
    margin-bottom:16px;
  }

  .service-cards-bottom{
    flex-direction:column;
    gap:16px;
  }

  .service-cards-bottom .svc-card{
    width:100%;
  }

  .svc-card{
    padding:18px 16px 14px;
    border-radius:14px;
  }

  .svc-card h3{
    font-size:20px;
  }
}


/* ================================
   SIMPLE CTA – NO CARD / NO BG
================================ */

.simple-cta{
  width:100%;
  padding:50px 5%;
  background:#fff;        /* plain */
}

.simple-cta h2{
  margin:0 0 14px;
  font-size:32px;
  font-weight:900;
  color:#0b3d6c;
  line-height:1.25;
  max-width:900px;
}

.simple-cta p{
  margin:0 0 12px;
  font-size:16px;
  line-height:1.8;
  color:#222;
  max-width:860px;
}

/* Contact link line */
.cta-contact{
  margin-top:12px;
  font-weight:800;
}

.cta-contact a{
  color:#0b3d6c;
  text-decoration:none;
  transition:.2s ease;
  border-bottom:2px solid #0b3d6c;   /* simple underline like screenshot */
}

.cta-contact a:hover{
  color:#062a4a;
  border-bottom-color:#062a4a;
}

/* ===== Responsive ===== */

@media(max-width:768px){

  .simple-cta{
    padding:36px 16px;
  }

  .simple-cta h2{
    font-size:24px;
  }

  .simple-cta p{
    font-size:15px;
  }
}
