/* =========================================
   SITE-WIDE CONTENT WIDTH
   Keeps every page's content inside a 1280px
   canvas, matching the Figma design frame.
========================================= */
.container-fluid,
.container,
.custom-container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}


.video-animation-section {
   margin: 0 auto;
    width: 1220px;}
/* =========================================
   CAROUSEL MOUSE-DRAG CURSOR
   Paired with assets/js/wheel-carousel.js
========================================= */
.carousel-draggable {
  cursor: grab;
  user-select: none;
}

.card-carousel-dots .dot-item {
    font-size: 0px !important;
    padding: 0px !important;
}


.carousel-draggable.carousel-dragging {
  cursor: grabbing;
}

/* =========================================
   SHARED SITE HEADER / NAVIGATION
   Used on every page via header.php
========================================= */

.header-wrapper {
  position: relative;
  flex-wrap: nowrap !important;
  gap: 12px;
  padding: 12px 16px;
}
.kb-slider-item img {
    border-radius: 15px;}
/* Logo */
.logo-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.brand-logo {
  max-height: 44px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.logo-wrapper:hover .brand-logo {
  transform: scale(1.06);
}

/* Nav (Joined Pill Look) */
.custom-nav {
  display: flex;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: nowrap !important;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-pill-group {
  background-color: #2c2c2c;
  border-radius: 30px;
  z-index: 2;
  gap: 4px;
  padding: 8px 16px;
  flex-wrap: nowrap !important;
}

.contact-pill-btn {
  background-color: #2c2c2c;
  color: #ffffff;
  border-radius: 30px;
  padding: 8px 18px 8px 24px; /* Extra left padding for seamless overlap */
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  margin-left: -12px; /* Overlaps with left pill group */
  z-index: 1;
  transition: background-color 0.25s ease, transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
body.hero-section {
    background-color: #f3f2ee !important;}

.contact-pill-btn:hover {
  background-color: #111111;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.contact-pill-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-item-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  transition: color 0.25s ease, transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  white-space: nowrap;
}

.nav-item-link.active,
.nav-item-link:hover {
  color: #ffffff;
}

.nav-item-link:hover {
  transform: translateY(-2px);
}

.nav-item-link:active {
  transform: translateY(0);
}

/* Red Dot Indicator */
.red-dot {
    width: 8px !important;
    height: 8px  !important;
    background-color: #ea332d;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    box-sizing: border-box;
    position: relative;
    top: -1px;
    left: -3px;
    transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.25s ease;
}
.white-pill-overlay {
    background-color: #ffffffe0 !important;}
.nav-item-link:hover .red-dot,
.contact-pill-btn:hover .red-dot {
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(234, 51, 45, 0.7);
}

.nav-item-link.active .red-dot {
  outline: 2px solid #ea332d;
  outline-offset: 2px;
  background-color: transparent;
}

/* Categories Nav Dropdown */
.nav-item-dropdown {
  position: relative;
}

.nav-item-link.dropdown-toggle::after {
  vertical-align: 1px;
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-item-link.dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  background-color: #ffffff;
  border: none;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  padding: 10px;
  margin-top: 14px !important;
  min-width: 240px;
}

/* Invisible bridge so hovering across the gap between the pill and the
   menu doesn't drop out of :hover and close the menu mid-transit. */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

@media (min-width: 992px) {
  /* Child combinator (>), not descendant: the submenu flyout also carries
     the .nav-dropdown-menu class (for shared background/shadow/padding), so
     a plain descendant selector here would force-open every nested submenu
     the instant "Categories" is hovered, regardless of which one (if any)
     is actually being pointed at. */
  .nav-item-dropdown:hover > .nav-dropdown-menu,
  .nav-item-dropdown.nav-hover-open > .nav-dropdown-menu {
    display: block;
    animation: navDropdownFadeIn 0.15s ease;
  }

  .nav-item-dropdown:hover .nav-item-link.dropdown-toggle::after {
    transform: rotate(180deg);
  }
}

@keyframes navDropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  color: #333333;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-dropdown-item i {
  width: 16px;
  text-align: center;
  color: #ea332d;
  font-size: 0.8rem;
}

.nav-dropdown-item:hover,
.nav-dropdown-item:focus {
  background-color: #f3f2ee;
  color: #111111;
}

.nav-dropdown-menu .dropdown-divider {
  margin: 6px 4px;
  border-color: #eeeeee;
}

/* Nested submenu (e.g. Categories > Website Experience > Custom HTML) */
.dropdown-submenu {
  position: relative;
}

.nav-dropdown-submenu-menu {
  display: none;
  position: absolute;
  top: -10px;
  left: 100%;
  margin: 0 0 0 -2px !important;
}

.nav-dropdown-submenu-caret {
  margin-left: auto;
  font-size: 0.65rem;
  color: #bbbbbb;
}

@media (min-width: 992px) {
  .dropdown-submenu:hover > .nav-dropdown-submenu-menu,
  .dropdown-submenu.nav-hover-open > .nav-dropdown-submenu-menu {
    display: block;
    animation: navDropdownFadeIn 0.15s ease;
  }
}

/* =========================================
   MOBILE HAMBURGER TOGGLE
========================================= */
.nav-toggler {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background-color: #2c2c2c;
  border: none;
  border-radius: 50%;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-toggler:hover {
  background-color: #111111;
  transform: translateY(-2px);
}

.nav-toggler-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background-color: #ffffff;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.2s ease;
}

.nav-toggler[aria-expanded="true"] .nav-toggler-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggler[aria-expanded="true"] .nav-toggler-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggler[aria-expanded="true"] .nav-toggler-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Responsive */
@media (min-width: 992px) {
  /* Force the nav to stay visible on desktop regardless of Bootstrap's collapse state */
  .custom-nav.collapse {
    display: flex !important;
  }
}

@media (max-width: 991px) {
  .nav-toggler {
    display: flex;
  }

  .brand-logo {
    max-height: 32px;
  }

  /* Nav becomes a dropdown card under the header when opened */
  .custom-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 50;
    flex-direction: column;
    align-items: stretch !important;
    gap: 12px;
    background-color: #ffffff;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    font-size: 0.85rem;
  }

  .nav-pill-group {
    flex-direction: column;
    align-items: stretch !important;
    background-color: transparent;
    padding: 0;
    gap: 4px;
  }

  .nav-item-link {
    padding: 12px 14px;
    border-radius: 14px;
    background-color: #f3f2ee;
    gap: 8px;
  }

  .nav-item-link:hover {
    transform: none;
    background-color: #2c2c2c;
  }

  .contact-pill-btn {
    margin-left: 0;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 14px;
  }

  .red-dot {
    width: 6px;
    height: 6px;
  }

  .nav-item-link.dropdown-toggle {
    justify-content: space-between;
  }

  .nav-dropdown-menu {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    box-shadow: none;
    background-color: transparent;
    border-radius: 0;
    padding: 4px 0 4px 10px;
    margin: 2px 0 0 !important;
    border-left: 2px solid rgba(234, 51, 45, 0.25);
  }

  .nav-dropdown-item {
    color: #555555;
    background-color: transparent;
    padding: 10px 12px;
  }

  .nav-dropdown-item:hover {
    background-color: #f3f2ee;
  }

  .nav-dropdown-menu .dropdown-divider {
    border-color: rgba(0, 0, 0, 0.08);
  }

  .nav-dropdown-submenu-menu {
    display: block !important;
    position: static !important;
    padding-left: 12px;
  }

  .nav-dropdown-submenu-caret {
    display: none;
  }
}

@media (max-width: 576px) {
  .header-wrapper {
    padding: 8px 10px;
    gap: 8px;
  }

  .brand-logo {
    max-height: 20px;
  }

  .nav-toggler {
    width: 38px;
    height: 38px;
  }

  .nav-item-link.active .red-dot {
    outline-width: 1.5px;
    outline-offset: 1px;
  }
}
