/*
  East Pest Control — Custom UI Enhancements
  Layered on top of templatemo-574-mexant.css
*/

/* ============================================
   1. HERO — Fix H1 styling + dark overlay
   ============================================ */
.slide-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(21, 27, 52, 0.78) 0%,
    rgba(21, 27, 52, 0.40) 60%,
    rgba(21, 27, 52, 0.15) 100%
  );
  z-index: 1;
}

.slide-inner .header-text {
  z-index: 2;
}

/* H1 in first slide (SEO fix) — same visual as h2 */
.slide-inner .header-text h1 {
  position: relative;
  z-index: 2;
  font-size: 52px;
  color: #fff;
  font-weight: 700;
  opacity: 1;
  visibility: visible;
  line-height: 68px;
  margin-bottom: 16px;
}

.slide-inner .header-text h1 em {
  font-style: normal;
  color: #ff511a;
}

.slide-inner .header-text h2 {
  font-size: 52px;
  line-height: 68px;
  margin-bottom: 16px;
}

/* Hero sub-text badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(67, 186, 127, 0.22);
  border: 1px solid rgba(67, 186, 127, 0.6);
  color: #a8f0ce;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}

.hero-badge i {
  color: #43ba7f;
  font-size: 12px;
}

@media (max-width: 768px) {
  .slide-inner .header-text h1,
  .slide-inner .header-text h2 {
    font-size: 30px;
    line-height: 42px;
  }
  .hero-badge { display: none; }
}


/* ============================================
   2. PAGE HEADINGS — Fix H1 + image case + padding
   ============================================ */

/* Fix background image case mismatch (Linux server is case-sensitive) */
.page-aboutus-heading {
  background-image: url(../images/EPC-about-02.jpg) !important;
  padding: 130px 0px 70px 0px;
}

.page-service-heading,
.page-contact-heading {
  padding: 130px 0px 70px 0px;
}

.page-aboutus-heading h1,
.page-service-heading h1,
.page-contact-heading h1 {
  font-size: 52px;
  color: #fff;
  font-weight: 700;
}

@media (max-width: 768px) {
  .page-aboutus-heading,
  .page-service-heading,
  .page-contact-heading {
    padding: 90px 0px 50px 0px;
  }
  .page-aboutus-heading h1,
  .page-service-heading h1,
  .page-contact-heading h1 {
    font-size: 32px;
  }
}


/* ============================================
   2b. ABOUT PAGE — Why Choose Us cards
   ============================================ */
.why-choose-us {
  background: #f8f9fc;
  padding: 80px 0;
}

.why-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  margin-top: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  text-align: center;
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  border-bottom-color: #ff511a;
}

.why-card .why-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #fff1ee, #e8f8f0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 28px;
  color: #ff511a;
  transition: all 0.3s;
}

.why-card:hover .why-icon {
  background: linear-gradient(135deg, #ff511a, #ff7c4d);
  color: #fff;
}

.why-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: #212741;
  margin-bottom: 10px;
}

.why-card p {
  font-size: 13.5px;
  color: #666;
  line-height: 22px;
  margin-bottom: 0;
}


/* ============================================
   2c. ABOUT PAGE — About CTA strip
   ============================================ */
.about-cta-strip {
  background: linear-gradient(135deg, #ff511a 0%, #e03e09 100%);
  padding: 60px 0;
  text-align: center;
}

.about-cta-strip h3 {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.about-cta-strip p {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  margin-bottom: 28px;
}

.about-cta-strip .btn-wa-lg {
  background: #fff;
  color: #ff511a;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}

.about-cta-strip .btn-wa-lg:hover {
  background: #25d366;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(37,211,102,0.4);
}


/* ============================================
   2d. ABOUT PAGE — photo gallery strip
   ============================================ */
.about-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.about-gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.about-gallery img:first-child {
  grid-column: 1 / -1;
  height: 220px;
}

.about-gallery img:hover {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .about-gallery img { height: 130px; }
  .about-gallery img:first-child { height: 180px; }
}


/* ============================================
   3. STATS STRIP — after hero
   ============================================ */
.stats-strip {
  background: linear-gradient(135deg, #ff511a 0%, #e03e09 100%);
  padding: 0;
  margin-top: 0 !important;
}

.stats-strip .container {
  padding-top: 0;
  padding-bottom: 0;
}

.stats-strip .stat-item {
  text-align: center;
  padding: 36px 20px;
  border-right: 1px solid rgba(255,255,255,0.2);
  transition: background 0.3s;
}

.stats-strip .stat-item:last-child {
  border-right: none;
}

.stats-strip .stat-item:hover {
  background: rgba(0,0,0,0.1);
}

.stats-strip .stat-number {
  display: block;
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}

.stats-strip .stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.88);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
}

.stats-strip .stat-label-ms {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  display: block;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .stats-strip .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 24px 20px;
  }
  .stats-strip .stat-number { font-size: 32px; }
}


/* ============================================
   4. SECTION HEADINGS — enhanced
   ============================================ */
.section-heading .tag-line {
  display: inline-block;
  background: rgba(255, 81, 26, 0.1);
  color: #ff511a;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 81, 26, 0.2);
}

.section-heading h2 {
  margin-top: 6px;
  line-height: 42px;
  font-size: 34px;
  font-weight: 700;
  color: #212741;
}

.section-heading .underline-bar {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #ff511a, #43ba7f);
  border-radius: 2px;
  margin: 16px auto 0;
}


/* ============================================
   5. SERVICES SECTION — card redesign
   ============================================ */
.services .service-item {
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  margin-top: 30px;
  border: 2px solid transparent;
  transition: all 0.35s ease;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.services .service-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff511a, #43ba7f);
  transform: scaleX(0);
  transition: transform 0.35s ease;
  transform-origin: left;
}

.services .service-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  border-color: rgba(255, 81, 26, 0.15);
}

