/* custom.css */

/* You can later refine these styles. For now, the header and footer colors are inline in base.html. */

/* Global font: Inter for body text */
body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /*  padding-top: 80px;*/
}

/* Example: Make header title larger on mobile devices */
@media (max-width: 576px) {
  header h1 {
    font-size: 1.5rem;
  }
}

img {
  -webkit-user-drag: none;
  user-drag: none;
}

/* Default state for closed accordion buttons */
.accordion-button.collapsed {
  background-color: #474A51;
  color: #fff;
  border: none; /* Remove border if desired */
}

/* Hover effect for closed accordion buttons */
.accordion-button.collapsed:hover {
  background-color: #063971;
  color: #fff;
}

/* Open accordion button remains blue */
.accordion-button:not(.collapsed) {
  background-color: #063971;
  color: #fff;
  box-shadow: none; /* Remove shadow if desired */
}


/* Ensure table header and cell content is centered */
table th, table td {
  vertical-align: middle;
  text-align: center;
}

a {
  color: #063971;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

.image-wrapper {
  position: relative;
  display: inline-block; /* Ensures wrapper fits the image width */
}

.pdf-badge {
  bottom: 10px;
  left: 10px;
  position: absolute;
  /* You can also add z-index: 2; if needed */
}

.pdf-badge img {
  width: 90px;
  background: transparent;
}

/* Gallery Section Container */
.gallery-swiper {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

/* Center each slide */
.gallery-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Image wrapper ensures the image and overlay are positioned correctly */
.image-wrapper {
  position: relative;
  display: inline-block;
}

/* Navigation buttons for the gallery: Round, square-like when viewed, overlaying on image edges */
.swiper-button-next,
.swiper-button-prev {
  background-color: #d3d3d3 !important; /* Light grey */
  color: #fff !important;
  width: 60px;   /* Fixed width */
  height: 60px;  /* Fixed height */
  border-radius: 50%; /* Perfect circle */
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.swiper-button-next {
  right: 10px;
}

.swiper-button-prev {
  left: 10px;
}

/* Hover effect for navigation buttons: darken the background */
.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: #a9a9a9 !important;  /* Darker grey */
}

/* Pagination dots: position and style as needed */
.swiper-pagination {
  bottom: 10px !important;
  text-align: center;
}

/* Ensure gallery images do not overflow */
.gallery-swiper .swiper-slide img {
  max-width: 100%;
  display: block;
}

/* Relevant Products Card Styling */
.relevant-card {
  transition: background-color 0.3s ease;
  background-color: #fff; /* Default white background */
}

.relevant-card:hover {
  background-color: #f0f0f0; /* Slight darkening on hover */
}

/* Relevant Products Button Styling */
.btn-relevant {
  background-color: #474A51; /* Brand black */
  color: #fff;
  border: none;
  transition: background-color 0.3s ease;
  padding: 0.5rem 1rem;
}

.btn-relevant:hover {
  background-color: #063971; /* Brand blue on hover */
  color: #fff;
}

/* Ensure all links are in brand blue if desired */
a {
  color: #063971;
}

body {
  background: url('../images/tile_background.jpg') repeat;
}

.contact-form-container {
  background-color: #f0f0f0; /* Light grey background */
  padding: 20px;
  border-radius: 8px;
}

.contact-form-container .form-label {
  font-weight: bold;
  margin-bottom: 5px;
}

.contact-form-container input,
.contact-form-container select,
.contact-form-container textarea {
  margin-bottom: 15px;
  padding: 8px;
}

/* Button styling: brand grey with white text, hover changes to brand blue */
.btn-custom {
  background-color: #474A51;  /* Brand grey */
  color: #fff;                /* White text */
  border: none;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s ease;
}

.btn-custom:hover {
    background-color: #063971;  /* Brand blue on hover */
    color: #fff;
}

.btn-custom-outline {
  background-color: #474A51;  /* Brand grey */
  color: #fff;                /* White text */
  border: 1px solid white;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s ease;
}

.btn-custom-outline:hover {
  background-color: #063971;  /* Brand blue on hover */
  color: #fff;
}

/* Header Logo and Text */
header {
  position: fixed;
  background-color: rgba(6, 57, 113, 1);
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* High enough so it stays above other elements */
  transition: background-color 0.3s ease, color 0.3s ease;
  padding: 15px 0; /* Consistent vertical padding for 80px total height */
}

.header-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.header-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  font-size: 30px;
  line-height: 30px;
}

/* Styles applied when scrolled */
header.scrolled {
  position: fixed;
  background-color: rgba(6,57,113,0.7); /* semi-transparent */
}
header.scrolled .menu-link {
  color: #474A51; /* brand grey */
}
header.scrolled .header-text {
  color: #fff; /* brand blue */
}

/* Reduce further on very small screens if needed */
@media (max-width: 576px) {
  header {
    padding: 12.5px 0; /* Adjusted padding for mobile: 35px logo + 25px padding = 60px total */
  }
  .header-logo {
    width: 35px;
    height: 35px;
  }
  .header-text {
    font-size: 20px;
    line-height: 20px;
  }
}

/* Menu button styling */
.btn-secondary {
  background-color: #474A51;
  color: #fff;
  border: none;
  transition: background-color 0.3s ease;
}

.btn-secondary:hover {
  background-color: #063971;
  color: #fff;
}

/* Primary Navigation (Desktop) */
.nav-list {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}
.nav-list li {
  margin-right: 1rem;
}
.nav-list li a {
  color: #fff !important;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 999px; /* Oval shape */
  transition: background-color 0.3s, color 0.3s;
}
.nav-list li a:hover,
.nav-list li a.active {
  background-color: #fff;
  color: #000 !important;
}

/* Desktop Mega Menu Container */
.mega-menu-container {
  position: fixed;
  top: 80px;
  width: 100%;
  display: none;
  background-color: #f9f9f9;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  z-index: 9999;
}
.mega-menu-container.show {
  display: block;
}

.mega-menu-container .btn-close {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 10;
}

.mega-menu-container .btn-close {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 10;
}

.mega-menu-container li {
  cursor: pointer;
  padding: 0.5rem 0;
  color: #333;
  transition: color 0.2s;
  font-weight: 400;
}

.mega-menu-container li.active,
.mega-menu-container li:hover {
  font-weight: 600;
  color: #063971;
}

.category-products,
.category-plants {
  display: none;
}

.category-products.show,
.category-plants.show {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1rem 0;
}

.category-products img,
.category-plants img {
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.category-products img:hover,
.category-plants img:hover {
  transform: scale(1.05);
}

.category-products p,
.category-plants p {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: #222;
}

/* Category list in desktop mega menu */
#categoryList li {
  padding: 0.5rem 0;
  cursor: pointer;
  font-weight: 400;
  color: #333;
}
#categoryList li.active,
#categoryList li:hover {
  font-weight: 600;
  color: #063971;
}

