/* Brand overrides and shared component styles.
   Extracted from inline <style> blocks so the browser can cache them. */

/* --- Brand colour overrides --- */
.btn-primary {
  background-color: #116530 !important;
  border-color: #116530 !important;
  color: #fff !important;
}

.btn-primary:hover {
  background-color: #0e5227 !important;
  border-color: #0e5227 !important;
}

.btn-primary:focus,
.btn-primary.focus {
  background-color: #0e5227 !important;
  border-color: #0e5227 !important;
  box-shadow: 0 0 0 0.25rem rgba(17, 101, 48, 0.5) !important;
}

.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
  background-color: #0c451f !important;
  border-color: #0c451f !important;
}

.btn-primary:disabled,
.btn-primary.disabled {
  background-color: #116530 !important;
  border-color: #116530 !important;
  opacity: 0.65;
}

.text-primary {
  color: #116530 !important;
}

.bg-primary {
  background-color: #0e5227 !important;
  border-color: #0e5227 !important;
}

.link-primary,
a.link-primary {
  color: #008037 !important;
  text-decoration-color: #008037 !important;
}

.link-primary:hover,
a.link-primary:hover,
.link-primary:focus {
  color: #005a27 !important;
  text-decoration-color: #005a27 !important;
}

.dropdown-item:active {
  background-color: #008037 !important;
  color: #fff !important;
}

/* --- Media crops --- */
.service-item-2 {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.service-item-2 img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.post-img-2 {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.post-img-2 img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.slider-img-2 {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* --- Swiper logo strip --- */
.swiper-slide {
  transition: transform 0.3s ease;
}

.swiper-slide:hover {
  transform: scale(1.05);
}

.swiper-slide img {
  max-height: 100px;
  object-fit: contain;
  width: auto;
  margin: auto;
}

/* --- Certifications --- */
.certification-logo {
  max-width: 120px;
  height: auto;
}

.certification-box {
  border-left: 4px solid #0e5227;
  background-color: rgb(216, 220, 216);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.certification-title {
  font-weight: 600;
  font-size: 1.25rem;
}

/* --- Utilities replacing inline styles --- */
.hero-bg {
  background-image: url(../img/hero-bg.jpg);
}

.site-logo {
  width: 150px;
}

.footer-logo {
  width: 200px;
}

/* Beats `.testimonials .testimonial img` in main.css, which the old inline style overrode. */
img.avatar-70,
.testimonials .testimonial img.avatar-70 {
  width: 70px;
  height: 70px;
}

.carousel-inner-260 {
  height: 260px;
}

.carousel-inner-450 {
  height: 450px;
}

.img-contain {
  object-fit: contain;
}

.cert-strip {
  background-color: #d4d9d6;
}

.whatsapp-float {
  position: fixed;
  width: 52px;
  height: 52px;
  bottom: 15px;
  left: 15px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  box-shadow: 2px 2px 3px #999;
  z-index: 4;
}

.whatsapp-float .bi-whatsapp {
  margin-top: 8px;
  font-size: 35px;
}
