/* ============================================
   Service Pages - Unique Design System
   Brand: Reliable Knoxville Appliance Experts
   Design: Distinct from homepage, same palette
   ============================================ */

/* --- Breadcrumb --- */
.breadcrumb {
  background: var(--color-off-white);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-light-gray);
  position: sticky;
  top: 72px;
  z-index: 99;
}
.breadcrumb__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-text-light);
}
.breadcrumb__list li::after {
  content: '›';
  margin-left: var(--space-xs);
  color: var(--color-mid-gray);
}
.breadcrumb__list li:last-child::after {
  display: none;
}
.breadcrumb__list a {
  color: var(--color-teal);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.breadcrumb__list a:hover {
  color: var(--color-amber);
}

/* --- Service Hero (Shared homepage content pattern) --- */
.svc-hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  overflow: hidden;
  height: var(--hero-section-height);
  min-height: var(--hero-section-height);
  box-sizing: border-box;
  display: flex;
  align-items: center;
}
.svc-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.svc-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.svc-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,29,58,0.72) 0%, rgba(7,20,40,0.55) 60%, rgba(11,29,58,0.48) 100%);
  z-index: 2;
}
.svc-hero::before {
  content: none;
}
.svc-hero::after {
  content: none;
}
.svc-hero .container {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.svc-hero__content {
  color: var(--color-white);
}
.svc-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212,149,42,0.15);
  border: 1px solid rgba(212,149,42,0.3);
  color: var(--color-amber-light);
  padding: 0.375rem 1rem;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}
.svc-hero__badge svg {
  width: 14px;
  height: 14px;
}
.svc-hero h1 {
  font-weight: 800;
  margin-bottom: var(--space-lg);
  color: var(--color-white);
  letter-spacing: -0.02em;
}
.svc-hero h1 span {
  color: var(--color-amber-light);
}
.svc-hero__text {
  font-size: 1.125rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.svc-hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-2xl);
}
/* Hide old sidebar image div - now using background */
.svc-hero__image {
  display: none;
}
.svc-hero .hero__trust {
  justify-content: center;
}

/* --- Service Intro with Left Accent --- */
.svc-intro {
  padding: var(--space-4xl) 0;
  background: var(--color-white);
}
.svc-intro__wrapper {
  display: grid;
  grid-template-columns: 4px 1fr;
  gap: var(--space-xl);
  max-width: 900px;
}
.svc-intro__accent {
  background: linear-gradient(135deg, var(--color-amber) 0%, var(--color-amber-dark) 100%);
  border-radius: 4px;
}
.svc-intro__content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-lg);
  line-height: 1.25;
}
.svc-intro__content p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}
.svc-intro__content p:last-child {
  margin-bottom: 0;
}

/* --- Symptoms / Problems Grid --- */
.svc-symptoms {
  padding: var(--space-4xl) 0;
  background: var(--color-off-white);
}
.svc-symptoms .section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}
.svc-symptoms .section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}
.svc-symptoms .section-header p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-light);
  max-width: 680px;
  margin: 0 auto;
}
.svc-symptoms__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.symptom-card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  border: 1px solid var(--color-light-gray);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
  position: relative;
}
.symptom-card:hover {
  border-color: var(--color-amber);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.symptom-card__icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(212,149,42,0.1), rgba(26,138,125,0.1));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--color-amber);
}
.symptom-card__icon svg {
  width: 22px;
  height: 22px;
}
.symptom-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}
.symptom-card p {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--color-text-light);
}

/* --- Components / Diagnostic Section --- */
.svc-components {
  padding: var(--space-4xl) 0;
  background: var(--color-white);
}
.svc-components .section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}
.svc-components .section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}
.svc-components .section-header p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-light);
  max-width: 680px;
  margin: 0 auto;
}
.component-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: none;
  margin: 0 auto;
}
.component-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-off-white);
  border-radius: var(--border-radius);
  border-left: 3px solid var(--color-teal);
  transition: background var(--transition-base);
}
.component-item:hover {
  background: var(--color-light-gray);
}
.component-item__marker {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--color-teal);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}
.component-item__marker svg {
  width: 14px;
  height: 14px;
}
.component-item h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 4px;
}
.component-item p {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--color-text-light);
}