/* Product items in desktop mega menu */
.category-products img {
  object-fit: cover;
  width: 100%;
}

/* Mobile Navbar toggler icon forced to white */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

#mobileNavbar {
  max-height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Style for the inline plus icon on the main Products link */
.plus-icon {
  background-color: #fff;
  color: #063971;
  border-radius: 4px;
  padding: 2px 8px;
  font-weight: bold;
  font-size: 16px;
}

/* Plus button for categories */
.btn-plus {
  background-color: #fff;
  color: #063971;
  border: none;
  border-radius: 4px;
  width: 25px;
  height: 25px;
  font-weight: bold;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}

button.btn-plus[aria-expanded="true"],
.plus-icon[aria-expanded="true"] {
  transform:rotate(45deg);
  transition:transform .2s ease;
}

/* Entire submenu bar with dark background */
.products-submenu {
  background-color: #474A51;
  padding: 0.5rem 0;
}

/* Container for the submenu items (horizontal list) */
.submenu-list {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Each item is horizontally placed, with icon on left, text on right */
.submenu-item {
  margin: 0 0.5rem; /* spacing between items */
  background-color: transparent; /* default background */
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.submenu-item a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff;
  padding: 0.5rem 1rem; /* clickable area */
}

/* The icon is displayed to the left, sized as needed */
.submenu-icon {
  width: 48px;
  height: 48px;
}

/* The text on the right */
.submenu-text {
  font-size: 16px;
  white-space: nowrap; /* keep text on one line */
}

/* Hover state: brand blue background, white text remains */
.submenu-item:hover {
  background-color: #063971; /* brand blue */
}

/* Active state: a lighter grey background (as in your screenshot) */
.submenu-item.active {
  background-color: #5a5a5a; /* or #474A51 if you prefer */
}


/* --- Landing Section Styles --- */
.landing-section {
  background-color: #f9f9f9; /* Plain background */
  padding: 60px 0;
  margin-bottom: 40px;  /* Vertical space between sections */
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #063971;
  margin-bottom: 20px;
}

/* New lead text styling: centered, brand grey */
.section-lead {
  font-size: 1.25rem;
  color: #474A51; /* Brand grey */
  margin-bottom: 1rem;
  text-align: center;
}

/* Section paragraph styling: left justified */
.section-paragraph {
  font-size: 1rem;
  color: #333;
  text-align: left;
  white-space: pre-wrap;  /* preserve line breaks */
  margin-bottom: 20px;
}

/* --- Product Card Hover Effect --- */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* Mobile-only styles for the submenu */
@media (max-width: 768px) {
  /* Container for the submenu with horizontal scrolling */
  .submenu-list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    margin: 0;
    padding: 0 10px;
    /* Align items to the left so the first item is visible */
    justify-content: flex-start;
    /* Use scroll-snap to ensure items snap into view */
    scroll-snap-type: x mandatory;
  }
  .submenu-list::-webkit-scrollbar {
    display: none;
  }
  -ms-overflow-style: none;
  scrollbar-width: none;
  
  /* Each submenu item: icon on left, text on right */
  .submenu-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 15px;
    margin: 0 8px;
    min-width: 120px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    color: #fff;
    background-color: transparent;
    /* Ensure each item snaps to the start */
    scroll-snap-align: start;
  }
  .submenu-item:hover,
  .submenu-item.active {
    background-color: #063971;
    color: #fff;
  }
  
  .submenu-icon {
    width: 32px;
    height: 32px;
    margin-right: 8px;
  }
  .submenu-text {
    font-size: 14px;
    text-align: left;
    white-space: nowrap;
  }
  
  /* Show hand swipe scroll hint on mobile */
  .scroll-hint {
    position: relative;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    color: #fff;
    animation: handSwipe 1.5s ease-in-out infinite;
  }
  
  @keyframes handSwipe {
    0% {
      opacity: 1;
      transform: translateY(-50%) translateX(0);
    }
    50% {
      opacity: 0.5;
      transform: translateY(-50%) translateX(10px);
    }
    100% {
      opacity: 0;
      transform: translateY(-50%) translateX(20px);
    }
  }
}

