/* ========================================
   GLOBAL HEADER & NAVIGATION STYLES
   Desktop Mini-Header + Mobile Bottom Nav
======================================== */

/* ========================================
   MINI HEADER - SIMPLIFIED NAVIGATION
======================================== */
.desktop-mini-header {
  position: relative;
  margin-top: var(--cta-bar-height, 32px);
  z-index: 1099;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.75rem 0;
  transition: all 0.3s ease;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
}

.desktop-mini-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.mini-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mini-header-logo img {
  height: 32px;
  width: auto;
  transition: transform 0.3s ease;
}

.mini-header-logo:hover img {
  transform: scale(1.05);
}

.mini-header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  margin: 0 2rem 0 4rem;
}

.mini-header-nav-link {
  color: #334155;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.mini-header-nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0d6efd, #0a58ca);
  transition: width 0.3s ease;
}

.mini-header-nav-link:hover {
  color: #0d6efd;
}

.mini-header-nav-link:hover::after {
  width: 100%;
}

.mini-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mini-header-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.mini-header-btn:hover {
  border-color: #0d6efd;
  color: #0d6efd;
  transform: translateY(-2px);
}

.mini-header-btn.whatsapp:hover {
  border-color: #25d366;
  color: #25d366;
  background: rgba(37, 211, 102, 0.1);
}

.mini-header-cta {
  display: flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  border-radius: 50px;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.mini-header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
  color: #fff;
}

/* Hide headers when mobile modals are open */
body.modal-open .desktop-mini-header,
body.modal-open .sticky-cta-bar-compact,
body:has(.mobile-nav-modal.active) .desktop-mini-header,
body:has(.mobile-nav-modal.active) .sticky-cta-bar-compact,
body:has(.mobile-search-modal.active) .desktop-mini-header,
body:has(.mobile-search-modal.active) .sticky-cta-bar-compact {
  display: none !important;
}

