/* RepairHome guide and Blog index styles. All selectors are intentionally scoped. */
.rh-guide,
.rh-blog-index {
  --rh-navy: #071d38;
  --rh-blue: #1556d8;
  --rh-blue-2: #0b5baa;
  --rh-warm: #f59e0b;
  --rh-text: #17283b;
  --rh-muted: #5d6e82;
  --rh-line: #dce6f0;
  --rh-soft: #f5f8fc;
  --rh-shadow: 0 18px 46px rgba(7, 29, 56, .11);
  width: 100%;
  max-width: none;
  margin: 0;
  background: #fff;
  color: var(--rh-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

.rh-guide *,
.rh-blog-index * { box-sizing: border-box; }

.rh-guide a,
.rh-blog-index a { text-underline-offset: 3px; }

.rh-guide-container,
.rh-guide-hero-inner,
.rh-blog-index-hero-inner {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.rh-guide-hero,
.rh-blog-index-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 76px;
  background: linear-gradient(135deg, #071d38 0%, #0b315d 58%, #1556d8 145%);
  color: #fff;
}

.rh-guide-hero::after,
.rh-blog-index-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -130px;
  top: -170px;
  border-radius: 50%;
  background: rgba(245, 158, 11, .18);
}

.rh-guide-hero-inner,
.rh-blog-index-hero-inner { position: relative; z-index: 1; }

.rh-guide-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
  font-size: 14px;
  font-weight: 800;
  color: #d7e6f7;
}

.rh-guide-breadcrumb a { color: #fff; text-decoration: none; }
.rh-guide-breadcrumb a:hover { text-decoration: underline; }

.rh-guide-eyebrow {
  margin: 0 0 12px;
  color: #fbbf24;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.rh-guide-eyebrow--dark { color: var(--rh-blue-2); }

.rh-guide h1,
.rh-blog-index h1 {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.03;
  letter-spacing: -.045em;
}

.rh-guide-lead {
  max-width: 840px;
  margin: 24px 0 0;
  color: #d9e6f4;
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.65;
}

.rh-guide-actions { margin-top: 32px; gap: 12px; }

.rh-guide-primary-button .wp-block-button__link,
.rh-guide-outline-button .wp-block-button__link,
.rh-guide-secondary-button .wp-block-button__link {
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.rh-guide-primary-button .wp-block-button__link {
  background: #f59e0b;
  color: #172033;
  box-shadow: 0 14px 28px rgba(245, 158, 11, .25);
}

.rh-guide-outline-button .wp-block-button__link {
  border: 1px solid rgba(255,255,255,.62);
  background: transparent;
  color: #fff;
}

.rh-guide-secondary-button .wp-block-button__link {
  background: var(--rh-blue);
  color: #fff;
}

.rh-guide-primary-button .wp-block-button__link:hover,
.rh-guide-outline-button .wp-block-button__link:hover,
.rh-guide-secondary-button .wp-block-button__link:hover { transform: translateY(-2px); }

.rh-guide-container { padding: 70px 0; }

.rh-guide-summary {
  margin-bottom: 44px;
  border: 1px solid #cfe0f1;
  border-left: 5px solid var(--rh-blue);
  border-radius: 22px;
  background: linear-gradient(135deg, #f7fbff, #fff);
  box-shadow: 0 12px 30px rgba(7, 29, 56, .07);
  padding: 30px;
}

.rh-guide-summary h2,
.rh-guide-faq-section h2,
.rh-blog-index-content > h2 {
  margin: 0 0 12px;
  color: var(--rh-navy);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.rh-guide-summary p:last-child { margin-bottom: 0; }

.rh-guide-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 46px;
  align-items: start;
}

.rh-guide-content-section {
  padding: 0 0 36px;
  margin: 0 0 36px;
  border-bottom: 1px solid var(--rh-line);
}

.rh-guide-content-section:last-child { border-bottom: 0; }

.rh-guide-content-section h2 {
  margin: 0 0 16px;
  color: var(--rh-navy);
  font-size: clamp(27px, 3.5vw, 38px);
  line-height: 1.16;
  letter-spacing: -.03em;
}

.rh-guide-content-section p { margin: 0 0 18px; color: var(--rh-text); }

.rh-guide-list,
.rh-guide-checklist { margin: 18px 0 0; padding-left: 22px; }

.rh-guide-list li,
.rh-guide-checklist li { margin: 9px 0; padding-left: 4px; }

.rh-guide-sidebar-card {
  position: sticky;
  top: 28px;
  border: 1px solid var(--rh-line);
  border-radius: 24px;
  background: var(--rh-soft);
  box-shadow: var(--rh-shadow);
  padding: 27px;
}

.rh-guide-sidebar-card h3 {
  margin: 0 0 14px;
  color: var(--rh-navy);
  font-size: 24px;
  line-height: 1.2;
}

.rh-guide-sidebar-card .wp-block-buttons { margin-top: 24px; }

.rh-guide-faq-section {
  margin-top: 52px;
  border-top: 1px solid var(--rh-line);
  padding-top: 52px;
}

.rh-guide-faq { display: grid; gap: 12px; margin-top: 25px; }

.rh-guide-faq details {
  border: 1px solid var(--rh-line);
  border-radius: 16px;
  background: #fff;
  padding: 18px 20px;
}

.rh-guide-faq summary {
  cursor: pointer;
  color: var(--rh-navy);
  font-weight: 900;
}

.rh-guide-faq details p { margin: 12px 0 0; color: var(--rh-muted); }

.rh-guide-cta-wrap {
  padding: 0 0 76px;
  background: #fff;
}

.rh-guide-cta {
  border-radius: 30px;
  background: linear-gradient(135deg, var(--rh-navy), #123f70);
  box-shadow: var(--rh-shadow);
  color: #fff;
  padding: 44px;
}

.rh-guide-cta h2 {
  max-width: 780px;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(31px, 4vw, 46px);
  line-height: 1.1;
}

.rh-guide-cta > p:not(.rh-guide-eyebrow) { max-width: 820px; color: #d6e4f3; }

.rh-blog-index-content { padding: 70px 0; }

.rh-blog-query { margin-top: 34px; }

.rh-blog-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px;
  padding: 0;
  list-style: none;
}

.rh-blog-card {
  height: 100%;
  border: 1px solid var(--rh-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(7, 29, 56, .08);
  padding: 25px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.rh-blog-card:hover {
  transform: translateY(-4px);
  border-color: #b5cee8;
  box-shadow: var(--rh-shadow);
}

.rh-blog-category {
  margin: 0 0 13px;
  color: var(--rh-blue-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.rh-blog-category a { color: inherit; text-decoration: none; }

.rh-blog-title { margin: 0 0 13px; font-size: 23px; line-height: 1.24; }
.rh-blog-title a { color: var(--rh-navy); text-decoration: none; }
.rh-blog-title a:hover { color: var(--rh-blue); }
.rh-blog-excerpt { color: var(--rh-muted); font-size: 15px; }
.rh-blog-read-more { display: inline-block; margin-top: 10px; color: var(--rh-blue); font-weight: 900; text-decoration: none; }

@media (max-width: 900px) {
  .rh-guide-body-grid { grid-template-columns: 1fr; }
  .rh-guide-sidebar-card { position: static; }
  .rh-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 640px) {
  .rh-guide-container,
  .rh-guide-hero-inner,
  .rh-blog-index-hero-inner { width: min(100% - 26px, 1180px); }
  .rh-guide-hero,
  .rh-blog-index-hero { padding: 58px 0 54px; }
  .rh-guide-container { padding: 48px 0; }
  .rh-guide-summary,
  .rh-guide-sidebar-card { padding: 22px; border-radius: 18px; }
  .rh-guide-cta { padding: 30px 22px; border-radius: 22px; }
  .rh-guide-actions { align-items: stretch; }
  .rh-guide-actions .wp-block-button,
  .rh-guide-actions .wp-block-button__link { width: 100%; text-align: center; }
  .rh-blog-grid { grid-template-columns: 1fr !important; }
}