/* Hide the scroll hint on desktop */
@media (min-width: 768px) {
  .scroll-hint {
    display: none !important;
  }
}

/* WhatsApp widget styling */
.whatsapp-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25d366;  /* WhatsApp green */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.whatsapp-widget:hover {
  transform: scale(1.1);
}

.whatsapp-widget img {
  width: 40px;
  height: 40px;
}

/* Blog Recommendation Widget (AI Assistant Placeholder) */
.blog-widget {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 999;
  width: 320px;
  background: linear-gradient(135deg, #063971 0%, #0a4d94 100%);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  padding: 20px;
  color: #fff;
  animation: slideInRight 0.5s ease-out;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.blog-widget.hiding {
  animation: slideOutRight 0.3s ease-out;
  opacity: 0;
  transform: translateX(400px);
}

.blog-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.blog-widget-icon {
  font-size: 28px;
  margin-bottom: 8px;
  display: inline-block;
  animation: butterflyFlutter 2s ease-in-out infinite;
}

/* Butterfly fluttering animation */
@keyframes butterflyFlutter {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-8px) rotate(-5deg);
  }
  50% {
    transform: translateY(-4px) rotate(0deg);
  }
  75% {
    transform: translateY(-8px) rotate(5deg);
  }
}

.blog-widget-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.blog-widget-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.blog-widget-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  opacity: 0.9;
}

