/* ===================== RESET & BASE ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f4f8fa;
  color: #222;
  line-height: 1.6;
}

/* ===================== HEADER ===================== */
header {
  background-color: #1565c0;
  color: #fff;
  font-family: 'Segoe UI', Arial, sans-serif;
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.15);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 40px;
  flex-wrap: wrap;
  gap: 20px;
}

/* Logo */
.logo svg { height: 55px; }

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}
nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.25s;
}
nav ul li a:hover { color: #aed581; }

/* Contact Info */
.contact-box { text-align: right; font-size: 14px; }
.contact-box a.phone {
  color: #aed581; font-weight: bold; text-decoration: none;
}
.contact-box a.phone:hover { text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-block;
  background-color: #aed581;
  color: #1565c0;
  padding: 8px 18px;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  margin-top: 8px;
  transition: 0.3s;
}
.btn:hover {
  background-color: #9ccc65;
  color: #104684;
}

/* Responsive header */
@media (max-width: 900px) {
  .header-container { flex-direction: column; text-align: center; }
  nav ul { flex-direction: column; gap: 15px; }
  .contact-box { text-align: center; }
}

/* ===================== HERO SLIDER ===================== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
}

.hero-slider .slide {
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: left 0.5s ease-in-out;
}

.hero-slider .slide.active {
  left: 0;
}

.hero-slider .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
}

.hero-slider .content {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
  padding: 20px;
}

.hero-slider h1 {
  font-size: 2.7rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.hero-slider p {
  font-size: 1.3rem;
  margin-bottom: 22px;
}

.hero-slider .btn-primary {
  background-color: #aed581;
  color: #1565c0;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 1.1rem;
  transition: 0.3s;
}

.hero-slider .btn-primary:hover {
  background-color: #9ccc65;
  color: #104684;
}

/* Navigation arrows */
.hero-slider .prev,
.hero-slider .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 10px;
  font-size: 18px;
  cursor: pointer;
  z-index: 2;
}

.hero-slider .prev {
  left: 10px;
}

.hero-slider .next {
  right: 10px;
}

/* ===================== SERVICES ===================== */
#services { background: #e3f2fd; padding: 56px 0; text-align: center; }
#services h2 { font-size: 2rem; margin-bottom: 32px; color: #1565c0; }

