/********** Template CSS **********/
:root {
  --primary: #ffe468;
  --secondary: #8cc641;
  --light: #f2f2f2;
  --dark: #272630;
}

/* === Buttons === */
.btn {
  font-weight: 700;
  transition: 0.5s;
}

.btn:hover {
  box-shadow: 0 8px 6px -6px #555;
}

.btn.btn-secondary {
  color: #fff;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  text-align: center;
}

.btn-square {
  width: 36px;
  height: 36px;
}

.btn-sm-square {
  width: 28px;
  height: 28px;
}

.btn-lg-square {
  width: 46px;
  height: 46px;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 20px;
  bottom: 20px;
  z-index: 99;
}

/* === Navbar === */
.navbar-dark .navbar-nav .nav-link {
  position: relative;
  margin-left: 25px;
  padding: 30px 0;
  font-size: 1rem;
  color: var(--light);
  transition: 0.3s;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--primary);
}

@media (min-width: 992px) {
  .navbar-dark .navbar-nav .nav-link::before {
    position: absolute;
    content: "";
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background: var(--primary);
    transition: 0.4s;
  }

  .navbar-dark .navbar-nav .nav-link:hover::before,
  .navbar-dark .navbar-nav .nav-link.active::before {
    width: 100%;
    left: 0;
  }
}

@media (max-width: 991.98px) {
  .navbar-brand img {
    height: 35px;
  }

  .navbar-nav {
    text-align: center;
  }

  .navbar-nav .nav-link {
    padding: 10px 0;
  }
}

/* === Hero Section === */
.bg-hero {
  background: url("../img/hero.jpg") center center / cover no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
}

@media (max-width: 768px) {
  .bg-hero {
    background-position: center;
    padding: 40px 15px;
  }

  .bg-hero h1 {
    font-size: 1.8rem;
  }

  .bg-hero p {
    font-size: 1rem;
  }

  .bg-hero .btn {
    padding: 10px 25px;
    font-size: 0.95rem;
  }
}

/* === About Section === */
.about-section {
  margin: 0;
  padding: 0;
}

.about-start,
.about-end {
  background: url("../img/about-bg.jpg") center center / cover no-repeat;
  margin: 0 !important;
  padding: 0 !important;
}

/* Remove unwanted spacing between sections */
.about-section .container-fluid,
.about-section .container,
.about-section .row {
  margin: 0 !important;
  padding: 0 !important;
}

/* Keep spacing inside text boxes only */
.about-start .p-5,
.about-end .p-5 {
  padding: 3rem !important;
}

/* Make sure banner image aligns tightly */
.position-relative img {
  display: block;
  margin: 0;
  padding: 0;
  vertical-align: bottom;
}

/* Responsive adjustments */
@media (min-width: 992px) {
  .about-start {
    position: relative;
    margin-right: -60px;
    z-index: 1;
  }

  .about-end {
    position: relative;
    margin-left: -60px;
    z-index: 1;
  }
}

/* === Service & Contact Items === */
.service-item,
.contact-item {
  background: url("../img/service.jpg") top center / cover no-repeat;
  transition: 0.5s;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
}

.service-item:hover,
.contact-item:hover {
  background-position: bottom center;
  transform: translateY(-5px);
}

.service-item .service-icon,
.contact-item .contact-icon {
  width: 90px;
  height: 90px;
  color: var(--secondary);
  background: #fff;
  transform: rotate(-45deg);
  margin: -45px auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-item .service-icon div,
.contact-item .contact-icon div {
  width: 100%;
  height: 100%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.5s;
}

.service-item .service-icon i,
.contact-item .contact-icon i {
  transform: rotate(45deg);
  transition: 0.5s;
}

.service-item:hover .service-icon div {
  background: var(--secondary);
}

.service-item:hover .service-icon i {
  color: var(--primary);
}

/* === Buttons on Hover === */
.service-item a.btn {
  position: relative;
  bottom: -20px;
  opacity: 0;
  transition: all 0.4s ease;
}

.service-item:hover a.btn {
  bottom: 0;
  opacity: 1;
}

/* === Quote Section === */
.bg-quote {
  background: url("../img/quote.jpg") center center / cover no-repeat;
  color: #000;
  text-align: center;
  padding: 60px 20px;
}

/* === Team Section === */
.team-item {
  position: relative;
  margin-bottom: 45px;
  overflow: hidden;
  border-radius: 10px;
}

.team-text {
  position: absolute;
  bottom: 0;
  right: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.9);
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.5s;
  border-radius: 8px;
}

