/**
 * Repair service page styles (mobile-first).
 */

.fmt-rs-main {
  --fmt-rs-primary: #F97316;
  --fmt-rs-primary-dark: #C2410C;
  --fmt-rs-primary-light: #FFEDD5;
  --fmt-rs-secondary: #111827;
  --fmt-rs-muted: #4B5563;
  --fmt-rs-tertiary: #9CA3AF;
  --fmt-rs-bg: #F9FAFB;
  --fmt-rs-surface: #FFFFFF;
  --fmt-rs-border: #E5E7EB;
  --fmt-rs-success: #10B981;
  --fmt-rs-success-light: #D1FAE5;
  --fmt-rs-radius: 12px;
  --fmt-rs-radius-lg: 20px;
  --fmt-rs-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  --fmt-rs-sticky-h: 64px;
  background: var(--fmt-rs-bg);
  padding-bottom: var(--fmt-rs-sticky-h);
}

@media (min-width: 768px) {
  .fmt-rs-main {
    padding-bottom: 0;
  }
}

@media (max-width: 767px) {
  .fmt-rs-main {
    padding-bottom: 0;
  }

  .fmt-rs-sticky {
    display: none;
  }
}

.fmt-rs-container {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

.fmt-rs-breadcrumb {
  background: var(--fmt-rs-surface);
  border-bottom: 1px solid var(--fmt-rs-border);
  padding: 10px 0;
}

.fmt-rs-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
  font-size: 0.8125rem;
}

.fmt-rs-breadcrumb__item a,
.fmt-rs-breadcrumb__item span {
  color: var(--fmt-rs-tertiary);
  text-decoration: none;
}

.fmt-rs-breadcrumb__item a:hover {
  color: var(--fmt-rs-primary);
}

.fmt-rs-breadcrumb__item span[aria-current] {
  color: var(--fmt-rs-secondary);
  font-weight: 600;
}

.fmt-rs-breadcrumb__sep {
  color: var(--fmt-rs-tertiary);
  list-style: none;
}

.fmt-rs-hero {
  padding: 28px 0 36px;
  background: var(--fmt-rs-surface);
}

.fmt-rs-hero__grid {
  display: grid;
  gap: 24px;
  align-items: center;
}

.fmt-rs-hero__title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.15;
  color: var(--fmt-rs-secondary);
  font-weight: 800;
}

.fmt-rs-hero__intro {
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--fmt-rs-muted);
  max-width: 65ch;
}

.fmt-rs-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.fmt-rs-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--fmt-rs-primary-light);
  color: var(--fmt-rs-primary-dark);
  font-size: 0.8125rem;
  font-weight: 600;
}

.fmt-rs-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.fmt-rs-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fmt-rs-hero__media {
  background: var(--fmt-rs-surface);
  border: 1px solid var(--fmt-rs-border);
  border-radius: var(--fmt-rs-radius-lg);
  box-shadow: var(--fmt-rs-shadow);
  padding: 16px;
}

.fmt-rs-hero__image {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: calc(var(--fmt-rs-radius-lg) - 4px);
}

@media (min-width: 768px) {
  .fmt-rs-hero {
    padding: 40px 0 48px;
  }

  .fmt-rs-hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
  }

  .fmt-rs-hero__image {
    max-height: 360px;
  }
}

.fmt-rs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: var(--fmt-rs-radius);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.fmt-rs-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.fmt-rs-btn--primary {
  background: var(--fmt-rs-primary);
  color: #fff;
}

.fmt-rs-btn--primary:hover {
  background: var(--fmt-rs-primary-dark);
  color: #fff;
}

.fmt-rs-btn--whatsapp {
  background: transparent;
  color: var(--fmt-rs-success);
  border-color: var(--fmt-rs-success);
}

.fmt-rs-btn--whatsapp:hover {
  background: var(--fmt-rs-success-light);
}

.fmt-rs-btn--lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.fmt-rs-section {
  padding: 40px 0;
}

.fmt-rs-section--muted {
  background: var(--fmt-rs-surface);
  border-block: 1px solid var(--fmt-rs-border);
}

.fmt-rs-section--cta {
  padding-bottom: 48px;
}

.fmt-rs-section__title {
  margin: 0 0 16px;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: var(--fmt-rs-secondary);
  font-weight: 800;
}

.fmt-rs-section__lead {
  margin: 0 0 16px;
  color: var(--fmt-rs-muted);
  line-height: 1.65;
  max-width: 65ch;
}

.fmt-rs-prose {
  max-width: 65ch;
  color: var(--fmt-rs-muted);
  line-height: 1.7;
  font-size: 1rem;
}

.fmt-rs-prose p {
  margin: 0 0 14px;
}

.fmt-rs-prose a {
  color: var(--fmt-rs-primary);
}

.fmt-rs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fmt-rs-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--fmt-rs-surface);
  border: 1px solid var(--fmt-rs-border);
  color: var(--fmt-rs-secondary);
  font-size: 0.9375rem;
}

.fmt-rs-chip svg {
  width: 14px;
  height: 14px;
  color: var(--fmt-rs-primary);
}

.fmt-rs-chip--city {
  background: var(--fmt-rs-bg);
  color: var(--fmt-rs-muted);
}

.fmt-rs-chip--hidden {
  display: none;
}

.fmt-rs-chips.is-expanded .fmt-rs-chip--hidden {
  display: inline-flex;
}

.fmt-rs-chip__toggle {
  background: none;
  border: none;
  color: var(--fmt-rs-primary);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  padding: 0;
  min-height: 44px;
}

