/*!
Theme Name: Mainbolt Pro
Theme URI: https://www.mainboltpro.com
Author: the postbox rebel
Author URI: https://www.postboxrebel.com
Description: A custom WordPress theme for the Mainbolt Pro website.
Version: 1.0
*/

html, body {
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: #0C2340; /* --mb-navy */
  background-color: #fff;
  overflow-x: hidden;
}

:root {
  --mb-purple: #8C52FF;
  --mb-green: #36E2A8;
  --mb-navy: #0C2340;
  --mb-slate: #f8f9fa;
  --mb-text-muted: #6c757d;
  --mb-border: #e9ecef;
}

/* Typography & Colors */
.text-mb-purple { color: var(--mb-purple) !important; }
.text-mb-green { color: var(--mb-green) !important; }
.text-mb-navy { color: var(--mb-navy) !important; }
.bg-mb-navy { background-color: var(--mb-navy) !important; }
.bg-mb-purple { background-color: var(--mb-purple) !important; }
.bg-mb-green { background-color: var(--mb-green) !important; }
.bg-subtle { background-color: var(--mb-slate); }
.fw-extra-bold { font-weight: 800; }
.fs-7 { font-size: 0.9rem; }
.accent { color: var(--mb-green) !important; }

/* Green HR */
.hr-green {
  border: 0;
  height: 3px;
  background: var(--mb-green);
  opacity: 1;
}

/* Buttons - FIXED COLORS */
.btn-mb-primary {
  background-color: #8C52FF !important;
  color: white !important;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 8px;
  border: 2px solid #8C52FF !important;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.btn-mb-primary:hover {
  background-color: #7341d9 !important;
  border-color: #7341d9 !important;
  transform: translateY(-2px);
  color: white !important;
  box-shadow: 0 10px 25px rgba(140, 82, 255, 0.3);
}

.btn-mb-green {
  background-color: #36E2A8 !important;
  color: white !important;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 8px;
  border: 2px solid #36E2A8 !important;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.btn-mb-green:hover {
  background-color: #2bc792 !important;
  border-color: #2bc792 !important;
  transform: translateY(-2px);
  color: white !important;
  box-shadow: 0 10px 25px rgba(54, 226, 168, 0.3);
}

.btn-mb-outline {
  background-color: transparent !important;
  border: 2px solid #0C2340 !important;
  color: #0C2340 !important;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-mb-outline:hover {
  background-color: #0C2340 !important;
  color: white !important;
  border-color: #0C2340 !important;
}

.btn-outline-light {
  background-color: transparent !important;
  border: 2px solid rgba(255,255,255,0.5) !important;
  color: white !important;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background-color: rgba(54, 226, 168, 0.15) !important;
  border-color: #36E2A8 !important;
  color: #36E2A8 !important;
}

/* Hero Section */
.hero-section {
  background-color: var(--mb-navy);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-badge {
  background: rgba(54, 226, 168, 0.15);
  color: var(--mb-green);
  border: 1px solid rgba(54, 226, 168, 0.3);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 24px;
}

/* Animated Search Bar */
.search-bar {
  background: white;
  border-radius: 50px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}

.hero-demo-container .search-results {
  position: relative !important;
  overflow: visible !important;
  min-height: 400px;
}

/* Typewriter Cursor (kept + improved) */
#searchQuery {
  position: relative;
  display: inline-block;
  white-space: pre;
  font-size: 1.05rem;
  color: inherit; /* respects your text-muted class */
}

#searchQuery::after {
  content: '|';
  position: absolute;
  right: -4px;
  top: 0;
  color: inherit;
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}


