/* =========================================================
   Madhu Pest Services — Global Responsive Styles (v1)
   Mobile-first • Accessible • Rentokil-like aesthetics
   Breakpoints: 576 / 768 / 992 / 1200
   ========================================================= */

/* Reset & Base
   -------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #111827;
  line-height: 1.6;
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  padding-inline: 16px;
  margin-inline: auto;
}

/* Utilities
   -------------------------------------------------------- */
.hide { display: none !important; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Topbar
   -------------------------------------------------------- */
.topbar {
  background: #f6f7f8;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
  padding: 6px 0;
}
.topbar-right {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}
.top-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #111827;
  transition: color .2s;
}
.top-item:hover { color: #198754; }
.top-item i { font-size: 14px; }

@media (max-width: 600px) {
  .topbar-right { flex-wrap: wrap; justify-content: center; gap: 10px; }
}

/* Navbar + Mega Menu
   -------------------------------------------------------- */
.navbar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

/* Logo block */
.logo { display: flex; flex-direction: column; }
.logo img { height: 38px; }
.logo .tagline { font-size: 12px; color: #6b7280; margin-top: 2px; }

/* Menu toggle (hamburger) */
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  line-height: 0;
  cursor: pointer;
}
.menu-toggle .bar {
  display: block;
  width: 24px; height: 2px; background: #111827; margin: 5px 0;
}

/* Desktop nav */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
}

.nav-menu > a,
.nav-item > a {
  position: relative;
  padding: 16px 0;
  font-weight: 500;
  color: #111827;
  display: inline-block;
  transition: color .18s ease;
}

/* Red underline hover */
.nav-menu > a::after,
.nav-item > a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px; background: #8CC63F;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
.nav-menu > a:hover::after,
.nav-item:hover > a::after { transform: scaleX(1); }
.nav-menu > a:hover,
.nav-item:hover > a { color: #8CC63F; }

/* Mega menu (anchored to each nav item) */
.nav-item.has-mega { position: relative; }

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #f3f4f6;
  border-top: 2px solid #8CC63F;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  z-index: 999;
  padding: 16px;
}

.nav-item.has-mega:hover .mega-menu,
.nav-item.has-mega .mega-menu:hover,
.nav-item.has-mega.open .mega-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

/* Mega inner grid */
.mega-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 600px;
}