/* --- Appliance Types / Configurations --- */
.svc-types {
  padding: var(--space-4xl) 0;
  background: linear-gradient(180deg, var(--color-off-white) 0%, var(--color-white) 100%);
}
.svc-types .section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}
.svc-types .section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}
.svc-types .section-header p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-light);
  max-width: 680px;
  margin: 0 auto;
}
.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
}
.type-tag {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-white);
  border: 1px solid var(--color-light-gray);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-navy);
  transition: all var(--transition-base);
}
.type-tag:hover {
  border-color: var(--color-amber);
  box-shadow: var(--shadow-sm);
}
.type-tag svg {
  width: 18px;
  height: 18px;
  color: var(--color-teal);
  flex-shrink: 0;
}

/* --- Safety Section --- */
.svc-safety {
  padding: var(--space-3xl) 0;
  background: var(--color-white);
}
.safety-banner {
  background: var(--color-off-white);
  border: 1px solid rgba(212,149,42,0.2);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl) var(--space-3xl);
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
}
.safety-banner__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--color-amber);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}
.safety-banner__icon svg {
  width: 28px;
  height: 28px;
}
.safety-banner h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}
.safety-banner p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text);
}
.safety-banner ul {
  list-style: none;
  margin-top: var(--space-md);
}
.safety-banner ul li {
  position: relative;
  padding-left: var(--space-lg);
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--color-text);
}
.safety-banner ul li::before {
  content: '⚠';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.85rem;
}

/* --- Repair vs Replace --- */
.svc-repair-replace {
  padding: var(--space-4xl) 0;
  background: var(--color-off-white);
}
.svc-repair-replace .section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}
.svc-repair-replace .section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}
.svc-repair-replace .section-header p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-light);
  max-width: 680px;
  margin: 0 auto;
}
.rr-factors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  max-width: 960px;
  margin: 0 auto;
}
.rr-factor {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-white);
  border-radius: var(--border-radius);
  border: 1px solid var(--color-light-gray);
}
.rr-factor__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(26,138,125,0.1), rgba(212,149,42,0.1));
  color: var(--color-navy);
}
.rr-factor__icon svg {
  width: 18px;
  height: 18px;
}
.rr-factor h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 4px;
}
.rr-factor p {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--color-text-light);
}

/* --- Brands Section --- */
.svc-brands {
  padding: var(--space-4xl) 0;
  background: var(--color-white);
}
.svc-brands .section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}
.svc-brands .section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}
.svc-brands .section-header p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-light);
  max-width: 680px;
  margin: 0 auto;
}
.brands-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  max-width: 900px;
  margin: 0 auto var(--space-lg);
}
.brand-pill {
  padding: var(--space-xs) var(--space-md);
  background: var(--color-off-white);
  border: 1px solid var(--color-light-gray);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-navy);
  transition: all var(--transition-base);
}
.brand-pill:hover {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}
.brands-note {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-mid-gray);
  font-style: italic;
}

/* --- Service Process (Timeline style) --- */
.svc-process {
  padding: var(--space-4xl) 0;
  background: var(--color-navy);
  color: var(--color-white);
}
.svc-process .section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}
.svc-process .section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}
.svc-process .section-header p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto;
}
.process-timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}
.process-timeline::before {
  display: none;
}
.timeline-step {
  text-align: center;
  position: relative;
}
.timeline-step__number {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  background: linear-gradient(135deg, var(--color-amber), var(--color-amber-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-white);
  position: relative;
  z-index: 2;
  box-shadow: 0 0 20px rgba(212,149,42,0.3);
}
.timeline-step h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-xs);
}
.timeline-step p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
}

