/**
 * Service Strip Block Styles
 * 
 * Extracted from assets/scss/templates/_homepage.scss as part of ACF Blocks integration.
 * This file contains styles for the Service Strip block and its child Service Card components.
 * 
 * Note: These styles apply to both the ACF block (when used in Gutenberg)
 * and the legacy homepage template (until fully migrated).
 * 
 * WordPress block wrapper classes (wp-block-tax-court-service-strip) are
 * handled automatically by get_block_wrapper_attributes() in the template.
 * 
 * Related: ACF-015
 */
/**
 * Brand Token System
 * 
 * Centralized design tokens for the Tax Court USWDS Theme.
 * All color, typography, spacing, layout, and accessibility values are defined here.
 */
/**
 * Apply text style from a typography token map
 * 
 * @param {Map} $style-map - Typography token map (e.g., $text-page-heading)
 */
/**
 * Apply focus ring styling for keyboard navigation
 */
/**
 * Ensure minimum touch target size for accessibility
 */
/**
 * Mobile breakpoint media query
 */
/**
 * Desktop breakpoint media query
 */
/* =============================================================================
   Service Strip Block
   ============================================================================= */
.service-strip,
.wp-block-tax-court-service-strip {
  padding: 8px 0 64px 0;
  background-color: rgba(255, 240, 0, 0);
  position: relative;
  z-index: 2;
  margin-top: -90px; /* Overlap hero by approximately 1/3 of service strip height */
}
@media (max-width: 767px) {
  .service-strip,
  .wp-block-tax-court-service-strip {
    padding: 32px 0;
    margin-top: 0; /* Remove overlap on mobile for cleaner stacking */
  }
}

.service-strip__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;
}
@media (max-width: 767px) {
  .service-strip__container {
    padding: 0 20px;
  }
}

.service-strip__heading {
  font-family: "Merriweather", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #103052;
  margin: 0 0 32px;
  text-align: center;
}
@media (max-width: 767px) {
  .service-strip__heading {
    margin-bottom: 24px;
  }
}

.service-strip__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .service-strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .service-strip__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =============================================================================
   Service Card Component
   ============================================================================= */
.service-card {
  background-color: #fff;
  border-radius: 4px;
  border: 1px solid #F2F4F7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.service-card--featured {
  border-left: 4px solid #ECBF44;
}

.service-card__link-wrapper {
  display: block;
  text-decoration: none;
  color: inherit;
  min-width: 44px;
  min-height: 44px;
  /* Minimum touch target size for accessibility */
}
.service-card__link-wrapper:focus {
  outline: 2px solid #103052;
  outline-offset: 6px;
}

.service-card__icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.service-card__title {
  font-family: "Merriweather", Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #103052;
  margin: 0 0 8px;
}

.service-card__description {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: #1E2A3A;
  margin: 0 0 12px;
}

.service-card__cta {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  font-weight: 600;
  color: #103052;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.service-card__link-wrapper:hover .service-card__cta {
  text-decoration: underline;
}
