/* ==============================================
   APTASOFT - Custom Site Styles
   Handles: Navbar, Dropdown, Mobile Drawer, 
            Responsive Layout, CTA Buttons
   ============================================== */

/* ---------- Base Reset Helpers ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* ---------- Sticky Navbar ---------- */
#navbar {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #fff !important;
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
}

#navbar .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Desktop Nav Button ---------- */
.nav-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #101928;
  white-space: nowrap;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
  font-family: inherit;
}

.nav-btn:hover {
  color: #148eff;
  background: rgba(20,142,255,0.06);
}

/* ---------- Desktop Dropdown ---------- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  box-shadow: 0 12px 24px -4px rgba(16,24,40,0.12), 0 4px 8px -2px rgba(16,24,40,0.06);
  padding: 8px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  color: #344054 !important;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: #f2f4f7 !important;
  color: #148eff !important;
}

/* ---------- CTA Button in Navbar ---------- */
.cta-btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  background: #148eff;
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  border-radius: 40px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.1s ease;
  flex-shrink: 0;
}

.cta-btn-nav:hover {
  background: #0f7fe0;
  color: #fff !important;
  transform: translateY(-1px);
}

/* ---------- Mobile Hamburger Button ---------- */
.mobile-menu-btn {
  display: none !important; /* hidden by default, shown via media query */
}

/* ---------- Responsive: Hide/Show nav elements ---------- */
@media (max-width: 1023px) {
  .desktop-nav {
    display: none !important;
  }
  .cta-btn-nav {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none !important;
  }
}

/* ---------- Mobile Drawer Overlay ---------- */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 90vw);
  background: #ffffff;
  z-index: 99999;
  box-shadow: 4px 0 40px rgba(0,0,0,0.18);
  padding: 24px;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer.open {
  transform: translateX(0) !important;
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 99998;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.mobile-drawer-backdrop.show {
  opacity: 1 !important;
  pointer-events: auto !important;
  display: block !important;
}

/* ---------- Mobile Accordion Buttons ---------- */
.mob-acc-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: #101928;
  padding: 12px 4px;
  cursor: pointer;
  border-bottom: 1px solid #f2f4f7;
  font-family: inherit;
  transition: color 0.15s ease;
}

.mob-acc-btn:hover { color: #148eff; }

.mob-acc-icon {
  font-size: 20px;
  font-weight: 700;
  color: #667085;
  line-height: 1;
  transition: transform 0.2s ease;
}

.mob-acc-body {
  list-style: none;
  padding: 4px 0 4px 12px;
  margin: 0;
  display: none;
}

.mob-acc-body.is-open {
  display: block !important;
}

.mob-acc-body li a {
  display: block;
  padding: 9px 8px;
  color: #475467 !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.mob-acc-body li a:hover {
  color: #148eff !important;
  background: #f0f7ff;
}

.mob-group { border-bottom: 1px solid #f2f4f7; }

/* ---------- Footer ---------- */
#footer a:hover {
  color: #148eff !important;
  text-decoration: underline;
}

/* Hide Clutch/Rating widgets in navbar/footer as requested */
.widget-social + div, 
a[href*="clutch.co"], 
a[href*="selectedfirms.co"], 
a[href*="goodfirms.co"], 
a[href*="upwork.com"],
.clutch-widget,
.goodfirms-widget {
  display: none !important;
}

/* Force Animate-On-Scroll (AOS) elements to be visible immediately */
[data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

/* Rebuild Radix Accordion functionality (height override when open) */
div[id^="radix-"][data-state="open"] {
  height: auto !important;
  max-height: 2000px !important;
  opacity: 1 !important;
  overflow: visible !important;
  display: block !important;
  padding-top: 10px;
  padding-bottom: 20px;
  transition: max-height 0.3s ease-in, opacity 0.3s ease-in !important;
}

div[id^="radix-"][data-state="closed"] {
  height: 0 !important;
  max-height: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  display: none !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out !important;
}

.goodfirms-widget {
  display: none !important;
}

/* Slider CSS Layout overrides */
.slider-container {
  position: relative;
  width: 100%;
}

.slider-viewport {
  overflow: hidden;
  width: 100%;
}

.slider-track {
  display: flex;
  will-change: transform;
}

.slider-track > div {
  box-sizing: border-box;
}

/* Smooth transition for active navigation dots */
.slider-dots div {
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.slider-dots div.tw-bg-\[\#148EFF\] {
  transform: scale(1.1);
}


