:root {
  --accent: #0d9b63;
  --dark: #083a2e;
  --muted: #6c757d;
}
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: #222;
  background: #fff;
}

/* TOP utility bar */
.top-utility {
  font-size: 0.95rem;
  background: #fff;
}
.top-utility .nav-link {
  color: var(--dark);
}
.top-utility .nav-link:hover {
  text-decoration: underline;
  color: var(--accent);
}

/* MAIN nav */
.main-nav {
  background: #f6fbf8;
}
.navbar .nav-link {
  color: var(--dark);
  font-weight: 600;
}
.navbar .nav-link:hover {
  color: var(--accent);
}

/* Dropdown on hover for desktop, accessible on focus for keyboard */
@media (min-width: 992px) {
  /* hidden by default */
  .navbar .dropdown > .dropdown-menu {
    display: block;
    transform: translateY(6px);
    opacity: 0;
    transition: all 0.12s ease;
    visibility: hidden;
    pointer-events: none;
  }

  /* show when hovering the entire nav-item or focusing the link */
  .navbar .nav-item.dropdown:hover .dropdown-menu,
  .navbar .nav-item.dropdown:focus-within .dropdown-menu {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}
/* Dropdown styling */
.dropdown-menu {
  min-width: 220px;
  border-radius: 0.6rem;
  box-shadow: 0 6px 20px rgba(7, 30, 20, 0.08);
}
.dropdown-item {
  padding: 0.6rem 1rem;
  border-radius: 0.35rem;
}
.dropdown-item:hover {
  background: linear-gradient(
    90deg,
    rgba(13, 155, 99, 0.06),
    rgba(13, 155, 99, 0.03)
  );
  color: var(--accent);
}

/* Multi-level dropdown styling */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -6px;
  margin-left: -1px;
  display: none;
}

.dropdown-submenu > .dropdown-item {
  position: relative;
  padding-right: 2rem;
}

/* Desktop hover behavior for nested dropdowns */
@media (min-width: 992px) {
  .dropdown-submenu:hover > .dropdown-menu {
    display: block;
  }
  
  /* Keep parent dropdown open when hovering submenu */
  .dropdown-submenu:hover > a {
    background: linear-gradient(
      90deg,
      rgba(13, 155, 99, 0.06),
      rgba(13, 155, 99, 0.03)
    );
    color: var(--accent);
  }

  /* Support for third-level nesting */
  .dropdown-submenu .dropdown-submenu:hover > .dropdown-menu {
    display: block;
  }
}

/* Mobile behavior for nested dropdowns */
@media (max-width: 991px) {
  .dropdown-submenu > .dropdown-menu {
    position: static !important;
    margin-left: 1rem;
    margin-top: 0.5rem;
    border: none;
    box-shadow: none;
    background: #f8f9fa;
  }
  
  .dropdown-submenu > .dropdown-menu.show {
    display: block;
  }

  /* Third-level nesting on mobile */
  .dropdown-submenu .dropdown-submenu > .dropdown-menu {
    margin-left: 1.5rem;
    background: #e9ecef;
  }
}

/* Disabled menu items styling */
.dropdown-item.disabled {
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

/* Hero */
.hero {
  background-image: url("images/indexpage/slide1.jpeg");
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
  padding: 110px 0 70px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2, 36, 24, 0.35),
    rgba(2, 36, 24, 0.6)
  );
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-weight: 700;
  font-size: 2.6rem;
  letter-spacing: 0.2px;
}
.hero p {
  color: rgba(235, 250, 240, 0.95);
  margin-bottom: 1.25rem;
}

/* Products */
.product-card {
  border-radius: 0.6rem;
  overflow: hidden;
  border: 1px solid rgba(10, 10, 10, 0.04);
  background: #fff;
}
.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.product-card .card-body {
  padding: 0.8rem;
  text-align: center;
}

/* Icon boxes */
.icon-box {
  padding: 22px;
  border-radius: 0.6rem;
  background: #fff;
  box-shadow: 0 6px 22px rgba(10, 10, 10, 0.04);
}
.icon-box img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}

/* Process */
.process-step {
  text-align: center;
  padding: 10px;
}
.process-step img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 10px;
  display: inline-block;
}

/* Customization */
.customization {
  background-image: url("images/indexpage/customize1.jpeg");
  background-size: cover;
  background-position: center;
  color: hsl(240, 3%, 6%);
  padding: 46px 0;
}
.customization .card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #09090a;
}

/* Advantages */
.advantages .card {
  border: none;
  border-radius: 0.6rem;
  overflow: hidden;
}
.advantages .card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

/* Trusted logos */
.trusted-logos img {
  max-height: 56px;
  padding: 10px;
  filter: grayscale(0);
  opacity: 0.95;
}

/* Reviews block */
.reviews-block {
  background: var(--dark);
  color: #e2f5ea;
  padding: 18px;
  border-radius: 6px;
}

/* FAQ */
.faq-section {
  background-image: url("images/indexpage/fqback.jpeg");
  background-size: cover;
  background-position: center;
  padding: 55px 0;
  color: #fff;
}
.faq-section .accordion-button {
  background: rgba(255, 255, 255, 0.06);
  color: #0c6b28;
  border: none;
}
.faq-section .accordion-item {
  border: none;
}
.faq-section .accordion-body {
  color: #f0f8f3;
  background: #0c6b28;
}

/* Footer */
footer {
  background: #072a21;
  color: #d5efe3;
  padding: 40px 0;
}
footer a {
  color: #cfeee0;
  text-decoration: none;
}
footer a:hover {
  color: #fff;
  text-decoration: none;
}

/* Responsive tweaks */
@media (max-width: 767px) {
  .hero {
    padding: 60px 0;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .product-card img {
    height: 160px;
  }
}

/* Testimonials */
.testimonial-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  padding: 12px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.testimonial-card .thumb {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
}
.testimonial-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
.testimonial-card p {
  margin: 10px 0 6px;
  flex: 0 0 auto;
}
.testimonial-card strong {
  color: #0d9b63;
}

/* layout for 3-at-a-time */
.testimonial {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
  padding: 0 10px;
}
.carousel-item .d-flex {
  width: 100%;
}

@media (max-width: 991.98px) {
  .testimonial {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .navbar-nav {
    align-items: flex-start !important;
    text-align: left !important;
    width: 100%;
  }
  .navbar-nav .nav-link {
    width: 100%;
  }
}
@media (max-width: 575.98px) {
  .testimonial {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ====================================
   Floating Contact Sidebar
   ==================================== */
.floating-contact-sidebar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-right: 0;
}

.contact-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgb(72, 150, 113) 0%, rgb(25 135 84) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgb(25 135 84);
  transition: all 0.3s ease;
  border: none;
}

.contact-btn:hover {
  background: linear-gradient(135deg, rgb(72, 150, 113) 0%, rgb(25 135 84) 100%);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(25, 135, 84, 0.6);
  color: white;
}

.contact-btn i {
  line-height: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-btn {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
  
  .floating-contact-sidebar {
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .contact-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .floating-contact-sidebar {
    gap: 12px;
  }
}
