/* Salesforce Consulting Page Styles */

/* Ensure proper button styling */
.btn-primary, .btn-outline-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white) !important;
  border: none;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white) !important;
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white) !important;
  border-color: var(--primary-dark);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
}

/* Fix button spacing on mobile */
@media (max-width: 768px) {
  .hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
  
  .ms-3 {
    margin-left: 0 !important;
  }
}

/* Trust Banner Section */
.trust-banner-section {
  background: var(--gray-50);
  padding: 2rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.trust-banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.trust-headline {
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.9rem;
}

.trust-industries {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.industry-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.9rem;
}

.industry-item i {
  color: var(--primary);
  font-size: 1.1rem;
}

.industry-divider {
  color: var(--gray-300);
  font-weight: 300;
}

.trust-stats {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.stat-badge {
  background: var(--primary);
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Hero Section Specific Styles */
.hero-section {
  padding: 8rem 0 5rem;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Ensure container takes full width */
.hero-section .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Fix row alignment */
.hero-section .row {
  display: flex;
  align-items: center;
  min-height: 600px;
  width: 100%;
}

/* Force Bootstrap grid layout */
.hero-section .row {
  display: -ms-flexbox !important;
  display: flex !important;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.hero-section .col-lg-6 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

/* Ensure columns stay side by side on desktop */
@media (min-width: 992px) {
  .hero-section .col-lg-6 {
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .hero-section .row {
    flex-wrap: nowrap !important;
    /* Override global flex-direction column */
    flex-direction: row !important;
    -ms-flex-direction: row !important;
  }
  
  .hero-section {
    padding: 6rem 0 4rem;
  }
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  opacity: 0.1;
}

.hero-shape-1 {
  width: 200px;
  height: 200px;
  top: -100px;
  right: -100px;
}

.hero-shape-2 {
  width: 150px;
  height: 150px;
  bottom: -75px;
  left: -75px;
}

.hero-shape-3 {
  width: 100px;
  height: 100px;
  top: 50%;
  right: 10%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 87, 34, 0.1);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 87, 34, 0.2);
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gray-800);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-cta {
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray-600);
  font-weight: 500;
}

.hero-image {
  position: relative;
  z-index: 1;
  padding-left: 2rem;
}

.image-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* Ensure responsive images fill container */
.image-container picture {
  display: block;
  width: 100%;
}

.image-container img,
.hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

/* Fix Bootstrap column spacing */
.hero-section .col-lg-6 {
  padding: 1rem;
}

/* Ensure proper desktop layout */
@media (min-width: 992px) {
  /* More specific selector to override global styles */
  #hero.hero-section .row,
  section.hero-section .row {
    flex-direction: row !important;
    -ms-flex-direction: row !important;
  }
  
  #hero.hero-section .col-lg-6,
  section.hero-section .col-lg-6 {
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
    -ms-flex: 0 0 50% !important;
  }
  
  .hero-content {
    padding-right: 2rem;
  }
  
  .hero-image {
    padding-left: 2rem;
  }
}

.floating-card {
  position: absolute;
  background: var(--white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-700);
}

.floating-card-1 {
  top: 1rem;
  left: -1rem;
}

.floating-card-2 {
  bottom: 1rem;
  right: -1rem;
}

/* Why Consulting Section */
.why-consulting-section {
  padding: 5rem 0;
  background: var(--white);
}

.consulting-content {
  padding-right: 2rem;
}

.section-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.consulting-features {
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-normal);
}

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

.feature-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon i {
  color: var(--white);
  font-size: 1.2rem;
}

.feature-content h4 {
  color: var(--gray-800);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.feature-content p {
  color: var(--gray-600);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.consulting-image {
  position: relative;
}

.certificate-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Consulting Services Section */
.consulting-services-section {
  padding: 5rem 0;
  background: var(--gray-50);
}

.section-header {
  margin-bottom: 3rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid var(--gray-200);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon i {
  color: var(--white);
  font-size: 1.5rem;
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-tag {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Why Choose Section */
.why-choose-section {
  padding: 5rem 0;
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid var(--gray-200);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background: var(--gray-50);
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 0;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsive Design */
@media (max-width: 768px) {
  .trust-banner-content {
    text-align: center;
    justify-content: center;
  }
  
  .trust-industries {
    justify-content: center;
  }
  
  .trust-stats {
    justify-content: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .consulting-content {
    padding-right: 0;
    margin-bottom: 2rem;
  }
}

/* Contact Footer Section Fixes */
.contact-footer-section {
  padding: 5rem 0;
  background: var(--gray-50);
}

.contact-footer-content .row {
  align-items: center;
}

/* Fix CTA card heading display */
.cta-card h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 1rem;
  white-space: nowrap;
  overflow: visible;
  text-align: center;
}

@media (max-width: 768px) {
  .cta-card h3 {
    white-space: normal;
    font-size: 1.5rem;
  }
}

.contact-info {
  padding-right: 2rem;
}

.contact-cta {
  padding: 2rem;
}

.cta-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  min-width: 300px;
}

/* Ensure proper text visibility */
.cta-card * {
  visibility: visible !important;
  opacity: 1 !important;
}

/* Animation Classes */
[data-aos] {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
  opacity: 1;
}

[data-aos="fade-up"] {
  transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
}

[data-aos="fade-left"] {
  transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
  transform: translateX(0);
}

[data-aos="fade-right"] {
  transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
  transform: translateX(0);
}