.mega-item {
  background: #fff;
  border-radius: 8px;
  padding: 18px 12px;
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  color: #111827;
  transition: background .15s ease, transform .15s ease;
}
.mega-item i { font-size: 26px; color: #6b7280; }
.mega-item span { font-size: 14px; font-weight: 600; }
.mega-item:hover { background: #e9ecef; transform: translateY(-1px); }

/* Mobile nav behavior */
@media (max-width: 992px) {
  .menu-toggle { display: inline-block; }
  .nav-menu {
    display: none;
    position: static;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-top: 1px solid #e5e7eb;
    padding: 8px 0;
    background: #fff;
  }
  .nav-menu.is-open,
  .nav-open .nav-menu { display: flex; }

  .nav-menu > a,
  .nav-item > a { padding: 14px 0; width: 100%; }
  .nav-menu > a::after,
  .nav-item > a::after { display: none; }

  /* Mobile mega: stacked below trigger */
  .mega-menu {
    position: static;
    opacity: 1; transform: none;
    pointer-events: auto; visibility: visible;
    box-shadow: none; border-top: 0;
    background: #f9fafb;
    padding: 8px 0 12px;
    width: 100%;
  }
  .mega-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: none;
  }
}

/* Contact Action Bar
   -------------------------------------------------------- */
.contact-bar {
  background: #0f2134;
  color: #fff;
  padding: 16px 0;
}
.contact-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: center;
}
.contact-item {
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.contact-item i { font-size: 26px; }
.contact-text { display: flex; flex-direction: column; line-height: 1.3; }
.contact-text .title { font-size: 14px; font-weight: 600; }
.contact-text a { color: #cbd5e1; transition: color .2s; }
.contact-text a:hover { color: #fff; }

@media (max-width: 768px) {
  .contact-container { grid-template-columns: 1fr; text-align: center; }
  .contact-item { justify-content: flex-start; padding-inline: 8px; }
}

/* Hero
   -------------------------------------------------------- */
.hero-section {
  position: relative;
  background: url('assets/img/hero-bg.jpg') center/cover no-repeat;
  min-height: 480px;
  display: grid; place-items: center;
  text-align: center; color: #fff; overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
}
.hero-content { position: relative; z-index: 1; max-width: 820px; padding: 0 16px; }
.hero-content h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; }
.hero-content p { color: #e5e7eb; margin-bottom: 24px; }

.hero-buttons {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
}
.phone-btn {
  border: 2px solid #fff; color: #fff; padding: 10px 18px; font-weight: 700; border-radius: 3px;
  transition: background .25s ease;
}
.phone-btn:hover { background: rgba(255,255,255,.15); }
.whatsapp-btn {
  background: #0074cc; color: #fff; padding: 10px 20px; border-radius: 3px; font-weight: 700;
  transition: background .25s ease;
}
.whatsapp-btn:hover { background: #005fa3; }

.scroll-indicator { margin-top: 24px; font-size: 20px; animation: bounce 1.8s infinite; }
@keyframes bounce { 0%,20%,50%,80%,100%{transform:translateY(0)} 40%{transform:translateY(6px)} 60%{transform:translateY(3px)} }

@media (max-width: 768px) {
  .hero-section { min-height: 420px; padding: 56px 0; }
  .hero-content h1 { font-size: 1.8rem; }
}

/* About
   -------------------------------------------------------- */
.about-section {
  padding: 72px 0; background: #fff; text-align: center;
}
.about-section .container { max-width: 900px; text-align: left; }
.about-section h2 { text-align: center; font-size: 28px; font-weight: 800; margin-bottom: 18px; }
.about-section p { font-size: 16px; color: #374151; margin-bottom: 16px; }

/* Services (3 features)
   -------------------------------------------------------- */
.services-section {
  background: #f9fafb; padding: 56px 0; text-align: center;
}
.services-section .container {
  max-width: 1100px;
  display: grid; gap: 28px;
  grid-template-columns: repeat(3, minmax(0,1fr));
}
.service-item { padding: 18px; }
.service-icon { font-size: 46px; color: #8CC63F; margin-bottom: 12px; }
.service-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.service-item p { color: #374151; }

@media (max-width: 768px) {
  .services-section .container { grid-template-columns: 1fr; }
}

/* Festive Offer (small band)
   -------------------------------------------------------- */
.festive-offer-section {
  background: #f9fafb; text-align: center; padding: 44px 0;
}
.festive-offer-section .container { max-width: 820px; }
.festive-offer-section h2 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.festive-offer-section p { color: #374151; }

/* Promo Banner (2-column hero)
   -------------------------------------------------------- */
.promo-banner { background: #f1f1f1; padding: 40px 0; }
.promo-container {
  display: grid; gap: 28px; align-items: center;
  grid-template-columns: 1fr 1fr;
}
.promo-left { position: relative; }
.promo-img { width: 100%; border-radius: 8px; }
.promo-discount {
  position: absolute; bottom: -18px; left: 20px;
  background: #8CC63F; color: #fff; border-radius: 999px;
  padding: 10px 18px; font-size: 20px; font-weight: 800; display: inline-flex; gap: 6px;
}
.promo-right h2 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.promo-right p { color: #374151; margin-bottom: 16px; }
.services-list { list-style: none; padding: 0; margin: 0 0 18px; }
.services-list li { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.services-list i { color: #8CC63F; }
.contact-buttons { display: flex; flex-direction: column; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 4px; color: #fff; font-weight: 700; }
.call-btn { background: #0f2134; }
.call-btn:hover { background: #152d4a; }
.whatsapp-btn { background: #25d366; }
.whatsapp-btn:hover { background: #1da955; }

@media (max-width: 900px) {
  .promo-container { grid-template-columns: 1fr; text-align: center; }
  .contact-buttons { align-items: center; }
  .promo-discount { bottom: -14px; left: 50%; transform: translateX(-50%); }
}

/* Pest Management (3 cards)
   -------------------------------------------------------- */
.pest-management-section { background: #f9fafb; padding: 72px 0; text-align: center; }
.pest-management-section h2 { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.section-subtitle { max-width: 720px; margin: 0 auto 34px; color: #374151; }

.management-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(3, minmax(0,1fr));
}
.management-card {
  background: #fff; border-radius: 6px; overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.management-card:hover { transform: translateY(-4px); box-shadow: 0 8px 18px rgba(0,0,0,.08); }
.card-image img { width: 100%; height: 180px; object-fit: cover; border-top: 4px solid #8CC63F; }
.card-content { padding: 18px; text-align: left; }
.card-content h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.card-content ul { padding-left: 18px; margin: 0; }
.card-content li { color: #374151; margin-bottom: 8px; }

@media (max-width: 900px) {
  .management-grid { grid-template-columns: 1fr; }
}

/* Pest Solutions (cards grid)
   -------------------------------------------------------- */
.pest-solutions { background: #fafafa; padding: 60px 0; }
.pest-solutions h2 { text-align: center; font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.section-subtext { text-align: center; max-width: 820px; margin: 0 auto 34px; color: #374151; }
.service-grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
}
.service-card {
  background: #fff; border: 1px solid #e5e7eb; border-top: 4px solid #8CC63F;
  display: flex; flex-direction: column; transition: box-shadow .25s ease;
}
.service-card:hover { box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.service-card img { width: 100%; height: 200px; object-fit: cover; }
.service-content { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.service-content h3 { font-size: 18px; font-weight: 800; }
.service-content p { color: #4b5563; }
.book-btn {
  display: inline-block; align-self: flex-start; margin-top: 6px;
  border: 1px solid #2563eb; color: #2563eb; padding: 8px 16px; border-radius: 4px; font-weight: 700; transition: all .18s ease;
}
.book-btn:hover { background: #2563eb; color: #fff; }

/* Pests & Sectors (icon grid + show-all)
   -------------------------------------------------------- */
.pest-sector { background: #f8f9fa; padding: 60px 0; text-align: center; }
.pest-sector h2 { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.pest-sector p { max-width: 720px; margin: 0 auto 30px; color: #444; }

.pests-grid, .sectors-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 24px;
}
.pest-item, .sector-item {
  width: 140px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 14px 10px; transition: box-shadow .2s ease, transform .2s ease; cursor: pointer;
}
.pest-item:hover, .sector-item:hover { box-shadow: 0 8px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.pest-item img, .sector-item img { width: 42px; height: 42px; margin: 0 auto 8px; }
.more-btn { background: #8CC63F; color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.hidden { display: none; }

.cta-btn button {
  background: #1e73be; color: #fff; border: 0; padding: 12px 22px; border-radius: 6px; cursor: pointer; font-weight: 800;
  transition: background .2s ease;
}
.cta-btn button:hover { background: #155b91; }

/* Reviews
   -------------------------------------------------------- */
.reviews-section { background: #f8f9fa; padding: 60px 0; text-align: center; }
.reviews-title { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.reviews-subtitle { color: #555; margin-bottom: 12px; }
.stars { color: #f6b400; font-size: 22px; margin-bottom: 4px; }
.reviews-rating { color: #333; margin-bottom: 26px; }

.reviews-grid {
  display: grid; gap: 18px; max-width: 1100px; margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
}
.review-card {
  background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.08); padding: 18px; text-align: left;
}
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: #0c243c; color: #fff; display: grid; place-items: center; font-weight: 800;
}
.review-date { font-size: 13px; color: #777; }
.review-stars { color: #f6b400; font-size: 16px; margin-bottom: 6px; }
.review-text { color: #333; }

/* Common Pests / Seasonal Pests (cards)
   -------------------------------------------------------- */
.common-pests, .seasonal-pests { background: #f8f9fa; padding: 60px 0; text-align: center; }
.common-pests .section-title, .seasonal-pests .section-title { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.common-pests .section-subtitle, .seasonal-pests .section-subtitle {
  max-width: 820px; margin: 0 auto 32px; color: #555;
}
.pest-grid {
  display: grid; gap: 22px; max-width: 1200px; margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
}
.pest-card {
  background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.08);
  display: flex; flex-direction: column; text-align: left;
}
.pest-card img { width: 100%; height: 200px; object-fit: cover; }
.pest-content { padding: 18px; }
.pest-content h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.pest-content p { color: #444; margin-bottom: 12px; }
.read-more-btn {
  display: inline-block; border: 1px solid #0056b3; color: #0056b3;
  padding: 8px 14px; border-radius: 4px; font-weight: 700; transition: all .18s ease;
}
.read-more-btn:hover { background: #0056b3; color: #fff; }

/* FAQ (accordion)
   -------------------------------------------------------- */
.faq-section { background: #f8f9fa; padding: 60px 0; }
.faq-title { text-align: center; font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.faq-subtitle { text-align: center; color: #555; margin-bottom: 28px; }

.faq-item { max-width: 900px; margin: 12px auto; border-bottom: 1px solid #e5e7eb; }
.faq-toggle {
  width: 100%; background: #e9eff4; border: 0; outline: 0; cursor: pointer;
  padding: 16px 20px; font-size: 1rem; display: flex; align-items: center; justify-content: space-between;
}
.faq-toggle .q { font-weight: 700; color: #0f172a; }
.faq-toggle .icon::before { content: '+'; font-size: 22px; line-height: 1; }
.faq-toggle[aria-expanded="true"] .icon::before { content: '–'; }

.faq-panel {
  overflow: hidden; background: #fff; color: #334155; padding: 0 20px;
  max-height: 0; transition: max-height .25s ease;
}
.faq-panel.show { padding: 16px 20px; }

/* Contact Form
   -------------------------------------------------------- */
.contact-section { background: #f3f5f6; padding: 60px 0; }
.contact-section .container { max-width: 900px; }
.contact-section h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.required-note { color: #374151; margin-bottom: 16px; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-group { flex: 1 1 260px; display: flex; flex-direction: column; }
.form-group label { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.form-group input {
  padding: 10px; font-size: 15px; border: 1px solid #d1d5db; border-radius: 4px; outline: none; transition: border-color .2s ease;
}
.form-group input:focus { border-color: #2563eb; }
.submit-btn {
  background: #2563eb; color: #fff; border: 0; border-radius: 4px; padding: 12px 22px; font-weight: 800; cursor: pointer;
  transition: background .2s ease;
}
.submit-btn:hover { background: #1e4ecf; }
@media (max-width: 600px) {
  .submit-btn { width: 100%; text-align: center; }
}

/* Map Section
   -------------------------------------------------------- */
#map-section { padding: 40px 0; background: #f8f9fa; }
#map-section .container { text-align: center; }
#map-section h2 { font-size: 24px; font-weight: 800; margin-bottom: 10px; color: #111827; }
#map-section p { color: #555; margin-bottom: 18px; }

/* Footer
   -------------------------------------------------------- */
footer { background: #0f1e2e; color: #fff; padding: 40px 20px 20px; }
.footer-sections {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; max-width: 1200px; margin: 0 auto;
}
.footer-col { flex: 1 1 260px; }
.footer-col h3 { font-size: 1.05rem; margin-bottom: 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { line-height: 1.9; }
.footer-col a { color: #fff; opacity: .95; }
.footer-col a:hover { opacity: 1; text-decoration: underline; }

.footer-brand { text-align: center; }
.footer-brand img { max-width: 160px; margin-bottom: 12px; }
.footer-social { display: flex; justify-content: center; gap: 14px; margin-top: 8px; }
.footer-social a { color: #fff; font-size: 1.2rem; opacity: .9; }
.footer-social a:hover { opacity: 1; }

.footer-copy { text-align: center; margin-top: 26px; color: #d1d5db; font-size: .92rem; }

/* Breakpoint Tweaks
   -------------------------------------------------------- */
@media (max-width: 1200px) {
  .mega-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .logo img { height: 34px; }
}


/* ===== Mobile Navbar Styles (Replaces old navbar) ===== */
.mobile-topbar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.mobile-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
}
.mobile-topbar .logo img {
  height: 36px;
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #111;
  position: relative;
  transition: all 0.3s ease;
}
.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-toggle.open .menu-icon {
  background: transparent;
}
.menu-toggle.open .menu-icon::before {
  transform: rotate(45deg) translate(4px, 4px);
}
.menu-toggle.open .menu-icon::after {
  transform: rotate(-45deg) translate(4px, -4px);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100%;
  background: #f8fafc;
  overflow-y: auto;
  transition: left 0.3s ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open { left: 0; }

.mobile-contact {
  background: #0f2134;
  color: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.contact-item { display: flex; gap: 12px; align-items: center; }
.contact-item i { font-size: 18px; }
.contact-item .title { font-size: 13px; font-weight: 600; }
.contact-item a {
  color: #cbd5e1;
  font-size: 14px;
  text-decoration: none;
}
.contact-item a:hover { color: #fff; }

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-nav-list li { border-bottom: 1px solid #e5e7eb; }
.mobile-nav-list li a,
.dropdown-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: 14px 18px;
  text-align: left;
  font-size: 15px;
  color: #111;
  cursor: pointer;
  text-decoration: none;
}

.mobile-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
  border-top: 1px solid #e5e7eb;
}
.mobile-links-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  color: #111;
  text-decoration: none;
  font-size: 14px;
}
.mobile-links-grid i {
  font-size: 18px;
  margin-bottom: 5px;
}

/* Hamburger button */
.menu-toggle {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  display: none;
}

/* Mobile Menu styles */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #ffffff;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    z-index: 999;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    padding: 12px 20px;
    border-bottom: 1px solid #e5e7eb;
    width: 100%;
    text-align: left;
  }

  .menu-toggle {
    display: block;
  }

  .navbar-main {
    position: relative;
  }
}

/* End of stylesheet */


/* ========== Services Page ========== */
.services-hero {
  position: relative;
  background: url('assets/img/services-hero.jpg') center/cover no-repeat;
  color: #fff;
  padding: 100px 20px;
  text-align: center;
}

.services-hero .hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.services-hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.services-hero h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.services-hero p {
  font-size: 1rem;
  color: #e5e7eb;
}

.breadcrumb {
  font-size: 14px;
  margin-bottom: 10px;
  color: #d1d5db;
}
.breadcrumb a {
  color: #fff;
  text-decoration: underline;
}

/* Services Grid */
.services-listing {
  background: #f9fafb;
  padding: 60px 20px;
}

.services-listing .container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.service-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: 4px solid #8CC63F;
  border-radius: 5px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 15px;
}

.service-card p {
  font-size: 14px;
  color: #4b5563;
  margin: 0 15px 15px;
}

/* ===== Hero Section ===== */
.services-hero {
  position: relative;
  height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.55);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 15px;
}
.hero-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.hero-number {
  font-size: 1.1rem;
  margin-bottom: 20px;
}
.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  padding: 10px 20px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s;
}
.btn-primary {
  background: #1e73be;
  color: #fff;
}
.btn-primary:hover { background: #155b91; }
.btn-outline {
  border: 2px solid #fff;
  color: #fff;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
}

@media (max-width: 768px) {
  .services-hero { height: auto; padding: 60px 0; }
  .hero-content h1 { font-size: 1.5rem; }
}


/* Navbar base */
.navbar {
  background-color: #fff;
  border-bottom: 1px solid #eee;
  padding: 0.5rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Flex container */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo area */
.logo img {
  height: 100px; /* Adjust logo height here */
  width: auto;  /* Maintain aspect ratio */
  display: block;
  align-items: left;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #0c2238;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #0071bc;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
  }
}

/* ========== Scroll Reveal Animations ========== */
section {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
  will-change: opacity, transform;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Optional staggered animation for inner elements */
section.visible > * {
  animation: fadeUp 0.8s ease forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === Pest Card Styles === */
.pest-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pest-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.pest-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pest-card:hover img {
  transform: scale(1.05);
}

/* pest content */
.pest-content {
  padding: 16px;
}

.pest-content h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 8px;
}

/* plus icon styling */
.plus-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #0078d7;
  color: #fff;
  font-size: 0.8rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
}

.pest-card:hover .plus-icon {
  transform: rotate(90deg) scale(1.1);
  background-color: #005ea6;
}

/* optional: collapse paragraph for interactivity (optional JS below) */
.pest-content p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}