/* Mobile adjustments - show both CTA and mini-header */
@media (max-width: 767.98px) {
  /* Adjust CTA bar for mobile */
  .sticky-cta-bar-compact {
    padding: 4px 0;
  }
  
  /* Hide navigation links on mobile - use QuickGrid instead */
  .mini-header-nav {
    display: none !important;
  }
  
  /* Mini-header visible on mobile - override d-none d-md-block */
  .desktop-mini-header {
    display: block !important;
    padding: 0.5rem 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
  }
  
  /* Hide header on scroll down */
  .desktop-mini-header.nav-hidden {
    transform: translateY(-100%);
  }
  
  /* Show header on scroll up */
  .desktop-mini-header.nav-visible {
    transform: translateY(0);
  }
  
  /* Smaller logo on mobile */
  .mini-header-logo img {
    height: 26px;
  }
  
  /* Smaller action buttons on mobile */
  .mini-header-btn {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }
  
  /* Adjust gaps for mobile */
  .mini-header-actions {
    gap: 0.5rem;
  }
  
  /* Hide text CTA on mobile, show icon only */
  .mini-header-cta {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .mini-header-cta i {
    margin: 0 !important;
  }
  
}

/* Very small screens */
@media (max-width: 374px) {
  .mini-header-cta span {
    display: none;
  }
  
  .mini-header-btn {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  
  .mini-header-actions {
    gap: 0.35rem;
  }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
  .mini-header-cta span {
    display: none;
  }
  
  .mini-header-cta {
    padding: 0.5rem 1rem;
  }
  
  .mini-header-cta i {
    margin: 0 !important;
  }
}

/* ========================================
   MOBILE BOTTOM NAVIGATION
======================================== */
.mobile-bottom-nav-v2 {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.bottom-nav-item-v2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  color: #64748b;
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  transition: all 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.bottom-nav-item-v2 i {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

.bottom-nav-item-v2.active {
  color: #0d6efd;
}

.bottom-nav-item-v2:hover {
  color: #0d6efd;
}

.bottom-nav-search-btn {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
  border-radius: 50%;
  color: #fff;
  font-size: 1.25rem;
  margin-top: -20px;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bottom-nav-search-btn i {
  transition: transform 0.3s ease;
}

.bottom-nav-search-btn:hover {
  transform: scale(1.1);
}

.bottom-nav-spacer {
  height: 70px;
}

/* Hide bottom nav on desktop */
@media (min-width: 768px) {
  .mobile-bottom-nav-v2,
  .bottom-nav-spacer {
    display: none !important;
  }
}

/* ========================================
   MOBILE SEARCH MODAL
======================================== */
.mobile-search-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mobile-search-modal.active {
  transform: translateY(0);
}

.search-modal-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.mobile-search-box {
  flex: 1;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  gap: 10px;
}

.mobile-search-box i {
  color: #94a3b8;
  font-size: 1rem;
}

.mobile-search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
}

.search-clear-btn {
  background: #e2e8f0;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
}

.search-cancel-btn {
  background: none;
  border: none;
  color: #0d6efd;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.search-results-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.search-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.mobile-search-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-search-result {
  display: flex;
  align-items: center;
  padding: 12px;
  gap: 12px;
  text-decoration: none;
  color: #1e293b;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.mobile-search-result:hover {
  background: #f1f5f9;
}

.mobile-search-result i {
  font-size: 2.25rem;
  width: 56px;
  text-align: center;
}

.mobile-search-result .mobile-search-brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.no-results-container {
  text-align: center;
  padding: 40px 20px;
}

/* ========================================
   MOBILE NAV MODALS (Products, Services, Contact)
======================================== */
.mobile-nav-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 10000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mobile-nav-modal.active {
  transform: translateX(0);
}

.nav-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.nav-modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  display: flex;
  align-items: center;
}

.nav-modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: #e2e8f0;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-modal-close:hover {
  background: #cbd5e1;
}

.nav-modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.nav-modal-footer {
  padding: 16px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.nav-modal-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-modal-link:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
}

/* ========================================
   BRAND GRID IN PRODUCTS MODAL
======================================== */
.featured-solutions {
  margin-bottom: 1.5rem;
}

.featured-solutions-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.featured-solutions-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.featured-solution-item {
  display: flex;
  align-items: center;
  padding: 12px;
  gap: 12px;
  text-decoration: none;
  color: #1e293b;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.featured-solution-item:hover {
  background: #f1f5f9;
}

.featured-solution-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.brands-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.brand-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.brand-grid-item:hover {
  background: #f1f5f9;
  border-color: var(--brand-color, #0d6efd);
}

.brand-grid-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.brand-grid-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-grid-item span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
}

.brand-back-btn {
  display: flex;
  align-items: center;
  padding: 12px;
  margin-bottom: 16px;
  background: #f1f5f9;
  border: none;
  border-radius: 10px;
  color: #0d6efd;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.brand-back-btn:hover {
  background: #e2e8f0;
}

/* ========================================
   SERVICES LIST IN SERVICES MODAL
======================================== */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-list-item {
  display: flex;
  align-items: center;
  padding: 12px;
  gap: 12px;
  text-decoration: none;
  color: #1e293b;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.service-list-item:hover {
  background: #f1f5f9;
}

.service-list-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}

.service-list-icon i {
  font-size: 1.1rem;
}

.service-list-info {
  flex: 1;
}

.service-list-info strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
}

.service-list-info small {
  color: #64748b;
  font-size: 0.8rem;
}

/* ========================================
   CONTACT OPTIONS IN CONTACT MODAL
======================================== */
.contact-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-option-item {
  display: flex;
  align-items: center;
  padding: 14px;
  gap: 14px;
  text-decoration: none;
  color: #1e293b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.contact-option-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.contact-option-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.contact-option-icon i {
  font-size: 1.25rem;
}

.contact-option-info {
  flex: 1;
}

.contact-option-info strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
}

.contact-option-info small {
  color: #64748b;
  font-size: 0.8rem;
}

/* Hide mobile-only elements on desktop */
@media (min-width: 768px) {
  .mobile-search-modal,
  .mobile-nav-modal {
    display: none !important;
  }
}
