/* layout_fixes.css - Complete */

/* Prevent layout shifts */
img {
  aspect-ratio: attr(width) / attr(height);
}

/* Better container spacing */
.container {
  padding-left: 15px;
  padding-right: 15px;
}

/* Fix for Bootstrap column gutters */
.row.g-4 {
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.row.g-4 > [class*="col-"] {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Improve footer layout */
footer .row {
  align-items: flex-start;
}

@media (max-width: 767px) {
  footer .row > div {
    margin-bottom: 30px;
  }
  
  footer .row > div:last-child {
    margin-bottom: 0;
  }
}

/* Better button groups on mobile */
.d-flex.flex-wrap.gap-3 {
  gap: 12px !important;
}

@media (max-width: 575px) {
  .d-flex.flex-wrap.gap-3 {
    flex-direction: column;
    gap: 10px !important;
  }
  
  .d-flex.flex-wrap.gap-3 .btn {
    width: 100%;
  }
}

/* Fix for navbar toggler */
.navbar-toggler {
  padding: 4px;
  background-color: #102541
}



/* Better logo alignment */
.navbar-brand {
  display: flex;
  align-items: center;
}

.logo {
  line-height: 1.2;
}

/* Ensure consistent section spacing */
section {
  scroll-margin-top: 80px;
}

@media (max-width: 767px) {
  section {
    scroll-margin-top: 70px;
  }
  
  /* Fix section spacing on mobile */
  .hero, .services-hero {
    scroll-margin-top: 120px;
  }
}

/* Add orange border to all form selects */
select.form-control {
  border: 2px solid rgba(255, 255, 255, 0.2);
}

select.form-control:focus {
  border: 2px solid var(--safety-orange);
}

/* Ensure consistent card heights */
.service-summary-card,
.service-detail-card,
.process-step {
  display: flex;
  flex-direction: column;
}

/* Fix for text alignment in services */
.text-center .service-summary-card,
.text-center .service-detail-card {
  text-align: center;
}

.text-center .service-feature-list li {
  text-align: left;
}

/* Better border consistency */
* {
  border-style: solid;
  border-width: 0;
}

.btn, .form-control, .nav-link, .service-summary-card, 
.service-detail-card, .process-step {
  border-width: 2px;
}

/* Additional fixes for services page uniformity */

/* Ensure all service category sections have proper spacing */
.service-category:not(:last-child) {
  margin-bottom: 0;
}

/* Fix for image consistency - UPDATED */
.service-detail-img-container {
  object-fit: cover;
  width: 100%;
}

/* Ensure all cards in a row have same height */
.row.g-4 {
  align-items: stretch;
}

.row.g-4 > [class*="col-"] {
  display: flex;
}

/* Fix badge inline styles */
.service-badge[style] {
  display: inline-block !important;
  padding: 5px 12px !important;
  border-radius: 20px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  margin-right: 6px !important;
  margin-bottom: 8px !important;
  border: 2px solid !important;
  line-height: 1.2 !important;
}

/* Fix for supplies section text color */
#supplies-manufacturing .lead {
  color: var(--steel-gray) !important;
}

/* Ensure consistent button heights */
.service-cta .btn {
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Fix for mobile button stacking */
@media (max-width: 767px) {
  .service-cta .d-flex.flex-wrap {
    flex-direction: column;
    gap: 10px !important;
  }
  
  .service-cta .btn {
    width: 100%;
  }
}

/* Fix for text overflow in cards */
.service-detail-content h3 {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Ensure consistent font sizes in feature lists */
.service-feature-list li {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Fix for process step uniformity */
@media (min-width: 992px) {
  .process-step {
    min-height: 280px;
  }
}