.blog-widget-content {
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 14px;
}

.blog-widget-link {
  display: inline-block;
  background: #fff;
  color: #063971;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.blog-widget-link:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: #063971;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

/* Mobile responsiveness for blog widget */
@media (max-width: 768px) {
  .blog-widget {
    width: calc(100vw - 40px);
    max-width: 340px;
    bottom: 90px;
    right: 10px;
    padding: 16px;
  }

  .blog-widget-content {
    font-size: 14px;
  }

  .whatsapp-widget {
    bottom: 15px;
    right: 15px;
    width: 55px;
    height: 55px;
  }

  .whatsapp-widget img {
    width: 35px;
    height: 35px;
  }
}

.site-footer {
  background-color: #454A51;
  color: #fff;
  font-size: 0.95rem;
}

.site-footer h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: 0.5rem;
}

.footer-list a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-list a:hover {
  color: #fff;
}

.footer-logo {
  width: 60px;
  height: auto;
}

.footer-socials a {
  display: inline-block;
  margin-right: 0.75rem;
  color: #fff;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: #063971;
}

.sub-footer {
  background-color: #7e8085; /* lighter shade of 454a71 */
  font-size: 0.85rem;
  color: #eee;
}

/*Plant Mega Menu Start*/

/* Plants Mega Menu - Container */
/*#plantsMenuContainer {
  position: fixed;
  top: 80px;
  width: 100%;
  display: none;
  background-color: #f9f9f9;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  z-index: 9999;
}
*/

/* Close button inside plants menu */
#plantsMenuContainer .btn-close {
  position: absolute;
  bottom: 10px;
  right: 10px;
}

/* Category list (left side) */
#plantCategoryList li {
  padding: 0.5rem 0;
  cursor: pointer;
  font-weight: 400;
  color: #333;
}
#plantCategoryList li.active,
#plantCategoryList li:hover {
  font-weight: 600;
  color: #063971;
}

/* Plant thumbnails (right side) */
.category-plants {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1rem 0;
}
.category-plants img {
  object-fit: cover;
  width: 100%;
  border-radius: 4px;
  transition: transform 0.3s ease;
}
.category-plants img:hover {
  transform: scale(1.05);
}
.category-plants p {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: #222;
}

/*Plant Mega Menu End*/

.grecaptcha-badge {
  visibility: hidden !important;
  display: none !important;
}

/* Show reCAPTCHA badge only on form pages */
body.has-recaptcha .grecaptcha-badge {
  visibility: visible !important;
  display: block !important;
  position: static !important;
  margin-top: 1rem;
  box-shadow: none !important;
  z-index: 0;
}
/* ========================================
   BREADCRUMBS - Global Styles
   ======================================== */
.nesans-breadcrumbs {
    background: transparent;
    font-size: 0.95rem;
    color: #4d5c6f;
    padding: 0.75rem 0;
    margin-bottom: 0;
}

.nesans-breadcrumbs .breadcrumb {
    background: transparent;
    margin-bottom: 0;
    padding: 0;
}

.nesans-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(6, 57, 113, 0.35);
    content: "›";
    font-size: 1.1rem;
    padding: 0 0.5rem;
}

.nesans-breadcrumbs .breadcrumb-item a {
    color: #063971;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nesans-breadcrumbs .breadcrumb-item a:hover {
    text-decoration: underline;
    color: #0a5596;
}

.nesans-breadcrumbs .breadcrumb-item.active {
    color: #4d5c6f;
}

/* Breadcrumb responsive */
@media (max-width: 767.98px) {
    .nesans-breadcrumbs {
        font-size: 0.85rem;
    }
    
    .nesans-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 0.3rem;
    }
}