.services .service-item:hover::after {
  transform: scaleX(1);
}

/* Service icon wrapper */
.service-icon-wrap {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #fff8f6 0%, #ecf8f2 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 18px;
  border: 1px solid rgba(67,186,127,0.2);
  transition: all 0.3s;
}

.services .service-item:hover .service-icon-wrap {
  background: linear-gradient(135deg, #ff511a 0%, #ff7c4d 100%);
  border-color: transparent;
}

.service-icon-wrap img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.services .service-item:hover .service-icon-wrap img {
  filter: brightness(0) invert(1);
}

.service-text h3 {
  font-size: 17px;
  font-weight: 700;
  color: #212741;
  margin-bottom: 8px;
}

.service-text p {
  font-size: 14px;
  line-height: 23px;
  color: #555;
  margin-bottom: 0;
}

.service-text small em {
  color: #43ba7f;
  font-style: italic;
  font-size: 12.5px;
}


/* ============================================
   6. ABOUT SECTION — improvements
   ============================================ */
.about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 24px;
}

.about-highlight-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #212741;
}

.about-highlight-item i {
  color: #43ba7f;
  font-size: 16px;
}

section.about-us .aboutus-img {
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  margin-bottom: 24px !important;
}


/* ============================================
   7. CTA BANNER
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, #212741 0%, #2e3a61 50%, #212741 100%);
  padding: 80px 0;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  background: rgba(255,81,26,0.08);
  border-radius: 50%;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 320px; height: 320px;
  background: rgba(67,186,127,0.07);
  border-radius: 50%;
}

.cta-banner .cta-inner {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  color: #fff;
  font-size: 38px;
  font-weight: 800;
  line-height: 50px;
  margin-bottom: 12px;
}

.cta-banner h2 em {
  font-style: normal;
  color: #ff511a;
}

.cta-banner .cta-sub {
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  margin-bottom: 32px;
}

.cta-banner .cta-perks {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-bottom: 36px;
}

.cta-banner .cta-perk {
  color: rgba(255,255,255,0.88);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta-banner .cta-perk i {
  color: #43ba7f;
  font-size: 16px;
}

.cta-banner .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-banner .btn-wa {
  background: #25d366;
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
}

.cta-banner .btn-wa:hover {
  background: #1da851;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.45);
  color: #fff;
}

.cta-banner .btn-services {
  background: transparent;
  color: #fff;
  padding: 13px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  border: 2px solid rgba(255,255,255,0.4);
}

.cta-banner .btn-services:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  transform: translateY(-3px);
  color: #fff;
}

@media (max-width: 768px) {
  .cta-banner h2 { font-size: 26px; line-height: 38px; }
  .cta-banner .cta-perks { gap: 12px 20px; }
}


/* ============================================
   8. TESTIMONIALS — star ratings + card refresh
   ============================================ */
.testimonials .item .stars {
  font-size: 17px;
  color: #f4c430;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: block;
}

.testimonials .item {
  border-radius: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.testimonials .item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.testimonials .item i.fa-quote-left {
  background: linear-gradient(135deg, #43ba7f, #2e9a63);
}


/* ============================================
   9. WHATSAPP FLOAT — pulse animation
   ============================================ */
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(37,211,102,0.65); }
  70%  { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0   rgba(37,211,102,0); }
}

.whatsapp-float {
  animation: wa-pulse 2.2s infinite;
  border-radius: 50px !important;
}


/* ============================================
   10. FOOTER — improved
   ============================================ */
footer {
  background: linear-gradient(135deg, #181d30 0%, #212741 100%);
  padding: 30px 0;
}

footer p {
  font-size: 13.5px;
  line-height: 1.8;
}

footer p a {
  color: #43ba7f;
  transition: color 0.2s;
}

footer p a:hover {
  color: #ff511a;
}


/* ============================================
   11. SCROLL ANIMATIONS (AOS helper)
   ============================================ */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }


/* ============================================
   12. PARTNERS SECTION — refinement
   ============================================ */
section.partners {
  background: linear-gradient(135deg, #1a2035 0%, #212741 100%);
}


/* ============================================
   13. GENERAL — hover & focus polish
   ============================================ */
.green-button a,
.orange-button a {
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}

.green-button a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(67,186,127,0.35);
  opacity: 1 !important;
}

.orange-button a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255,81,26,0.35);
  opacity: 1 !important;
}

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Selection highlight */
::selection { background: #ff511a; color: #fff; }