/* Cards & Features */
.feature-card {
  border: 1px solid var(--mb-border);
  padding: 2.5rem;
  border-radius: 16px;
  transition: all 0.3s ease;
  height: 100%;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.feature-card:hover {
  border-color: var(--mb-green);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  transform: translateY(-5px);
}

.icon-box {
  width: 60px;
  height: 60px;
  background: rgba(140, 82, 255, 0.1);
  color: var(--mb-purple);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Tools Section */
.tool-card {
  display: block;
  transition: all 0.4s ease;
}

.tool-hover {
  transition: all 0.4s ease;
  cursor: pointer;
}

.tool-hover:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 25px 50px rgba(0,0,0,0.35) !important;
}

.tool-hover:hover img {
  transform: scale(1.08);
}

.bg-gradient-dark {
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
}

/* Testimonials / Stats */
.stat-callout {
  background: rgba(140, 82, 255, 0.15);
  color: var(--mb-purple);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
  display: inline-block;
  margin-top: 10px;
}

.italic { font-style: italic; }

/* Pricing */
.pricing-card {
  border-radius: 16px;
  border: 1px solid var(--mb-border);
  background: white;
  transition: transform 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.pricing-card.featured {
  border: 2px solid var(--mb-green);
  box-shadow: 0 20px 50px rgba(54, 226, 168, 0.15);
}

.popular-badge {
  background: var(--mb-green);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 8px 0;
  text-align: center;
  position: absolute;
  top: 25px;
  right: -35px;
  transform: rotate(45deg);
  width: 150px;
  text-transform: uppercase;
}

.check-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: #495057;
}

.check-list i {
  color: var(--mb-green);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Timeline/Phases Section */
.timeline-phase {
  position: relative;
  padding-left: 80px;
  padding-bottom: 2rem;
}

.timeline-phase:last-child {
  padding-bottom: 0;
}

.phase-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  background: var(--mb-purple);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
}

.timeline-phase:not(:last-child) .phase-number::after {
  content: '';
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 60px;
  background: var(--mb-green);
}

.phase-content h5 {
  color: var(--mb-navy);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.phase-content p {
  color: var(--mb-text-muted);
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Hover Effects (from old style.css, relevant for cards) */
.hover-scale {
  cursor: pointer;
  transition: all 0.35s ease;
}

.hover-scale:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0,0,0,0.3) !important;
}

/* Accordion (from old style.css, kept as landing has no accordion but might be useful) */
.accordion-button:not(.collapsed) {
  background-color: #f8f9fa;
  color: #3535E2;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}
.accordion-button:focus {
  border-color: #36E2A8;
  box-shadow: 0 0 0 0.25rem rgba(54, 226, 168, 0.25);
}
.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%233535E2'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    padding: 80px 0 60px;
  }

  .display-3 {
    font-size: 2.5rem;
  }

  .search-demo-container {
    padding: 20px;
  }

  .timeline-phase {
    padding-left: 70px;
  }

  .phase-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .timeline-phase:not(:last-child) .phase-number::after {
    top: 50px;
    height: 50px;
  }
}

.quiz-container {
  background-color: white;
  min-height: 100vh;
  padding: 2rem 0;
}
.quiz-btn {
  transition: all 0.3s ease;
}
.quiz-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(140, 82, 255, 0.3);
}

/* Who We Serve */

/* Tab styling */
.nav-pills .nav-link {
  color: var(--mb-navy);
  background-color: transparent;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.nav-pills .nav-link:hover {
  background-color: rgba(54, 226, 168, 0.1);
  border-color: var(--mb-green);
}

.nav-pills .nav-link.active {
  background-color: var(--mb-green);
  color: white;
  border-color: var(--mb-green);
}

/* Industry card styling */
.industry-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.industry-card:hover {
  transform: translateY(-5px);
  border-color: var(--mb-green) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.industry-card:hover .industry-icon {
  background-color: var(--mb-green) !important;
  transform: scale(1.1);
}

.industry-icon {
  transition: all 0.3s ease;
}

/* 5 column grid for home services on large screens */
@media (min-width: 992px) {
  .col-lg-2-4 {
      flex: 0 0 auto;
      width: 20%;
  }
}

/* Mobile spacing for tabs */
@media (max-width: 767px) {
  .nav-pills .nav-link {
      font-size: 0.85rem;
      padding: 0.5rem 0.75rem !important;
  }
}