.fmt-rs-chips a {
  color: inherit;
  text-decoration: none;
}

.fmt-rs-chips a:hover {
  color: var(--fmt-rs-primary);
}

.fmt-rs-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  position: relative;
}

.fmt-rs-steps__item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 0 0 28px;
  position: relative;
}

.fmt-rs-steps__item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: var(--fmt-rs-border);
}

.fmt-rs-steps__badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--fmt-rs-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.fmt-rs-steps__title {
  margin: 0 0 4px;
  font-size: 1rem;
  color: var(--fmt-rs-secondary);
}

.fmt-rs-steps__desc {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--fmt-rs-muted);
  line-height: 1.55;
}

@media (min-width: 768px) {
  .fmt-rs-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .fmt-rs-steps__item {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 0;
  }

  .fmt-rs-steps__item::before {
    display: none;
  }

  .fmt-rs-steps__badge {
    margin: 0 auto 12px;
  }
}

.fmt-rs-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 480px) {
  .fmt-rs-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.fmt-rs-features__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--fmt-rs-bg);
  border: 1px solid var(--fmt-rs-border);
  border-radius: var(--fmt-rs-radius);
}

.fmt-rs-features__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--fmt-rs-primary-light);
  color: var(--fmt-rs-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fmt-rs-features__icon svg {
  width: 22px;
  height: 22px;
}

.fmt-rs-features__label {
  font-size: 0.9375rem;
  color: var(--fmt-rs-secondary);
  line-height: 1.45;
  font-weight: 600;
}

.fmt-rs-highlight {
  background: var(--fmt-rs-primary-light);
  border-left: 4px solid var(--fmt-rs-primary);
  border-radius: var(--fmt-rs-radius);
  padding: 24px;
}

.fmt-rs-faq {
  display: grid;
  gap: 8px;
}

.fmt-rs-faq__item {
  background: var(--fmt-rs-bg);
  border: 1px solid var(--fmt-rs-border);
  border-radius: var(--fmt-rs-radius);
  overflow: hidden;
}

.fmt-rs-faq__question {
  padding: 16px 44px 16px 16px;
  font-weight: 700;
  color: var(--fmt-rs-secondary);
  cursor: pointer;
  list-style: none;
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.fmt-rs-faq__question::-webkit-details-marker {
  display: none;
}

.fmt-rs-faq__question::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--fmt-rs-muted);
  border-bottom: 2px solid var(--fmt-rs-muted);
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.2s;
}

.fmt-rs-faq__item[open] .fmt-rs-faq__question::after {
  transform: translateY(-30%) rotate(-135deg);
}

.fmt-rs-faq__answer {
  padding: 0 16px 16px;
  color: var(--fmt-rs-muted);
  line-height: 1.65;
  font-size: 0.9375rem;
}

.fmt-rs-faq__answer p {
  margin: 0;
}

.fmt-rs-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.fmt-rs-checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--fmt-rs-muted);
  line-height: 1.55;
  font-size: 1rem;
}

.fmt-rs-checklist__item svg {
  width: 20px;
  height: 20px;
  color: var(--fmt-rs-success);
  flex-shrink: 0;
  margin-top: 2px;
}

.fmt-rs-final {
  text-align: center;
}

.fmt-rs-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.fmt-rs-tag {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--fmt-rs-border);
  color: var(--fmt-rs-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--fmt-rs-surface);
}

.fmt-rs-tag:hover {
  border-color: var(--fmt-rs-primary);
  color: var(--fmt-rs-primary);
}

.fmt-rs-machine-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.fmt-rs-machine-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--fmt-rs-bg);
  border: 1px solid var(--fmt-rs-border);
  border-radius: var(--fmt-rs-radius);
  text-decoration: none;
  color: inherit;
}

.fmt-rs-machine-card__img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--fmt-rs-muted, #f1f5f9);
}

.fmt-rs-machine-card strong {
  display: block;
  color: var(--fmt-rs-secondary);
  margin-bottom: 4px;
}

.fmt-rs-machine-card span {
  font-size: 0.875rem;
  color: var(--fmt-rs-tertiary);
}

.fmt-rs-machine-card:hover {
  border-color: var(--fmt-rs-primary);
}

.fmt-rs-hub-group {
  margin-bottom: 32px;
}

.fmt-rs-hub-group .fmt-rs-section__title a {
  color: inherit;
  text-decoration: none;
}

.fmt-rs-hub-group .fmt-rs-section__title a:hover {
  color: var(--fmt-rs-primary);
}

.fmt-rs-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--fmt-rs-surface);
  border-top: 1px solid var(--fmt-rs-border);
  box-shadow: 0 -8px 24px rgba(17, 24, 39, 0.1);
}

.fmt-rs-sticky__book {
  flex: 1 1 65%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: var(--fmt-rs-primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--fmt-rs-radius);
}

.fmt-rs-sticky__book:hover {
  background: var(--fmt-rs-primary-dark);
  color: #fff;
}

.fmt-rs-sticky__wa {
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: var(--fmt-rs-success);
  color: #fff;
  border-radius: var(--fmt-rs-radius);
  text-decoration: none;
}

.fmt-rs-sticky__wa svg {
  width: 24px;
  height: 24px;
}

@media (min-width: 768px) {
  .fmt-rs-sticky {
    display: none;
  }
}

/* SEO source text kept in post_content for Rank Math — hidden on front when template active */
.fmt-rs-seo-source {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
