/* SEO-friendly heading styles for snow removal page */

/* H3 step titles in How It Works section */
.snow-removal-how-it-works__step-title {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  margin: 12px 0 8px 0;
  text-align: center;
}

/* H3 subtitles */
.snow-removal-before-after__subtitle,
.snow-removal-testimonials__subtitle,
.snow-removal-faq__subtitle {
  font-size: 18px;
  font-weight: 400;
  color: #6c757d;
  text-align: center;
  margin-top: 12px;
  margin-bottom: 32px;
}

/* H4 in FAQ questions */
.snow-removal-faq__question h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  padding: 0;
  display: inline;
}

.snow-removal-faq__question h4 span {
  font-weight: 600;
}

/* Related services section */
.snow-removal-related-services {
  background: #f8f9fa;
  padding: 60px 20px;
  margin-top: 40px;
}

.snow-removal-related-services__container {
  max-width: 1200px;
  margin: 0 auto;
}

.snow-removal-related-services__title {
  font-size: 32px;
  font-weight: 700;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 32px;
}

.snow-removal-related-services__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.snow-removal-related-link {
  display: block;
  padding: 20px;
  background: white;
  border: 2px solid #38A1DF;
  border-radius: 8px;
  text-align: center;
  color: #38A1DF;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.snow-removal-related-link:hover {
  background: #38A1DF;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 161, 223, 0.3);
}

/* Ensure FAQ answers have proper spacing with internal links */
.snow-removal-faq__answer a {
  color: #38A1DF;
  text-decoration: underline;
  font-weight: 500;
}

.snow-removal-faq__answer a:hover {
  color: #2980b9;
}

/* ===== PROGRESSIVE FAQ LOADING STYLES ===== */

/* Hide the checkbox input (used for CSS-only toggle) */
.snow-removal-faq__toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  height: 0;
  width: 0;
}

/* FAQ Groups */
.snow-removal-faq__group--initial {
  display: block;
}

/* Group 2 (CSS-hidden) - hidden by default, shown when checkbox checked */
.snow-removal-faq__group--css-hidden {
  display: none;
  animation: faqFadeIn 0.4s ease-out;
}

/* When checkbox is checked, show group 2 */
.snow-removal-faq__toggle-input:checked ~ .snow-removal-faq__group--css-hidden {
  display: block;
}

/* AJAX group styling */
.snow-removal-faq__group--ajax {
  animation: faqFadeIn 0.4s ease-out;
}

.snow-removal-faq__group--ajax[style*="display: block"] {
  display: block !important;
}

/* Show More Button (CSS-only toggle) */
.snow-removal-faq__show-more-btn {
  font-family: 'ProximaNova', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 24px auto;
  padding: 14px 28px;
  background-color: #fff;
  color: #ff8800;
  border: solid 1px #f80;
  height: 64px;
  width: 215px;
  border-radius: 32px;
  font-size: 18px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all 0.3s ease;
  width: fit-content;
}

.snow-removal-faq__show-more-btn .snow-removal-faq__show-more-text {
  font-size: 18px !important;
  font-weight: 600 !important;
}

.snow-removal-faq__show-more-btn:hover {
  background: #faf7f9;
  transform: translateY(-2px);
}

.snow-removal-faq__show-more-icon {
  transition: transform 0.3s ease;
}

/* Toggle button text states */
.snow-removal-faq__show-less-text {
  display: none;
}

.snow-removal-faq__toggle-input:checked ~ .snow-removal-faq__show-more-btn--css .snow-removal-faq__show-more-text {
  display: none;
}

.snow-removal-faq__toggle-input:checked ~ .snow-removal-faq__show-more-btn--css .snow-removal-faq__show-less-text {
  display: inline;
}

.snow-removal-faq__toggle-input:checked ~ .snow-removal-faq__show-more-btn--css .snow-removal-faq__show-more-icon {
  transform: rotate(180deg);
}

/* Load More Button (AJAX) */
.snow-removal-faq__load-more-btn {
  height: 64px;
  width: 215px;
  border-radius: 32px;
  border: solid 1px #f80;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto 0;
  font-size: 18px !important;
  font-weight: 600 !important;
  cursor: pointer;
  color: #ff8800 !important;
  background-color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.snow-removal-faq__load-more-btn:hover {
  background: #faf7f9;
  transform: translateY(-2px);
}

.snow-removal-faq__load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.snow-removal-faq__load-more-icon {
  transition: transform 0.3s ease;
}

/* Loading spinner */
.snow-removal-faq__spinner {
  animation: faqSpin 1s linear infinite;
}

@keyframes faqSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* AJAX loaded group */
.snow-removal-faq__group--ajax {
  animation: faqFadeIn 0.4s ease-out;
}

.snow-removal-faq__group--ajax:empty {
  display: none;
}

/* Fade in animation for new FAQs */
@keyframes faqFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Noscript fallback styles */
.snow-removal-faq__group--noscript {
  margin-top: 20px;
}

.snow-removal-faq__details {
  background: white;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.snow-removal-faq__summary {
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.snow-removal-faq__summary::-webkit-details-marker {
  display: none;
}

.snow-removal-faq__summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: #38A1DF;
  transition: transform 0.3s ease;
}

.snow-removal-faq__details[open] .snow-removal-faq__summary::after {
  content: '−';
}

.snow-removal-faq__summary h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #2c3e50;
}

.snow-removal-faq__answer-noscript {
  padding: 0 24px 20px;
  color: #4a5568;
  line-height: 1.7;
}

/* Center the buttons in container */
.snow-removal-faq__container {
  text-align: center;
}

.snow-removal-faq__group,
.snow-removal-faq__item {
  text-align: left;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .snow-removal-how-it-works__step-title {
    font-size: 16px;
  }
  
  .snow-removal-related-services {
    padding: 40px 15px;
  }
  
  .snow-removal-related-services__title {
    font-size: 24px;
  }
  
  .snow-removal-related-services__links {
    grid-template-columns: 1fr;
  }
  
  .snow-removal-faq__show-more-btn,
  .snow-removal-faq__load-more-btn {
    width: 100%;
    max-width: 300px;
  }
  
  .snow-removal-faq__summary {
    padding: 16px 18px;
  }
  
  .snow-removal-faq__summary h4 {
    font-size: 16px;
  }
}
