/* Professional Services Page Styles */

/* Performance optimizations */
.service-card {
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  will-change: transform;
  backface-visibility: hidden;
}

/* FAQ Section Styles */
.faq-section {
  background: #f8fafc;
  padding: 60px 0;
}

.faq-container {
  max-width: 100%;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.faq-question {
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.faq-question:hover {
  background: #f8fafc;
}

.faq-question-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-question h5,
.faq-question h6 {
  color: #1e3a8a;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  flex: 1;
}

.faq-icon {
  color: #3b82f6;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  color: #1e40af;
}

.faq-answer {
  border-top: 1px solid #e5e7eb;
}

.faq-answer-content {
  padding: 0 18px 14px 18px;
}

.faq-answer-content p {
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
  font-size: 0.875rem;
}

/* FAQ Sidebar */
.faq-sidebar-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.faq-sidebar-card h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
}

.faq-sidebar-card h6 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
}

.faq-sidebar-card hr {
  margin: 16px 0;
  border-color: #e5e7eb;
}

.faq-sidebar-card ul {
  margin-bottom: 0;
}

.faq-sidebar-card ul li {
  margin-bottom: 6px;
  color: #475569;
}

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

  .faq-question {
    padding: 20px 20px;
  }

  .faq-answer-content {
    padding: 0 20px 20px 20px;
  }

  .faq-question h5 {
    font-size: 1rem;
  }

  .faq-icon {
    font-size: 1.1rem;
  }

  .faq-sidebar {
    position: static !important;
    margin-top: 30px;
  }

  .faq-question h6 {
    font-size: 0.9rem;
  }
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(59, 130, 246, 0.8)),
              url('../assets/service header.jpg') center/cover no-repeat;
  padding: 90px 0 60px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  overflow-y: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 58, 138, 0.1);
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.01em;
}

.page-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Subtle Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Service Area Intro Section - Compact */
.service-area-intro {
  background: transparent;
  padding: 40px 0;
  position: relative;
}

.service-area-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 20px;
  text-align: center;
}

.service-area-description {
  text-align: center;
  margin-bottom: 30px;
}

.service-area-description p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 12px;
}

.service-area-features {
  margin-top: 30px;
}

.service-feature-card {
  background: white;
  padding: 20px 15px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  margin-bottom: 15px;
}

.service-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

.service-feature-card i {
  font-size: 1.8rem;
  color: #1e3a8a;
  margin-bottom: 10px;
  display: block;
}

.service-feature-card h5 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 8px;
}

.service-feature-card p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* Introduction Section */
.intro-section {
  background: transparent;
  padding: 60px 0;
  position: relative;
  overflow-y: hidden;
}

.intro-section p {
  font-size: 1rem;
  color: #64748b;
  font-weight: 400;
  line-height: 1.8;
  text-align: left;
}