.service-grid {
  display: flex; flex-wrap: wrap; gap: 36px; justify-content: center;
}
.service-item {
  background: #fff; border-radius: 8px; padding: 24px 18px;
  width: 290px; text-align: center;
  box-shadow: 0 2px 12px rgba(21,101,192,0.09);
  transition: box-shadow .2s;
}
.service-item:hover { box-shadow: 0 6px 24px rgba(21,101,192,0.18); }
.service-item img { height: 48px; }
.service-item h3 { color: #1565c0; font-size: 1.2rem; margin: 16px 0 8px; }

/* ===================== BUGS CONTROL PAGE ===================== */
.hero.bugs {
  height: 400px;
  background: url('images/Bugs-Control-Services-in-Canada.png') center/cover no-repeat;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.hero-content { position: relative; z-index: 1; }

.intro { padding: 40px 20px; text-align: center; }
.intro h2 { color: #1565c0; margin-bottom: 12px; }

.infestation-signs {
  background: #fff; padding: 40px 20px; border-radius: 8px;
  margin: 20px auto; max-width: 900px;
}
.infestation-signs h2 { color: #1565c0; text-align: center; margin-bottom: 20px; }
.infestation-signs ul { list-style: none; padding: 0; }
.infestation-signs ul li {
  position: relative; padding-left: 50px; margin-bottom: 16px; font-size: 1.1rem;
}
.infestation-signs ul li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 32px; height: 32px; background-size: contain; background-repeat: no-repeat;
}
.infestation-signs ul li.droppings::before { background-image: url('images/icons/droppings.png'); }
.infestation-signs ul li.bite-marks::before { background-image: url('images/icons/bite.png'); }
.infestation-signs ul li.musty-odor::before { background-image: url('images/icons/odor.png'); }
.infestation-signs ul li.nest::before { background-image: url('images/icons/nest.png'); }

.features { background: #e3f2fd; padding: 40px 20px; text-align: center; }
.features h2 { color: #1565c0; margin-bottom: 24px; }
.features-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.feature {
  background: #fff; padding: 20px; border-radius: 8px; width: 280px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.feature img { height: 48px; margin-bottom: 12px; }
.feature h3 { color: #1565c0; margin-bottom: 10px; }

.sub-services { padding: 40px 20px; text-align: center; }
.sub-services h2 { color: #1565c0; margin-bottom: 28px; }
.sub-grid { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.sub-grid article {
  background: #fff; border-radius: 8px; width: 300px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); text-align: center; padding: 16px;
}
.sub-grid article img {
  width: 100%; border-radius: 6px; height: 160px; object-fit: cover; margin-bottom: 12px;
}
.sub-grid article h3 { color: #1565c0; margin-bottom: 10px; }

.testimonials { background: #fffde7; padding: 40px 20px; text-align: center; }
.testimonials blockquote {
  max-width: 600px; margin: auto; font-style: italic; color: #333;
}

/* ===================== NAVIGATION DROPDOWN ===================== */
nav ul li {
  position: relative;
}

nav ul li ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: #1565c0;
  list-style: none;
  padding: 10px 0;
  min-width: 180px;
  display: none;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 9999; /* ensure it stays on top */
}

nav ul li ul li {
  width: 100%;
}

nav ul li ul li a {
  display: block;
  padding: 10px 16px;
  color: #fff;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}

nav ul li ul li a:hover {
  background: #104684;
  color: #aed581;
}

nav ul li:hover > ul {
  display: flex;
}

/* ===================== ABOUT PAGE ===================== */
.about-page {
  --bg: #f7f9fb;
  --card: #ffffff;
  --accent: #0f766e;
  --accent-2: #f97316;
  --muted: #6b7280;
  --radius: 16px;
  --max-w: 1100px;
}

.about-page .container.about {
  max-width: var(--max-w);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  display: grid;
  grid-template-columns: 1fr 380px;
  margin: 40px auto;
  position: relative;
  overflow: visible; /* prevents dropdown clipping */
}

@media (max-width: 950px) {
  .about-page .container.about { grid-template-columns: 1fr; }
  .about-page .aside { order: 2; }
}

.about-page .main { padding: 44px 48px; }

.about-page .logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.about-page .logo-mark {
  background: var(--accent);
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-page .eyebrow {
  display: inline-block;
  background: rgba(15,118,110,0.1);
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.about-page h1 {
  font-family: "Merriweather", Georgia, serif;
  color: var(--accent);
  font-size: 32px;
  margin-bottom: 20px;
}

.about-page .sub {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 20px;
}

.about-page .lead {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 18px;
}

.about-page .services {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 18px 0;
}

.about-page .services li {
  background: rgba(15,118,110,0.06);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--accent);
  font-weight: 600;
}

.about-page .cta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.about-page .btn.secondary {
  background: #fff;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.about-page .aside {
  background: #f8fcfb;
  padding: 30px;
  border-left: 1px solid rgba(15, 23, 42, 0.05);
}

.about-page .contact-card {
  background: rgba(15,118,110,0.05);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
}

.about-page .contact-card h3 {
  color: var(--accent-2);
  margin-bottom: 8px;
}

.about-page .about-image {
  margin: 20px 0;
  text-align: center;
}

.about-page .about-image img {
  max-width: 800px; /* prevent oversized images */
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===================== FOOTER ===================== */
footer {
  background-color: #1565c0;
  color: #fff;
  padding: 40px 20px;
  width: 100%;
  text-align: left;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.footer-part {
  flex: 1;
  min-width: 220px;
}

.footer-part h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #aed581;
}

.footer-part ul {
  list-style: none;
  padding: 0;
}

.footer-part ul li {
  margin-bottom: 8px;
}

.footer-part ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-part ul li a:hover {
  color: #aed581;
}

.footer-part .phone {
  color: #aed581;
  text-decoration: none;
  font-weight: bold;
}

.footer-part .btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #aed581;
  color: #1565c0;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
}
.footer-part .btn:hover {
  background-color: #9ccc65;
  color: #104684;
}

.footer-part .social-links a {
  display: inline-block;
  margin-right: 10px;
}
.footer-part .social-links img {
  width: 30px;
  height: 30px;
}

.footer-copy {
  margin-top: 20px;
  font-size: 14px;
  color: #eee;
}

/* Responsive Footer */
@media (max-width: 900px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-part {
    margin-bottom: 20px;
  }
  .footer-part .social-links a {
    margin-right: 5px;
  }
}
.footer-part .social-links img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1); /* Turns blue to white */
  transition: filter 0.3s;
}

.footer-part .social-links img:hover {
  filter: brightness(0) invert(0.7); /* Slight color change on hover */
}

/* Contact Form Styling */
.contact-section {
  background: #f4f8fa;
  padding: 50px 20px;
  text-align: center;
}

.contact-section h2 {
  font-size: 2rem;
  color: #1565c0;
  margin-bottom: 24px;
}

.contact-form {
  max-width: 700px;
  margin: auto;
}

.form-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.full-width {
  width: 100%;
  flex: 1 1 100%;
}

.form-group input,
.form-group select,
.form-group textarea {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.form-group textarea {
  resize: vertical;
}

.btn-primary {
  padding: 14px 32px;
  background-color: #aed581;
  color: #1565c0;
  border: none;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.btn-primary:hover {
  background-color: #9ccc65;
  color: #104684;
}

/* Responsive */
@media (max-width: 600px) {
  .form-group {
    flex-direction: column;
  }
}

.contact-section {
  padding: 60px 20px;
  background: #f9fafb;
  text-align: center;
}

.contact-section h2 {
  font-size: 2rem;
  color: #1565c0;
  margin-bottom: 30px;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: auto;
  text-align: left;
}

.contact-form .form-group {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.contact-form .form-group.full-width {
  flex-direction: column;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}

.contact-info-wrapper h3 {
  color: #1565c0;
  margin-bottom: 10px;
}

.contact-info-wrapper a {
  color: #1565c0;
  text-decoration: none;
  font-weight: bold;
}

.map-container {
  margin: 20px 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-images {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 40px auto;
  padding: 20px;
  max-width: 1200px;
}

.contact-images .image-card {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  padding: 15px;
}

.contact-images img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

.contact-images h4 {
  color: #1565c0;
  margin: 10px 0;
  font-size: 1.2rem;
}

.contact-images p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .contact-images {
    flex-direction: column;
  }
}

/* ===================== COCKROACH CONTROL (SCOPED) ===================== */
/* These rules are scoped under .cockroach-page so they won't affect other pages.
   Make sure your cockroach page uses <body class="cockroach-page"> */

.cockroach-page .hero.hero--cockroach {
  background: url('images/cockroach-hero.jpg') center/cover no-repeat;
  height: 420px;
  position: relative;
  display: flex;
  align-items: center;
}
.cockroach-page .hero.hero--cockroach .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
  z-index: 1;
  position: relative;
}
.cockroach-page .hero.hero--cockroach::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.cockroach-page .hero__content {
  flex: 1;
  min-width: 300px;
}
.cockroach-page .hero__content h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.cockroach-page .hero__content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.cockroach-page .hero__image { flex: 1; min-width: 280px; }

/* Why Choose Us */
.cockroach-page .why-choose {
  background: #fff;
  padding: 50px 20px;
}
.cockroach-page .why-choose .grid-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.cockroach-page .why-choose article {
  flex: 1;
  min-width: 260px;
  background: #f9fafb;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.cockroach-page .why-choose h3 {
  color: #1565c0;
  margin-bottom: 10px;
}

/* Signs & Species */
.cockroach-page .signs {
  background: #e3f2fd;
  padding: 50px 20px;
}
.cockroach-page .signs h2,
.cockroach-page .signs h3 {
  color: #1565c0;
  text-align: center;
  margin-bottom: 20px;
}
.cockroach-page .signs__list {
  max-width: 800px;
  margin: 0 auto 30px;
}
.cockroach-page .signs__list li {
  margin-bottom: 10px;
  font-size: 1.05rem;
}
.cockroach-page .species-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.cockroach-page .species-item {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  width: 260px;
}
.cockroach-page .species-item img {
  border-radius: 6px;
  margin-bottom: 10px;
}

/* Treatment Plan */
.cockroach-page .treatment {
  padding: 50px 20px;
  background: #fff;
  text-align: center;
}
.cockroach-page .treatment h2 {
  color: #1565c0;
  margin-bottom: 20px;
}
.cockroach-page .treatment ol {
  max-width: 800px;
  margin: 0 auto 30px;
  text-align: left;
}
.cockroach-page .treatment ol li {
  margin-bottom: 12px;
}

/* Prevention Tips */
.cockroach-page .prevention {
  background: #f9fafb;
  padding: 50px 20px;
}
.cockroach-page .prevention h2 {
  text-align: center;
  color: #1565c0;
  margin-bottom: 24px;
}
.cockroach-page .tips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.cockroach-page .tips-grid li {
  background: #fff;
  padding: 14px 18px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  flex: 1;
  min-width: 220px;
}

/* FAQ */
.cockroach-page .faq {
  background: #fff;
  padding: 50px 20px;
}
.cockroach-page .faq h2 {
  text-align: center;
  color: #1565c0;
  margin-bottom: 24px;
}
.cockroach-page .faq dt {
  font-weight: bold;
  color: #1565c0;
  margin-top: 18px;
}
.cockroach-page .faq dd {
  margin-left: 0;
  margin-bottom: 12px;
}

/* CTA */
.cockroach-page .cta {
  background: #1565c0;
  color: #fff;
  text-align: center;
  padding: 50px 20px;
}
.cockroach-page .cta h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
.cockroach-page .cta p {
  margin-bottom: 20px;
}
.cockroach-page .cta .btn {
  background: #aed581;
  color: #1565c0;
}
.cockroach-page .cta .btn:hover {
  background: #9ccc65;
  color: #104684;
}

/* Responsive Cockroach Page */
@media (max-width: 768px) {
  .cockroach-page .hero.hero--cockroach .container {
    flex-direction: column;
    text-align: center;
  }
  .cockroach-page .hero__image {
    order: -1;
  }
}
