/*
 * Service Header Title and Button Row Layout
 * Ensures the service title and call button stay in a row on all screen sizes
 */

/* Force row layout for the header section */
.services-header-row {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  padding: 10px 0 !important;
  margin-bottom: 20px !important;
  flex-wrap: nowrap !important; /* Prevent wrapping on small screens */
}

/* Title styling */
.services-header-row h2 {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 20px !important; /* Smaller on mobile */
  font-weight: 700 !important;
  flex: 0 1 auto !important; /* Allow title to shrink */
  white-space: nowrap !important; /* Prevent title from wrapping */
}

/* Button styling - ensure it stays on the right */
.services-header-row .btn-call {
  margin-left: 15px !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important; /* Don't allow button to shrink */
  padding: 8px 15px !important; /* Smaller padding on mobile */
  font-size: 14px !important; /* Smaller text on mobile */
  background-color: #D4AF37 !important; /* Gold button */
  color: #fff !important;
  border-radius: 30px !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

/* Hover effect */
.services-header-row .btn-call:hover {
  background-color: #917c26 !important; /* Darker gold on hover */
  transform: translateY(-2px) !important;
}

/* Phone icon spacing */
.services-header-row .btn-call i {
  margin-right: 5px !important;
}

/* Extra small screen adjustments - maintain row layout */
@media (max-width: 480px) {
  .services-header-row {
    padding: 8px 15px !important; /* Add horizontal padding */
    background-color: #f9f9f9 !important; /* Light background to separate the section */
    border-radius: 5px !important;
  }
  
  .services-header-row h2 {
    font-size: 16px !important; /* Even smaller on very small screens */
    max-width: 60% !important; /* Limit width to make room for button */
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  
  .services-header-row .btn-call {
    padding: 6px 12px !important;
    font-size: 12px !important;
  }
}

/* Legal header top section */
.legal-header-section {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 30px !important;
}

/* Make all content containers relative and full width */
.container {
  position: relative !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 15px !important;
}