/* Services page intro lead (force 2-line layout + centered) */
.services-intro-lead {
  text-align: center !important;
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

/* Detailed Services Section */
.detailed-services {
  background: #f8fafc;
  padding: 60px 0;
  overflow-y: hidden;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 16px;
  letter-spacing: -0.015em;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #1e3a8a;
  border-radius: 2px;
}

.section-description {
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 20px;
}

/* Professional Service Cards */
.service-card {
  background: white;
  border-radius: 16px;
  padding: 0;
  margin-bottom: 32px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.08), transparent);
  transition: left 0.6s ease;
  z-index: 0;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 50px rgba(30, 58, 138, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

.service-content {
  padding: 18px 20px;
  position: relative;
}

.service-title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 10px;
  line-height: 1.3;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

.service-card:hover .service-title {
  color: #3b82f6;
}

.service-description {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 8px;
  font-weight: 400;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  min-height: 25px;
  display: flex;
  align-items: center;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 5px;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #334155;
  font-size: 0.875rem;
  padding: 3px 0;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 400;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  position: relative;
  z-index: 1;
}

.service-features li:last-child {
  border-bottom: none;
}

.service-features li:hover {
  color: #1e3a8a;
  padding-left: 8px;
  transform: translateX(3px);
}

.service-features i {
  color: #1e3a8a;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform 0.3s ease;
}

.service-features li:hover i {
  transform: scale(1.2) rotate(5deg);
}

/* Quote Form - Removed sticky sidebar */

/* Service Note */
.service-note {
  background: #f8fafc;
  border-left: 4px solid #1e3a8a;
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.service-note p {
  margin: 0;
  font-weight: 500;
  color: #1e3a8a;
  font-size: 0.95rem;
  line-height: 1.6;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* State Finder Section */
.state-finder-section {
  background: transparent;
  padding: 60px 0;
}

/* Ensure container inside state-finder-section has no white background */
.state-finder-section .container {
  background: transparent;
}

.state-finder-container {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  width: 100%;
  background: transparent;
}

/* Laptop screens - Reduce content width */
@media (min-width: 1024px) and (max-width: 1920px) {
  .state-finder-container {
    max-width: 1000px;
  }

  .page-header .container,
  .intro-section .container,
  .detailed-services .container,
  .faq-quote-section .container,
  .recent-posts .container,
  .community-section .container {
    max-width: 1400px;
  }
}

.state-finder-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #1e3a8a;
  text-align: center;
  margin-bottom: 50px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

.alphabet-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  width: 100%;
  max-width: 100%;
}

.letter-btn {
  width: 48px;
  height: 48px;
  border: 1px solid #cbd5e1;
  background: white;
  color: #64748b;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

.letter-btn:hover:not(.active):not(:disabled) {
  border-color: #1e3a8a;
  color: #1e3a8a;
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15);
}

.letter-btn.active {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
  transform: scale(1.05);
}

.letter-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 30px;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  align-items: start;
  justify-items: stretch;
  width: 100%;
  max-width: 100%;
}

.state-card {
  background: white;
  padding: 14px 24px;
  border-radius: 12px;
  border: 3px solid #e5e7eb;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: left;
  font-weight: 500;
  color: #334155;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 50px;
  white-space: nowrap;
  width: 100%;
  margin: 0;
  min-width: 280px;
}

.state-card:hover {
  background: #f8fafc;
  transform: translateX(4px);
  color: #1e3a8a;
  border-color: #3b82f6;
  border-width: 3px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.state-card i {
  color: #1e3a8a;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.state-card.primary-state {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #3b82f6;
  border-width: 2px;
  font-weight: 600;
  color: #1e3a8a;
}

.state-card.primary-state:hover {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.primary-service-note {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 30px;
}

.primary-service-note p {
  color: #1e3a8a;
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* Services Grid (services.html) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 50px;
  max-width: 100%;
}

.services-grid .service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: 2rem;
}

.service-image {
  height: 100px;
  overflow: hidden;
  position: relative;
  border-radius: 16px 16px 0 0;
}

.services-grid .service-card:hover .service-image img {
  transform: scale(1.05);
}

.services-grid .service-content {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-cta {
  margin-top: auto;
  padding-top: 10px;
}

.service-cta .btn {
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.35);
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: white;
}

/* FAQ Section */
.faq-quote-section {
  background: transparent;
  padding: 60px 0;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-question {
  background: white;
  padding: 30px 35px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
}

.faq-question:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(59, 130, 246, 0.2);
}

.faq-question h5 {
  color: #1e3a8a;
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 1.15rem;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

.faq-question p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* Blog Preview */
.recent-posts {
  background: #f8fafc;
  padding: 60px 0;
}

.blog-preview-card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  height: 100%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.blog-preview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(59, 130, 246, 0.2);
}

.blog-date {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.85rem;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

.blog-preview-card h5 {
  color: #1e3a8a;
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 1.15rem;
  line-height: 1.4;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

.blog-preview-card p {
  color: #64748b;
  margin-bottom: 20px;
  font-size: 0.9rem;
  line-height: 1.6;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* Community Section Styles */
.community-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.community-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  z-index: 0;
}

.community-content {
  position: relative;
  z-index: 2;
}

.community-content .section-title {
  color: #1e3a8a;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.3;
}

.community-content .lead {
  color: #475569;
  font-size: 1.1rem;
  line-height: 1.7;
  font-weight: 500;
}

.community-content p {
  color: #64748b;
  font-size: 1rem;
  line-height: 1.6;
}

.community-features {
  margin-top: 32px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

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

.feature-item:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-content h5 {
  color: #1e3a8a;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.feature-content p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.community-visual {
  position: relative;
  z-index: 2;
}

.visual-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.1);
  position: relative;
  overflow: hidden;
}

.visual-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.visual-header {
  margin-bottom: 24px;
  text-align: center;
}

.visual-header h4 {
  color: #1e3a8a;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.visual-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.benefit-item:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  transform: translateX(4px);
}

.benefit-item i {
  color: #1e3a8a;
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.benefit-item span {
  color: #334155;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .service-area-intro {
    padding: 35px 20px;
  }

  .service-area-features {
    margin-top: 25px;
  }

  .service-feature-card {
    padding: 18px 14px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .states-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }

  .city-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 100px 20px 60px;
    min-height: auto;
  }

  .page-title {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }

  .page-subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
  }

  .intro-section,
  .detailed-services,
  .state-finder-section,
  .faq-quote-section,
  .recent-posts,
  .community-section {
    padding: 60px 20px;
  }

  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .state-finder-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .community-section {
    padding: 60px 20px;
  }

  .community-content .section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .community-content .lead {
    font-size: 1rem;
  }

  .feature-item {
    padding: 16px;
    margin-bottom: 16px;
  }

  .feature-icon {
    width: 40px;
    height: 40px;
  }

  .feature-icon i {
    font-size: 1rem;
  }

  .feature-content h5 {
    font-size: 1rem;
  }

  .feature-content p {
    font-size: 0.9rem;
  }

  .visual-card {
    padding: 24px;
    margin-top: 32px;
  }

  .visual-header h4 {
    font-size: 1.2rem;
  }

  .benefit-item {
    padding: 10px 12px;
  }

  .benefit-item span {
    font-size: 0.9rem;
  }

  .intro-section .lead {
    padding: 30px 25px;
  }

  .service-content {
    padding: 24px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-description {
    min-height: auto;
    display: block;
  }

  .service-card {
    margin-bottom: 1.5rem;
  }

  .services-grid .service-content {
    padding: 16px 16px;
  }

  .alphabet-filter {
    gap: 8px;
  }

  .letter-btn {
    width: 44px;
    height: 44px;
    font-size: 0.9rem;
  }

  .states-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    justify-items: stretch;
  }

  .state-card {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    padding: 18px 24px;
    min-height: 60px;
    min-width: 0;
  }
}

@media (max-width: 576px) {
  .service-features li {
    padding: 10px 0;
    font-size: 0.9rem;
  }

  .community-section {
    padding: 40px 15px;
  }

  .community-content .section-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }

  .community-content .lead {
    font-size: 0.95rem;
    margin-bottom: 16px;
  }

  .community-content p {
    font-size: 0.9rem;
  }

  .feature-item {
    padding: 12px;
    margin-bottom: 12px;
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .feature-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto;
  }

  .feature-icon i {
    font-size: 0.9rem;
  }

  .feature-content h5 {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }

  .feature-content p {
    font-size: 0.85rem;
  }

  .visual-card {
    padding: 20px;
    margin-top: 24px;
  }

  .visual-header h4 {
    font-size: 1.1rem;
  }

  .benefit-item {
    padding: 8px 10px;
    gap: 8px;
  }

  .benefit-item i {
    font-size: 1rem;
  }

  .benefit-item span {
    font-size: 0.85rem;
  }

  .page-header {
    padding: 80px 15px 40px;
  }

  .page-header h1 {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .page-header p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .service-area-intro {
    padding: 30px 15px;
  }

  .service-area-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
  }

  .service-area-description p {
    font-size: 0.9rem;
  }

  .service-feature-card {
    padding: 18px 12px;
    margin-bottom: 12px;
  }

  .service-feature-card i {
    font-size: 1.5rem;
  }

  .service-feature-card h5 {
    font-size: 0.95rem;
  }

  .service-feature-card p {
    font-size: 0.8rem;
  }

  .intro-section,
  .detailed-services,
  .why-choose-section,
  .user-review-section {
    padding: 40px 15px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .service-card {
    margin-bottom: 20px;
  }

  .service-content {
    padding: 16px 15px;
  }

  .service-content h5 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .service-description {
    font-size: 0.9rem;
    line-height: 1.6;
    min-height: auto;
    display: block;
  }

  .service-features {
    margin-top: 20px;
  }

  .service-features h6 {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .service-features li {
    padding: 8px 0;
    font-size: 0.85rem;
  }

  .why-choose-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .why-choose-item {
    padding: 20px 15px;
  }

  .why-choose-item h5 {
    font-size: 1.1rem;
  }

  .why-choose-item p {
    font-size: 0.9rem;
  }

  .testimonial-item {
    padding: 20px 15px;
  }

  .testimonial-text {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .testimonial-author {
    font-size: 0.85rem;
  }

  .state-finder-section {
    padding: 40px 10px;
  }

  .state-finder-container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .state-finder-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .alphabet-filter {
    margin-bottom: 20px;
  }

  .letter-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
    margin: 2px;
  }

  /* City filter grid - Mobile: 2 columns with reduced gap, override base minmax */
  /* Applied globally to all city filters across all pages */
  .states-grid,
  .city-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding: 0 10px;
    width: 100% !important;
    justify-content: flex-start;
    align-items: flex-start;
  }

  /* Override Bootstrap column classes inside grid */
  .states-grid > .col-6,
  .states-grid > .col-md-4,
  .states-grid > .col-lg-3,
  .city-grid > .col-6,
  .city-grid > .col-md-4,
  .city-grid > .col-lg-3 {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    flex: none !important;
  }

  /* Ensure anchor tags don't constrain width */
  .states-grid > .col-6 > a,
  .states-grid > .col-md-4 > a,
  .states-grid > .col-lg-3 > a,
  .city-grid > .col-6 > a,
  .city-grid > .col-md-4 > a,
  .city-grid > .col-lg-3 > a {
    width: 100% !important;
    display: block;
  }

  /* City filter cards - Mobile: Remove fixed widths, reduce padding */
  /* Applied globally to all city filter cards across all pages */
  .state-card,
  .city-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: auto;
    padding: 8px 10px !important;
    display: flex !important;
    align-items: flex-start;
    gap: 6px;
    box-sizing: border-box;
    background: #fff;
    white-space: normal !important;
    overflow: visible !important;
    font-size: 0.75rem !important;
  }

  .state-card i,
  .city-card .icon,
  .city-card i {
    font-size: 14px !important;
    flex-shrink: 0;
    margin-top: 2px;
  }

  .state-card .city-name,
  .city-card .city-name {
    font-size: 0.75rem !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    flex: 1;
    min-width: 0;
    line-height: 1.3;
    word-wrap: break-word;
    word-break: normal;
    hyphens: auto;
    display: block;
  }

  .faq-section {
    padding: 40px 15px;
  }

  .faq-question {
    padding: 12px 15px;
  }

  .faq-question h6 {
    font-size: 0.9rem;
  }

  .faq-answer-content {
    padding: 15px;
  }

  .faq-answer-content p {
    font-size: 0.85rem;
  }

  .faq-sidebar {
    position: static !important;
    margin-top: 30px;
  }

  .faq-sidebar-card {
    padding: 20px 15px;
    margin-bottom: 20px;
  }
}

  .service-image {
    height: 150px;
  }

  .page-header {
    padding: 80px 20px 60px;
  }

  .intro-section,
  .detailed-services,
  .faq-quote-section,
  .recent-posts {
    padding: 60px 20px;
  }
}