/* ================= GENERAL PAGE STYLING ================= */
body {
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

/* ================= RESPONSIVE STYLING ================= */
@media (max-width: 576px) {
  h1.display-4 {
    font-size: 2rem;
  }

  h2,
  h3,
  h4 {
    font-size: 1.5rem;
  }

  .btn {
    width: 100%;
  }

  section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ================= SECTION OFFSET ================= */

section {
  scroll-margin-top: 90px;
}

/* ================= HEADER SECTION ================= */
header {
  padding: 0;
}

/* ================= BOOTSTRAP NAVBAR ================= */
.navbar {
  background-color: white !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
}

/* ================= NAV LINKS ================= */
.navbar-nav .nav-link {
  color: #333;
}

.navbar-nav .nav-link:hover {
  color: #911035;
}

/* ================= HERO SECTIONS ================= */
/* Index page hero */
.index-hero {
  background-image: url("images/index-hero.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.index-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
  z-index: 0;
}

.index-hero > * {
  position: relative;
  z-index: 1;
}

/* Termite hero */
.termites-hero {
  background-image: url("images/termite-hero.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
  min-height: 20vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.termites-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
  z-index: 0;
}

.termites-hero > * {
  position: relative;
  z-index: 1;
}

/* Cockroach hero */
.cockroaches-hero {
  background-image: url("images/cockroach-hero.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
  min-height: 20vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.cockroaches-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
  z-index: 0;
}

.cockroaches-hero > * {
  position: relative;
  z-index: 1;
}

/* Ants hero */
.ants-hero {
  background-image: url("images/ant-hero.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
  min-height: 20vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.ants-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
  z-index: 0;
}

.ants-hero > * {
  position: relative;
  z-index: 1;
}

/* Mosquito hero */
.mosquito-hero {
  background-image: url("images/mosquito-hero.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
  min-height: 20vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.mosquito-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
  z-index: 0;
}

.mosquito-hero > * {
  position: relative;
  z-index: 1;
}

/* Flea hero */
.flea-hero {
  background-image: url("images/flea-hero.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
  min-height: 20vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.flea-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
  z-index: 0;
}

.flea-hero > * {
  position: relative;
  z-index: 1;
}

/* Rat hero */
.rat-hero {
  background-image: url("images/rat-hero.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
  min-height: 20vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.rat-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
  z-index: 0;
}

.rat-hero > * {
  position: relative;
  z-index: 1;
}

/* Residential hero */
.residential-hero {
  background-image: url("images/residential-hero.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
  min-height: 20vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.residential-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
  z-index: 0;
}

.residential-hero > * {
  position: relative;
  z-index: 1;
}

/* Commercial hero */
.commercial-hero {
  background-image: url("images/commercial-hero.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
  min-height: 20vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.commercial-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
  z-index: 0;
}

.commercial-hero > * {
  position: relative;
  z-index: 1;
}

/* ================= CARD HOVER EFFECTS ================= */
.card.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ================= BRAND LOGOS ================= */
.brand-logo {
  max-height: 60px;
  max-width: 150px;
  object-fit: contain;
}

/* ================= MIDDLE SECTION COLOURING ================= */
#why-choose-us,
#services,
#sec2 {
  background-color: #c5cacf;
}

/* ================= CUSTOM CARD STYLING ================= */
.custom-card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.custom-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.custom-card img {
  height: 200px;
  object-fit: cover;
}

.custom-card .card-body {
  padding: 1.5rem;
  background-color: #fff;
}

.custom-card .btn-danger {
  background-color: #6d0c27;
  border: none;
}

.custom-card .btn-danger:hover {
  background-color: #6d0c27;
}

.card-img-top {
  height: 250px;
  object-fit: cover;
}

#services .card-img-top {
  height: 200px;
  object-fit: contain;
  padding: 10px;
  background-color: #fff;
}

/* ================= PEST IMAGE STYLING ================= */
.pest-img {
  width: 100%;
  height: 350px;
  object-fit: contain;
  background-color: white;
  padding: 10px;
}

.pest-service-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* ================= RESPONSIVE IMAGE HEIGHT ================= */
@media (max-width: 768px) {
  .pest-service-img {
    height: 250px;
  }
}