/* --- Service FAQ (card-based, different from homepage accordion) --- */
.svc-faq {
  padding: var(--space-4xl) 0;
  background: var(--color-off-white);
}
.svc-faq .section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}
.svc-faq .section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}
.svc-faq .section-header p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}
.svc-faq .faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.svc-faq .faq-item {
  background: var(--color-white);
  border-radius: var(--border-radius);
  border: 1px solid var(--color-light-gray);
  overflow: hidden;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.svc-faq .faq-item:hover {
  border-color: var(--color-amber);
}
.svc-faq .faq-item.active {
  border-color: var(--color-amber);
  box-shadow: var(--shadow-md);
}
.svc-faq .faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
  text-align: left;
  gap: var(--space-md);
}
.svc-faq .faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
  color: var(--color-amber);
}
.svc-faq .faq-item.active .faq-question svg {
  transform: rotate(180deg);
}
.svc-faq .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}
.svc-faq .faq-item.active .faq-answer {
  max-height: 600px;
}
.svc-faq .faq-answer__inner {
  padding: 0 var(--space-xl) var(--space-xl);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-text);
  border-top: 1px solid var(--color-light-gray);
  padding-top: var(--space-lg);
}

/* --- Service CTA Section --- */
.svc-cta {
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  text-align: center;
}
.svc-cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}
.svc-cta p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  max-width: 640px;
  margin: 0 auto var(--space-xl);
}
.svc-cta .cta-phone {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--color-amber-light);
  text-decoration: none;
  margin-bottom: var(--space-xl);
  transition: color var(--transition-base);
}
.svc-cta .cta-phone:hover {
  color: var(--color-amber);
}
.svc-cta__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Internal Links Section --- */
.svc-related {
  padding: var(--space-3xl) 0;
  background: var(--color-off-white);
  border-top: 1px solid var(--color-light-gray);
}
.svc-related h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-navy);
  text-align: center;
  margin-bottom: var(--space-xl);
}
.related-links {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}
.related-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: var(--color-white);
  border: 1px solid var(--color-light-gray);
  border-radius: var(--border-radius);
  color: var(--color-navy);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-base);
}
.related-link:hover {
  border-color: var(--color-amber);
  box-shadow: var(--shadow-sm);
  color: var(--color-amber-dark);
}
.related-link svg {
  width: 18px;
  height: 18px;
  color: var(--color-teal);
}

/* --- Content Prose --- */
.svc-content {
  padding: var(--space-3xl) 0;
  background: var(--color-white);
}
.svc-content__prose {
  max-width: 800px;
  margin: 0 auto;
}
.svc-content__prose h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-md);
  margin-top: var(--space-2xl);
}
.svc-content__prose h2:first-child {
  margin-top: 0;
}
.svc-content__prose h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy-light);
  margin-bottom: var(--space-sm);
  margin-top: var(--space-xl);
}
.svc-content__prose p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}
.svc-content__prose ul,
.svc-content__prose ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}
.svc-content__prose li {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}
.svc-content__prose a {
  color: var(--color-teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(26,138,125,0.3);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.svc-content__prose a:hover {
  color: var(--color-amber);
  border-color: var(--color-amber);
}

/* Balance card groups by count while retaining the mobile layouts below. */
@media (min-width: 769px) {
  :is(.svc-symptoms__grid, .component-list, .types-grid, .rr-factors, .process-timeline):has(> :nth-child(6):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  :is(.svc-symptoms__grid, .component-list, .types-grid, .rr-factors, .process-timeline):has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* A single connector line does not apply to a two-row process. */
  .process-timeline:has(> :nth-child(4):last-child)::before,
  .process-timeline:has(> :nth-child(6):last-child)::before {
    display: none;
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .svc-hero .container {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .svc-hero {
    padding: 0;
    height: auto;
    min-height: var(--hero-section-height);
  }
  .svc-hero .container {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
  }
  .safety-banner {
    flex-direction: column;
    padding: var(--space-xl);
  }
  .svc-symptoms__grid {
    grid-template-columns: 1fr;
  }
  .component-list {
    grid-template-columns: 1fr;
  }
  .types-grid {
    grid-template-columns: 1fr 1fr;
  }
  .rr-factors {
    grid-template-columns: 1fr;
  }
  .process-timeline {
    grid-template-columns: 1fr;
  }
  .svc-intro__wrapper {
    grid-template-columns: 3px 1fr;
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  .types-grid {
    grid-template-columns: 1fr;
  }
  .brands-cloud {
    gap: 6px;
  }
  .brand-pill {
    font-size: 0.8rem;
    padding: 4px 10px;
  }
}
