/* ==========================================================================
   RESPONSIVE LAYOUT & ORIGINAL NETLIFY DESIGN RESTORATION
   ========================================================================== */

/* 1. CONTAINER SYSTEM */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px)  { .container { max-width: 540px; } }
@media (min-width: 768px)  { .container { max-width: 720px; } }
@media (min-width: 992px)  { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

.navbar > .container,
.navbar > .container-fluid {
  max-width: 100% !important;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Desktop Dropdown Open on Hover */
@media (min-width: 992px) {
  .navbar .nav-item.dropdown:hover > .dropdown-menu {
    display: block !important;
    margin-top: 0;
    opacity: 1;
    visibility: visible;
    animation: fadeIn 0.2s ease-in-out;
  }
}

/* WordPress Admin Bar Header Offset */
.navbar.fixed-top,
#mainNavbar {
  top: 0;
}

body.admin-bar .navbar.fixed-top,
body.admin-bar #mainNavbar {
  top: 32px !important;
}

@media (max-width: 782px) {
  body.admin-bar .navbar.fixed-top,
  body.admin-bar #mainNavbar {
    top: 46px !important;
  }
}

/* Chatbot Floating Widget */
.chatbot-container {
  position: fixed !important;
  bottom: 25px !important;
  right: 25px !important;
  z-index: 9999 !important;
}

.chat-button {
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, var(--secondary-color, #3498db), var(--accent-color, #1abc9c)) !important;
  border: 2px solid rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  font-size: 26px !important;
  cursor: pointer !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.3s ease !important;
}

.chat-button:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 6px 25px rgba(52, 152, 219, 0.4) !important;
}

/* 2. SECTION SPACING SCALE */
.section,
.about-section,
.products-section,
.services-section,
.contact-section {
  padding: 80px 0;
}

.partners-section {
  padding: 60px 0;
}

/* 3. HERO CAROUSEL */
#carouselExampleInterval .carousel-item {
  height: 600px;
  position: relative;
}

#carouselExampleInterval .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
  max-width: 800px;
  z-index: 10;
}

.carousel-caption h3 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.carousel-caption p {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 1.8rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.carousel-caption .btn-container {
  display: flex;
  justify-content: center;
  gap: 14px;
}

/* 4. TRUSTED PARTNERS CAROUSEL */
.partners-carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.swiper {
  width: 100%;
  padding: 10px 0;
  margin: 0;
}

.swiper-slide {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 15px;
  transition: all 0.3s ease;
  height: 80px;
}

.swiper-slide:hover {
  transform: translateY(-5px);
}

.swiper-slide img {
  max-width: 100%;
  height: 60px;
  object-fit: contain;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--secondary-color, #3498db) !important;
  width: 44px !important;
  height: 44px !important;
  background: white !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

[data-theme="dark"] .swiper-button-next,
[data-theme="dark"] .swiper-button-prev {
  background: #2d2d2d !important;
  color: #ffffff !important;
}

.swiper-button-next { right: 10px !important; }
.swiper-button-prev { left: 10px !important; }

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px !important;
  font-weight: bold !important;
}

/* 5. PRODUCTS SECTION */
.products-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 25px !important;
  margin-bottom: 40px;
}

.product-card {
  background: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid var(--secondary-color, #3498db);
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-card p {
  flex-grow: 1;
  margin-bottom: 20px;
  line-height: 1.6;
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-feature {
  background: rgba(52, 152, 219, 0.1);
  color: var(--secondary-color, #3498db);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* 6. SERVICES SECTION */
.services-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 30px !important;
  margin-bottom: 50px;
}

.service-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-top: 4px solid var(--accent-color, #1abc9c);
  height: 100% !important;
  min-height: 0 !important;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-color, #3498db), var(--accent-color, #1abc9c));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  margin: 0 auto 20px;
}

/* 7. CONTACT & PROCESS TIMELINE SECTION */
.contact-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--light-color, #f8f9fa) 0%, #e8f4ff 100%);
}

[data-theme="dark"] .contact-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f1724 100%);
}

.contact-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 40px !important;
  margin-top: 30px;
}

[data-theme="dark"] .contact-card {
  background: #2d2d2d;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 1.5rem;
  padding: 15px;
  border-radius: 12px;
  background: rgba(52, 152, 219, 0.05);
  transition: all 0.3s ease;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--secondary-color, #3498db), var(--accent-color, #1abc9c));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.phone-numbers {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.phone-link, .email-link {
  color: var(--secondary-color, #3498db);
  text-decoration: none;
  transition: color 0.3s ease;
}

.phone-link:hover, .email-link:hover {
  color: var(--accent-color, #1abc9c);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 2rem;
}

.social-link {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-color, #3498db), var(--accent-color, #1abc9c));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
  color: white;
}

/* Timeline */
.contact-timeline {
  padding: 10px 10px 10px 30px;
}

.timeline-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color, #2c3e50);
  margin-bottom: 8px;
}

.timeline-subtitle {
  color: var(--text-light, #6c757d);
  margin-bottom: 35px;
  max-width: 420px;
}

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--secondary-color, #3498db), var(--accent-color, #1abc9c));
}

.timeline-item {
  position: relative;
  margin-bottom: 35px;
}

.timeline-dot {
  position: absolute;
  left: -30px;
  top: 6px;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, var(--secondary-color, #3498db), var(--accent-color, #1abc9c));
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(52, 152, 219, 0.15);
}

.timeline-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color, #2c3e50);
  margin-bottom: 6px;
}

.timeline-content p {
  color: var(--text-color, #333);
  font-size: 0.95rem;
  line-height: 1.6;
}

.timeline-cta {
  margin-top: 40px;
}

.timeline-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--secondary-color, #3498db), var(--accent-color, #1abc9c));
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.timeline-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(52, 152, 219, 0.35);
  color: #fff;
}

/* Dark Mode Overrides */
[data-theme="dark"] .timeline-title,
[data-theme="dark"] .timeline-content h4,
[data-theme="dark"] .contact-info .company-name {
  color: #ffffff !important;
}

[data-theme="dark"] .timeline-subtitle,
[data-theme="dark"] .company-address {
  color: #b0b0b0 !important;
}

[data-theme="dark"] .timeline-content p {
  color: #e0e0e0 !important;
}

/* 8. RESPONSIVE BREAKPOINTS */

/* Laptop (1024px – 1439px) */
@media (max-width: 1439px) and (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  }
}

/* Tablet (768px – 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
  .contact-card {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    padding: 35px 25px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .contact-timeline {
    padding-left: 10px;
    margin-top: 20px;
  }

  .page-contact-grid,
  .core-values-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  .section,
  .about-section,
  .products-section,
  .services-section,
  .contact-section,
  .page-contact-section,
  .core-values-section {
    padding: 50px 0;
  }

  #carouselExampleInterval .carousel-item {
    height: 360px !important;
    position: relative !important;
    overflow: hidden !important;
  }

  #carouselExampleInterval .carousel-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    filter: brightness(0.6) !important;
  }

  .carousel-caption {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .carousel-caption h3 { font-size: 1.5rem !important; margin-bottom: 8px !important; }
  .carousel-caption p { font-size: 1rem !important; margin-bottom: 16px !important; }

  .products-grid,
  .services-grid,
  .page-contact-grid,
  .core-values-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  .page-contact-info-card {
    padding: 25px 18px !important;
  }

  .contact-card {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    padding: 30px 20px;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
  }

  .contact-icon {
    align-self: center;
  }

  .contact-timeline {
    padding-left: 10px;
    margin-top: 30px;
  }
}