.team-item:hover .team-text {
  height: 100%;
}

.team-social {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-item:hover .team-social {
  opacity: 1;
}

/* === Testimonials === */
.testimonial-carousel .owl-nav {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
  margin: 0 5px;
  width: 45px;
  height: 45px;
  color: #fff;
  background: var(--secondary);
  font-size: 22px;
  border-radius: 50%;
  transition: 0.3s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
  color: var(--dark);
  background: var(--primary);
}

.testimonial-carousel .owl-item img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

/* === Call to Action === */
.bg-call-to-action {
  background: url("../img/call-to-action.jpg") center center / cover no-repeat;
  color: #000;
  padding: 80px 20px;
  text-align: center;
}

.bg-call-to-action h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
}

.bg-call-to-action p {
  font-size: clamp(1rem, 2vw, 1.2rem);
}

/* === Footer === */
.bg-footer {
  background: url("../img/footer.jpg") center center / cover no-repeat;
  padding: 60px 20px;
  color: #fff;
}

.bg-footer a {
  color: #fff;
  text-decoration: none;
}

.bg-footer a:hover {
  color: var(--primary);
}

/********** PAGE-SPECIFIC BANNERS **********/
.bg-hero-index,
.bg-hero-about,
.bg-hero-products,
.bg-hero-contact {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-position: center center;
  background-size: cover;
}

.bg-hero-index {
  background-image: url("../img/banner-index.jpg");
}

.bg-hero-about {
  background-image: url("../img/banner-about.jpg");
}

.bg-hero-products {
  background-image: url("../img/banner-products.jpg");
}

.bg-hero-contact {
  background-image: url("../img/banner-contact.jpg");
}

/* === Mobile Adjustments === */
@media (max-width: 768px) {
  .bg-hero,
  .bg-hero-index,
  .bg-hero-about,
  .bg-hero-products,
  .bg-hero-contact {
    background-position: top center !important;
    min-height: 85vh;
    padding: 40px 15px;
  }

  .bg-hero h1,
  .bg-hero-index h1,
  .bg-hero-about h1,
  .bg-hero-products h1,
  .bg-hero-contact h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .bg-hero p,
  .bg-hero-index p,
  .bg-hero-about p,
  .bg-hero-products p,
  .bg-hero-contact p {
    font-size: 1rem;
  }

  .btn {
    padding: 10px 22px;
    font-size: 0.95rem;
  }

  .service-item {
    padding: 20px 15px;
  }

  .navbar-dark .navbar-nav .nav-link {
    font-size: 1rem;
    padding: 10px 0;
  }

  .navbar-brand img {
    height: 32px;
  }

  .team-text {
    height: auto;
    padding: 15px;
  }
}

/********** Mobile Contact Info **********/
@media (max-width: 767px) {
  .contact-info {
    justify-content: center;
    padding: 10px 0;
    margin: 0;
    border: none;
  }

  .contact-info i {
    font-size: 1.5rem;
  }
}
.card img {
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

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

.card h5 {
  margin-top: 15px;
  color: #222;
}


.product-card {
  background: #a7a6a6;
  border-radius: 10px;
  padding: 20px;
  transition: 0.3s;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.product-card img {
  width: 100%;
  height: 250px; /* Set uniform height */
  object-fit: contain;
  border-radius: 10px;
}

.product-card h5 {
  margin-top: 15px;
  font-weight: 700;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
