/* R5: one lower-homepage system, not separate service microsites.
   Scoped entirely to .r5-lower so it cannot reach the approved hero, header,
   Print Shop section or any interior page. Classes are additive handles; no
   text, id, href, SVG or form attribute is touched. */
.r5-lower { font-family: Inter, sans-serif; padding-block: 80px !important; background: #fff !important; color: var(--ink); border-bottom: 1px solid var(--rule); }
.r5-lower.r3-soft { background: var(--paper) !important; }
.r5-lower > .r5-container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.r5-lower .r5-intro { text-align: left !important; max-width: 800px; margin: 0 0 40px !important; }
.r5-lower .r5-intro > p { margin-inline: 0 !important; max-width: 68ch; font-size: 1.0625rem; color: #475569; }
.r5-lower h2 { font-size: clamp(1.9rem, 3vw, 2.65rem) !important; line-height: 1.14 !important; letter-spacing: -.035em; margin-bottom: 16px !important; }
.r5-lower h3 { font-size: clamp(1.3rem, 2vw, 1.75rem) !important; line-height: 1.25; letter-spacing: -.025em; }
.r5-lower p { line-height: 1.65; }

.r5-lower .r5-service-split {
  display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px !important; margin-bottom: 48px !important; align-items: center;
}
.r5-lower .r5-service-split > div { width: auto !important; min-width: 0; }
.r5-lower .r5-service-image {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--rule) !important; border-radius: 18px !important; box-shadow: none !important;
}
.r5-lower :is(.r5-card, .r5-panel) {
  padding: 28px !important; border: 1px solid var(--rule) !important;
  border-radius: 16px !important; box-shadow: none !important;
  background: #fff !important; min-width: 0;
}
.r5-lower .r5-card h4 { font-size: 1.125rem; line-height: 1.35; }
.r5-lower .r5-card p { font-size: .9375rem !important; color: #475569 !important; }
.r5-lower .r5-feature-grid { gap: 24px !important; }
.r5-lower .r5-process > h3 { text-align: left !important; margin-bottom: 28px !important; }
.r5-lower .r5-process-step { text-align: left !important; min-width: 0; }
.r5-lower .r5-process-step > div { font-size: 2rem !important; color: var(--blue2) !important; }
.r5-lower .r5-process-step p { font-size: .9375rem !important; color: #475569; }

/* Keep native SVG shapes; recolour only the surrounding class hooks. */
.r5-lower :is([class*="text-pink-"], [class*="text-emerald-"], [class*="text-purple-"], [class*="text-orange-"]) { color: var(--blue2) !important; }
.r5-lower :is(.bg-pink-50, .bg-pink-100, .bg-emerald-100, .bg-purple-100, .bg-orange-100, .bg-blue-100) { background: #eef2ff !important; color: var(--blue2) !important; }
.r5-lower :is(.bg-emerald-500, .bg-blue-600, .bg-purple-600, .bg-orange-600) { background: var(--blue2) !important; }

.r5-lower .r5-action {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 12px 20px !important; border: 1px solid var(--blue2); border-radius: 8px !important;
  background: var(--blue2) !important; color: #fff !important; box-shadow: none !important;
  font-size: .9375rem; line-height: 1.4; font-weight: 700;
}
.r5-lower .r5-action:hover { background: var(--blue) !important; }

.r5-lower .r5-band {
  margin-top: 48px !important; padding: 40px !important;
  background: var(--blue) !important; background-image: none !important;
  border: 1px solid var(--blue); border-radius: 18px !important;
  box-shadow: none !important; text-align: left !important; color: #fff !important;
}
.r5-lower .r5-band :is(h3, h4) { color: #fff !important; }
.r5-lower .r5-band :is(p, li, [class*="text-pink-"], [class*="text-emerald-"], [class*="text-purple-"]) { color: #dbe4f1 !important; }
.r5-lower .r5-band p { margin-left: 0 !important; max-width: 68ch; }
.r5-lower .r5-band .text-center { text-align: left !important; }
.r5-lower .r5-band .justify-center { justify-content: flex-start !important; }
.r5-lower .r5-band .mx-auto { margin-left: 0 !important; }
.r5-lower .r5-band a.bg-white {
  background: #fff !important; color: var(--blue) !important;
  min-height: 48px; padding: 12px 20px !important; line-height: 1.5; border-radius: 8px !important;
}
.r5-lower .r5-band-card {
  background: #ffffff0d !important; border: 1px solid #ffffff33 !important;
  border-radius: 12px !important; backdrop-filter: none !important; padding: 24px !important;
}

/* Contact closes the page in the same navy as the hero. */
.r5-lower.r5-contact { background: var(--blue) !important; background-image: none !important; border-bottom: 0; color: #fff; }
.r5-contact .r5-intro > p { color: #dbe4f1 !important; }
.r5-contact .r5-intro > span { color: var(--gold3) !important; }
.r5-contact .r5-contact-grid {
  display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
  gap: 32px !important; align-items: start;
}
.r5-contact .r5-contact-grid > div { width: auto !important; min-width: 0; }
.r5-contact .r5-contact-card {
  padding: 24px !important; border: 1px solid #ffffff33 !important;
  border-radius: 16px !important; background: #ffffff08 !important; gap: 16px !important;
}
.r5-contact .r5-contact-card > div:first-child {
  width: 44px !important; height: 44px !important; flex-shrink: 0;
  border-radius: 10px !important; background: #ffffff14 !important;
}
.r5-contact .r5-contact-card > div:last-child { min-width: 0; overflow-wrap: anywhere; }
.r5-contact .r5-contact-card .text-xl { font-size: 1.0625rem !important; }
.r5-contact .r5-contact-card :is(.text-slate-400, [class*="text-emerald-"]) { color: #dbe4f1 !important; }
.r5-contact .r5-contact-card .animate-pulse { animation: none !important; background: var(--gold3) !important; }
.r5-contact .r5-offer {
  padding: 24px !important; background: #ffffff08 !important; background-image: none !important;
  border: 1px solid #ffffff33; border-left: 3px solid var(--gold2);
  border-radius: 12px !important; box-shadow: none !important;
}
.r5-contact .r5-offer p { color: #dbe4f1 !important; }
.r5-contact .r5-form {
  padding: 32px !important; background: #fff !important;
  border: 1px solid var(--rule) !important; border-radius: 18px !important;
  box-shadow: none !important; color: var(--ink) !important;
}
/* Essential: r3-dark would otherwise turn the heading white on a white panel. */
.r5-contact .r5-form :is(h3, h4) { color: var(--ink) !important; }
.r5-contact .r5-form label { color: #475569 !important; font-size: .75rem; }
.r5-contact .r5-form :is(input, select, textarea) { border-color: #cbd5e1; border-radius: 8px; font: inherit; color: var(--ink); }
.r5-contact .r5-form button[type="submit"] { min-height: 48px; background: var(--blue2) !important; box-shadow: none !important; }
.r5-contact .r5-form button[type="submit"]:hover { background: var(--blue) !important; }

.r5-lower :is(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--gold2) !important; outline-offset: 3px; }

@media (max-width: 1023px) {
  .r5-lower .r5-service-split,
  .r5-contact .r5-contact-grid { grid-template-columns: 1fr; gap: 32px !important; }
  .r5-lower .r5-service-image { max-width: 640px; margin-inline: auto; }
  .r5-lower .r5-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 640px) {
  .r5-lower { padding-block: 48px !important; }
  .r5-lower .r5-intro { margin-bottom: 28px !important; }
  .r5-lower .r5-service-split { margin-bottom: 32px !important; }
  .r5-lower :is(.r5-card, .r5-panel, .r5-band),
  .r5-contact .r5-form { padding: 24px !important; }
  .r5-lower .r5-band { margin-top: 32px !important; }
  .r5-lower .r5-feature-grid { grid-template-columns: 1fr !important; }
  .r5-lower .r5-action { width: 100%; text-align: center; }
  .r5-contact .r5-contact-card { padding: 20px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .r5-lower * { animation: none !important; transition: none !important; }
}